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