Code: Select all
//////////////////////////////////////////
// Script 33: Activates Osprey "attack" //
//////////////////////////////////////////
int osprey1;
script 33 (void)
{
if (!osprey1)
// if (override && !osprey1)
{ osprey1 = 1;
delay(const:35*1);
SetPlayerProperty(1, 1, PROP_TOTALLYFROZEN);
SetPlayerProperty(1, 2, PROP_INVULNERABILITY);
FadeTo (0, 0, 0, 1.0, 4.0); //Fades to black in 4 seconds
delay(const:35*5);
SetMusic ("D_Map03", 0);
ChangeCamera (130, 0, 0);
FadeTo (0, 0, 0, 0.0, 5.0); //Fades out of black in 5 seconds
Thing_Activate(130);
ACS_Execute (29,0,0,0,0); //Activates Barney, grunt
delay(const:35*2);
Teleport_NoFog(34, 1, 0); //Moves player in the open to lure enemies
ACS_Execute (34,0,0,0,0);
ACS_Execute (35,0,0,0,0);
delay(const:35*34);
SpawnSpot ("HLGruntAny", 5, 0, 64);
SpawnSpot ("HLGruntM16", 6, 0, 64);
delay(const:35*6);
FadeTo (0, 0, 0, 1.0, 5.0);
delay(const:35*6);
Teleport_NoFog(35, 1, 0); //Moves player behind crate for protection
Thing_Remove (1); //Removes Osprey
SetPlayerProperty(1, 0, PROP_TOTALLYFROZEN);
SetPlayerProperty(1, 0, PROP_INVULNERABILITY);
ChangeCamera (0, 0, 0);
FadeTo (0, 0, 0, 0.0, 5.0);
SetMusic ("*", 0);
}
}