sandbox: remove god mode objects on departure

This ensures that their too large graphics do not appear for the player, the only departure is when the clonk dies or is removed.
install-platforms
Maikel de Vries 2018-02-03 09:34:45 +01:00
parent 1113761679
commit 369e2d0b0c
4 changed files with 29 additions and 0 deletions

View File

@ -25,4 +25,10 @@ public func ControlUse(object clonk, int x, int y)
public func QueryRejectDeparture(object clonk)
{
return true;
}
public func Departure(object clonk)
{
RemoveObject();
return;
}

View File

@ -29,4 +29,10 @@ public func ControlUse(object clonk, int x, int y)
public func QueryRejectDeparture(object clonk)
{
return true;
}
public func Departure(object clonk)
{
RemoveObject();
return;
}

View File

@ -66,3 +66,14 @@ public func ControlUseHolding(object clonk, int new_x, int new_y)
return true;
}
public func QueryRejectDeparture(object clonk)
{
return true;
}
public func Departure(object clonk)
{
RemoveObject();
return;
}

View File

@ -27,4 +27,10 @@ public func ControlUse(object clonk, int x, int y)
public func QueryRejectDeparture(object clonk)
{
return true;
}
public func Departure(object clonk)
{
RemoveObject();
return;
}