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