Modify Hideout in order to work with Rule_Relaunch

alut-include-path
Fulgen301 2017-03-30 14:03:13 +02:00
parent f14bfa418b
commit 8d69713ff2
1 changed files with 3 additions and 10 deletions

View File

@ -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)
{