/**************************************************************************** * CS_Intro.SNL * Intro cutscene for the Infiltrate level * TimS Jan 20 2003 ****************************************************************************/ VAR g_MaceObject; /**************************************************************************** * Called when the Cutscene is first created ****************************************************************************/ OnCreate() { g_MaceObject = CS_ClonePlayer(); FX_PlayAnimation( g_MaceObject, "GAMEDATA_TAN_EDGEIDLEB", 0.15, "", 1.0 ); DEBUG( "Beginning cutscene.." ); CS_ShowPlayers( 0 ); CS_SetBorderAlpha( 1.0 ); CS_MoveToCamera( "CamAmmo01", 0.0, "" ); CS_MoveToCamera( "CamAmmo02", 10.0, "OnReachCamAmmo02" ); CS_FadeIn( 2.0 ); CS_ClearText(); CS_AddTimer( 2, "OnTimer_Text1" ); } /***************************************************************************/ OnTimer_Text1() { CS_ClearText(); CS_SetText( 0, "They're stockpiling ammo in these sheds." ); CS_AddTimer( 5, "OnTimer_Text2" ); } OnTimer_Text2() { CS_ClearText(); CS_SetText( 0, "There are 5 others nearby." ); CS_AddTimer( 5, "OnTimer_Text3" ); } OnTimer_Text3() { CS_ClearText(); CS_SetText( 0, "Destroying them all would definitely help the cause!" ); } OnReachCamAmmo02() { CS_MoveToCamera( "CamAmmo03", 12.0, "" ); CS_AddTimer( 4, "OnTimer_BeginFadeout" ); } OnTimer_BeginFadeout() { CS_FadeOut( 2.0 ); CS_AddTimer( 2.0, "EndCutScene" ); } EndCutScene() { HUD_AddMessage( 10.0, "Destroy all 6 Ammo Sheds" ); HUD_HideMissionObjective( "AmmoShed", 0.0 ); DeleteObject( g_MaceObject ); CS_ShowPlayers( 1 ); CS_End(); }