forked from Mirrors/openclonk
Modify Hideout in order to work with Rule_Relaunch
parent
f14bfa418b
commit
8d69713ff2
|
@ -22,6 +22,9 @@ protected func Initialize()
|
|||
CreateObject(Rule_ObjectFade)->DoFadeTime(5 * 36);
|
||||
CreateObject(Rule_KillLogs);
|
||||
CreateObject(Rule_Gravestones);
|
||||
GetRelaunchRule()->SetDefaultRelaunchCount(nil);
|
||||
GetRelaunchRule()->SetRespawnDelay(8);
|
||||
GetRelaunchRule()->SetLastWeaponUse(false);
|
||||
|
||||
var lwidth = LandscapeWidth();
|
||||
|
||||
|
@ -100,16 +103,6 @@ protected func InitializePlayer(int plr)
|
|||
return;
|
||||
}
|
||||
|
||||
// Gamecall from CTF goal, on respawning.
|
||||
protected func OnPlayerRelaunch(int plr)
|
||||
{
|
||||
var clonk = GetCrew(plr);
|
||||
var relaunch = CreateObjectAbove(RelaunchContainer, clonk->GetX(), clonk->GetY(), clonk->GetOwner());
|
||||
relaunch->StartRelaunch(clonk);
|
||||
relaunch->SetRelaunchTime(8, true);
|
||||
return;
|
||||
}
|
||||
|
||||
// Game call from RelaunchContainer when a Clonk has left the respawn.
|
||||
public func OnClonkLeftRelaunch(object clonk)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue