From 698d14d73f82277ddbe2eed5b348bd973442ab67 Mon Sep 17 00:00:00 2001 From: JerryALT Date: Fri, 29 Mar 2024 20:50:11 +0300 Subject: [PATCH] [Mod FF]: Renamed _cheat.gsc to paintball.gsc --- iw3sp_mod_ff_src/raw/scripts/paintball.gsc | 26 ++++++++++++++++++++++ iw3sp_mod_ff_src/zone_source/iw3sp_mod.csv | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 iw3sp_mod_ff_src/raw/scripts/paintball.gsc diff --git a/iw3sp_mod_ff_src/raw/scripts/paintball.gsc b/iw3sp_mod_ff_src/raw/scripts/paintball.gsc new file mode 100644 index 0000000..59f81e1 --- /dev/null +++ b/iw3sp_mod_ff_src/raw/scripts/paintball.gsc @@ -0,0 +1,26 @@ +// New 'Paintball' cheat from the Wii Version +init() +{ + maps\_cheat::addCheat( "sf_use_paintball", ::paintballMode ); + + level.cheatDvars = getArrayKeys( level.cheatStates ); + + for ( ;; ) + { + for ( index = 0; index < level.cheatDvars.size; index++ ) + maps\_cheat::checkCheatChanged( level.cheatDvars[index] ); + + wait 0.5; + } +} + +paintballMode( cheatValue ) +{ + if ( level.script == "ac130" || level.script == "aftermath" ) + return; + + if ( cheatValue ) + setsaveddvar ( "paintball_mode", 1 ); + else + setsaveddvar ( "paintball_mode", 0 ); +} \ No newline at end of file diff --git a/iw3sp_mod_ff_src/zone_source/iw3sp_mod.csv b/iw3sp_mod_ff_src/zone_source/iw3sp_mod.csv index 6ea0ee6..62088c3 100644 --- a/iw3sp_mod_ff_src/zone_source/iw3sp_mod.csv +++ b/iw3sp_mod_ff_src/zone_source/iw3sp_mod.csv @@ -12,7 +12,7 @@ rawfile,scripts/bog_a/three_coming_out.gsc rawfile,scripts/launchfacility_a/loudspeaker.gsc rawfile,scripts/launchfacility_b/loudspeaker.gsc rawfile,scripts/simplecredits/credits.gsc -rawfile,scripts/_cheat.gsc +rawfile,scripts/paintball.gsc rawfile,scripts/_damagefeedback.gsc rawfile,scripts/battlechatter.gsc