fixed IronPeak intro

issue1247
Maikel de Vries 2014-09-21 16:29:01 +02:00
parent 6766ac1526
commit de52ad2d4c
3 changed files with 18 additions and 14 deletions

View File

@ -6,7 +6,7 @@ Difficulty=20
[Definitions]
Definition1=Objects.ocd
Definition2=Decoration.ocd/Misc.ocd/AltMaterials.ocd
Definition2=Decoration.ocd\Misc.ocd\AltMaterials.ocd
[Player1]
Crew=Clonk=2

View File

@ -173,7 +173,7 @@ global func FxSnowStormStart(object target, proplist effect)
// Always a strong wind, either to the left or the right.
effect.wind = (2 * Random(2) - 1) * (90 + Random(10));
// Accordingly a stormy sound.
Sound("WindLoop.ogg", true, 80, nil, 1);
Sound("WindLoop.ogg", true, 50, nil, 1);
return 1;
}

View File

@ -2,7 +2,7 @@
#appendto Sequence
public func Intro_Start()
public func Intro_Init()
{
// Create an airplane with pilot and fly it towards the peak.
this.airplane = CreateObject(Plane, 24, LandscapeHeight() - 480);
@ -18,23 +18,27 @@ public func Intro_Start()
this.airplane->SetXDir(12);
this.airplane->SetYDir(-10);
this.airplane->MakeInvincible();
// Move crew into airplane.
for (var i = 0; i < GetPlayerCount(C4PT_User); ++i)
return;
}
public func Intro_Start()
{
return ScheduleNext(4);
}
public func Intro_JoinPlayer(int plr)
{
var j = 0, crew;
while (crew = GetCrew(plr, j++))
{
var plr = GetPlayerByIndex(i, C4PT_User);
var j = 0, crew;
while (crew = GetCrew(plr, j++))
{
crew->Enter(this.airplane);
crew->SetAction("Walk");
}
crew->Enter(this.airplane);
crew->SetAction("Walk");
}
// Reduce zoom
SetPlayerZoomByViewRange(NO_OWNER, 300, nil, PLRZOOM_Set | PLRZOOM_LimitMax);
SetViewTarget(this.pilot);
return ScheduleNext(4);
return;
}
public func Intro_1()