Files
gtav-src/script/dev_ng/singleplayer/scripts/Ambient/Rampages/Rampage2.sc
T
2025-09-29 00:52:08 +02:00

61 lines
1.8 KiB
Python
Executable File

// *****************************************************************************************
// *****************************************************************************************
//
// MISSION NAME : rampage2.sc
// AUTHOR : Aaron Gandaa
// DESCRIPTION : Hipsters / Sawn-Off Shotgun
//
// *****************************************************************************************
// *****************************************************************************************
//Compile out Title Update changes to header functions.
//Must be before includes.
//CONST_INT USE_TU_CHANGES 0 // Removed by Kenneth R.
//----------------------
// INCLUDES
//----------------------
USING "rampagev4_include.sch"
USING "mission_control_public.sch"
USING "commands_recording.sch"
//----------------------
// GLOBALS
//----------------------
g_structRCScriptArgs sLaunchDataLocal
//----------------------
// MAIN SCRIPT
//----------------------
SCRIPT(g_structRCScriptArgs sLaunchDataIn)
sLaunchDataLocal = sLaunchDataIn
RC_SET_ENTITY_PROOFS_FOR_CUTSCENE(sLaunchDataLocal, FALSE, FALSE)
SET_MISSION_FLAG(TRUE)
SET_RAMPAGE_FROM_STATIC_BLIP(STATIC_BLIP_MINIGAME_RAMPAGE2)
IF (HAS_FORCE_CLEANUP_OCCURRED(DEFAULT_FORCE_CLEANUP_FLAGS | FORCE_CLEANUP_FLAG_RANDOM_EVENTS))
Random_Character_Failed()
RAMPAGE_CLEANUP(TRUE)
ENDIF
#IF IS_DEBUG_BUILD
//BREAK_ON_NATIVE_COMMAND("CLEAR_AREA_OF_VEHICLES", FALSE)
SET_PROFILING_OF_THIS_SCRIPT(TRUE)
#ENDIF
RAMPAGE_SETUP(sLaunchDataLocal)
// Fade in over half a second and let player be controllable.
WHILE (TRUE)
REPLAY_CHECK_FOR_EVENT_THIS_FRAME("SF_R5") // this is the last rampage in game order
UPDATE_MISSION_NAME_DISPLAYING(sLaunchDataLocal.sIntroCutscene, FALSE, TRUE)
UPDATE_RAMPAGE()
WAIT(0) // wait 1 frame
ENDWHILE
ENDSCRIPT