Remove Rule_Restart from Parkour.ocf

alut-include-path
Fulgen301 2017-03-30 20:51:10 +02:00
parent 22bf8ad1f7
commit 25f77fd12c
5 changed files with 5 additions and 7 deletions

View File

@ -45,10 +45,9 @@ protected func Initialize()
// Rules: no power and restart with keeping inventory.
CreateObject(Rule_NoPowerNeed);
var restart = FindObject(Find_ID(Rule_Restart));
if (!restart)
restart = CreateObject(Rule_Restart);
restart->SetRemoveContents(false);
GetRelaunchRule()
->EnablePlayerRestart()
->SetInventoryTransfer(true);
// Initialize parts of the scenario.
var amount = BoundBy(SCENPAR_NrCheckPoints, 6, 20);

View File

@ -503,7 +503,6 @@ func InitializeObjects()
var Torch018 = CreateObjectAbove(Torch, 1005, 1164);
Torch018->AttachToWall(true);
var Rule_Restart001 = CreateObject(Rule_Restart);
g_goal = CreateObject(Goal_Parkour);

View File

@ -2,6 +2,8 @@
private func Initialize()
{
GetRelaunchRule()
->EnablePlayerRestart();
// Create dynamite below the first lava basin
DrawMaterialQuad("Tunnel",1378,1327-5,1860,1327-5,1860,1330,1387,1330,1);

View File

@ -62,7 +62,6 @@ protected func Initialize()
// Create Disasters.
//Earthquake->SetChance(2); - this is so random...not fair without relaunches
ScheduleCall(nil, Global.RemoveAll, 3, nil, Find_ID(Rule_Restart));
return;
}

View File

@ -42,7 +42,6 @@ protected func Initialize()
};
CreateEffect(fx_volcano, 1, 40);
ScheduleCall(nil, Global.RemoveAll, 3, nil, Find_ID(Rule_Restart));
// Bottom is open, so put some stable lava here to prevent remaining lava from just flowing out of the map
DrawMaterialQuad("StableLava",0,h0,w,h0,w,h,0,h);
return;