Modify RockBottom in order to work with Rule_Relaunch

alut-include-path
Fulgen301 2017-03-30 14:04:16 +02:00
parent 969cebd03a
commit c147781861
1 changed files with 6 additions and 10 deletions

View File

@ -12,6 +12,7 @@ protected func Initialize()
CreateObject(Goal_LastManStanding, 0, 0, NO_OWNER);
CreateObject(Rule_KillLogs);
CreateObject(Rule_Gravestones);
GetRelaunchRule()->SetLastWeaponUse(false);
// Chests with weapons.
var chest = CreateObjectAbove(Chest, 108, 248);
@ -82,16 +83,6 @@ protected func InitializePlayer(int plr)
return;
}
// Gamecall from LastManStanding goal, on respawning.
protected func OnPlayerRelaunch(int plr)
{
var clonk = GetCrew(plr);
var relaunch = CreateObjectAbove(RelaunchContainer, LandscapeWidth() / 2, LandscapeHeight() / 2, clonk->GetOwner());
relaunch->StartRelaunch(clonk);
return;
}
// Refill/fill chests.
global func FxIntFillChestsStart(object target, proplist effect, int temporary, object chest)
{
@ -135,5 +126,10 @@ public func OnClonkLeftRelaunch(object clonk)
return;
}
public func RelaunchPosition()
{
return [LandscapeWidth() / 2, LandscapeHeight() / 2];
}
public func KillsToRelaunch() { return 0; }
public func RelaunchWeaponList() { return [Bow, Shield, Sword, Firestone, Dynamite, Javelin, Blunderbuss]; }