[Mod FF]: Renamed _cheat.gsc to paintball.gsc

This commit is contained in:
JerryALT 2024-03-29 20:50:11 +03:00
parent 975d170e5b
commit 698d14d73f
2 changed files with 27 additions and 1 deletions

View File

@ -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 );
}

View File

@ -12,7 +12,7 @@ rawfile,scripts/bog_a/three_coming_out.gsc
rawfile,scripts/launchfacility_a/loudspeaker.gsc rawfile,scripts/launchfacility_a/loudspeaker.gsc
rawfile,scripts/launchfacility_b/loudspeaker.gsc rawfile,scripts/launchfacility_b/loudspeaker.gsc
rawfile,scripts/simplecredits/credits.gsc rawfile,scripts/simplecredits/credits.gsc
rawfile,scripts/_cheat.gsc rawfile,scripts/paintball.gsc
rawfile,scripts/_damagefeedback.gsc rawfile,scripts/_damagefeedback.gsc
rawfile,scripts/battlechatter.gsc rawfile,scripts/battlechatter.gsc

1 menufile,ui/hud.txt
12 rawfile,scripts/launchfacility_b/loudspeaker.gsc
13 rawfile,scripts/simplecredits/credits.gsc
14 rawfile,scripts/_cheat.gsc rawfile,scripts/paintball.gsc
15 rawfile,scripts/_damagefeedback.gsc
16 rawfile,scripts/battlechatter.gsc
17 // Need rework these scripts in future updates
18 rawfile,maps/killhouse.gsc