forked from Mirrors/openclonk
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.stable-8
parent
c7262aa317
commit
92a7087bf7
|
@ -25,4 +25,10 @@ public func ControlUse(object clonk, int x, int y)
|
||||||
public func QueryRejectDeparture(object clonk)
|
public func QueryRejectDeparture(object clonk)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public func Departure(object clonk)
|
||||||
|
{
|
||||||
|
RemoveObject();
|
||||||
|
return;
|
||||||
}
|
}
|
|
@ -29,4 +29,10 @@ public func ControlUse(object clonk, int x, int y)
|
||||||
public func QueryRejectDeparture(object clonk)
|
public func QueryRejectDeparture(object clonk)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public func Departure(object clonk)
|
||||||
|
{
|
||||||
|
RemoveObject();
|
||||||
|
return;
|
||||||
}
|
}
|
|
@ -66,3 +66,14 @@ public func ControlUseHolding(object clonk, int new_x, int new_y)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func QueryRejectDeparture(object clonk)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public func Departure(object clonk)
|
||||||
|
{
|
||||||
|
RemoveObject();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,4 +27,10 @@ public func ControlUse(object clonk, int x, int y)
|
||||||
public func QueryRejectDeparture(object clonk)
|
public func QueryRejectDeparture(object clonk)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public func Departure(object clonk)
|
||||||
|
{
|
||||||
|
RemoveObject();
|
||||||
|
return;
|
||||||
}
|
}
|
Loading…
Reference in New Issue