forked from Mirrors/openclonk
Modify FrozenFortress in order to work with Rule_Relaunch
parent
568d04e7da
commit
f14bfa418b
|
@ -10,6 +10,9 @@ protected func Initialize()
|
|||
{
|
||||
// Environment
|
||||
CreateObject(Rule_ObjectFade)->DoFadeTime(10 * 36);
|
||||
|
||||
GetRelaunchRule()->SetLastWeaponUse(false);
|
||||
|
||||
var time=CreateObject(Time);
|
||||
time->SetTime();
|
||||
time->SetCycleSpeed();
|
||||
|
@ -151,16 +154,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;
|
||||
}
|
||||
|
||||
func RelaunchWeaponList() { return [Blunderbuss, Sword, Javelin, FrostboltScroll, Shovel]; }
|
||||
|
||||
/*-- Chest filler effects --*/
|
||||
|
|
Loading…
Reference in New Issue