forked from Mirrors/openclonk
Modify ThunderousSkies in order to work with Rule_Relaunch
parent
689e57d624
commit
76d8df9676
|
@ -18,6 +18,7 @@ protected func Initialize()
|
|||
AddEffect("BlessTheKing",goal,100,1,nil);
|
||||
CreateObject(Rule_KillLogs);
|
||||
CreateObject(Rule_Gravestones);
|
||||
GetRelaunchRule()->SetLastWeaponUse(false);
|
||||
|
||||
//Enviroment.
|
||||
//SetSkyAdjust(RGBa(250,250,255,128),RGB(200,200,220));
|
||||
|
@ -247,29 +248,11 @@ protected func InitializePlayer(int plr)
|
|||
{
|
||||
// This scenario does not have shadows.
|
||||
SetFoW(false, plr);
|
||||
return JoinPlayer(plr);
|
||||
}
|
||||
|
||||
// GameCall from RelaunchContainer.
|
||||
protected func RelaunchPlayer(int plr)
|
||||
public func RelaunchPosition()
|
||||
{
|
||||
var clonk = CreateObjectAbove(Clonk, 0, 0, plr);
|
||||
clonk->MakeCrewMember(plr);
|
||||
SetCursor(plr, clonk);
|
||||
JoinPlayer(plr);
|
||||
return;
|
||||
}
|
||||
|
||||
protected func JoinPlayer(int plr)
|
||||
{
|
||||
var clonk = GetCrew(plr);
|
||||
clonk->DoEnergy(100000);
|
||||
var position = [[180,150],[310,320],[600,290],[650,180],[790,110],[440,190]];
|
||||
var r=Random(GetLength(position));
|
||||
var x = position[r][0], y = position[r][1];
|
||||
var relaunch = CreateObjectAbove(RelaunchContainer, x, y + 49, clonk->GetOwner());
|
||||
relaunch->StartRelaunch(clonk);
|
||||
return;
|
||||
return [[180,150],[310,320],[600,290],[650,180],[790,110],[440,190]];
|
||||
}
|
||||
|
||||
func KillsToRelaunch() { return 0; }
|
||||
|
|
Loading…
Reference in New Issue