mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-10 02:37:59 -05:00
Properly commented out a dev block...
Changed while loop to foreach.
This commit is contained in:
@ -132,20 +132,16 @@ turn_power_on_and_open_doors() //checked changed at own discretion
|
||||
flag_set( "power_on" );
|
||||
level setclientfield( "zombie_power_on", 1 );
|
||||
zombie_doors = getentarray( "zombie_door", "targetname" );
|
||||
i = 0;
|
||||
while ( i < zombie_doors.size )
|
||||
foreach ( door in zombie_doors )
|
||||
{
|
||||
if ( isDefined( door.script_noteworthy ) && door.script_noteworthy == "electric_door" )
|
||||
{
|
||||
door notify( "power_on" );
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if ( isDefined( door.script_noteworthy ) && door.script_noteworthy == "local_electric_door" )
|
||||
else if ( isDefined( door.script_noteworthy ) && door.script_noteworthy == "local_electric_door" )
|
||||
{
|
||||
door notify( "local_power_on" );
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user