forked from Mirrors/openclonk
Add boiling lava to crash landing.
It boils like crazy during the intro and then a lot less during the game.shapetextures
parent
a7480ba0ef
commit
d1124f2f73
|
@ -8,6 +8,9 @@ func InitializeObjects()
|
|||
|
||||
CreateObject(Ambience);
|
||||
|
||||
var BoilingLava001 = CreateObject(BoilingLava);
|
||||
BoilingLava001->SetIntensity(25);
|
||||
|
||||
var Rule_BaseRespawn001 = CreateObject(Rule_BaseRespawn);
|
||||
Rule_BaseRespawn001->SetInventoryTransfer(true);
|
||||
Rule_BaseRespawn001->SetFreeCrew(true);
|
||||
|
|
|
@ -31,6 +31,10 @@ func Intro_Start(object hero)
|
|||
SetViewTarget(this.pilot);
|
||||
SetPlayerZoomByViewRange(NO_OWNER, 200,100, PLRZOOM_Set); // zoom out from plane
|
||||
|
||||
// Lava goes crazy during the intro
|
||||
var lava = FindObject(Find_ID(BoilingLava));
|
||||
if (lava) lava->SetIntensity(500);
|
||||
|
||||
return ScheduleNext(80);
|
||||
}
|
||||
|
||||
|
@ -230,6 +234,9 @@ func Intro_24()
|
|||
|
||||
func Intro_Stop()
|
||||
{
|
||||
// Lava gets quiet after intro
|
||||
var lava = FindObject(Find_ID(BoilingLava));
|
||||
if (lava) lava->SetIntensity(25);
|
||||
// if players got stuck somewhere, unstick them
|
||||
for (var i=0; i<GetPlayerCount(C4PT_User); ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue