1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-08 22:31:36 -05:00

Tranzit: all local electric doors globally powered

This commit is contained in:
Jbleezy 2020-02-16 14:46:55 -08:00
parent 7348bd2fd0
commit f3f3b908be
2 changed files with 9 additions and 11 deletions

View File

@ -82,7 +82,7 @@
## Maps ## Maps
### Tranzit ### Tranzit
* Pack-a-Punch door is automatically open whenever the power is on * Any door that requires a Turbine to open is automatically open whenever the power is on
#### Town #### Town
* Moved Stamin-Up to its location on Tranzit * Moved Stamin-Up to its location on Tranzit

View File

@ -89,7 +89,7 @@ post_all_players_spawned()
level thread jetgun_remove_forced_weapon_switch(); level thread jetgun_remove_forced_weapon_switch();
level thread transit_power_pap_door_globally(); level thread transit_power_local_electric_doors_globally();
level thread town_move_staminup_machine(); level thread town_move_staminup_machine();
@ -903,14 +903,14 @@ zone_changes()
} }
} }
transit_power_pap_door_globally() transit_power_local_electric_doors_globally()
{ {
if( !(is_classic() && level.scr_zm_map_start_location == "transit") ) if( !(is_classic() && level.scr_zm_map_start_location == "transit") )
{ {
return; return;
} }
local_power = undefined; local_power = [];
for ( ;; ) for ( ;; )
{ {
@ -921,20 +921,18 @@ transit_power_pap_door_globally()
{ {
if ( isDefined( zombie_doors[i].script_noteworthy ) && zombie_doors[i].script_noteworthy == "local_electric_door" ) if ( isDefined( zombie_doors[i].script_noteworthy ) && zombie_doors[i].script_noteworthy == "local_electric_door" )
{ {
if ( isDefined( zombie_doors[i].target ) && zombie_doors[i].target == "lab_secret_hatch" ) local_power[local_power.size] = maps/mp/zombies/_zm_power::add_local_power( zombie_doors[i].origin, 16 );
{
local_power = maps/mp/zombies/_zm_power::add_local_power( zombie_doors[i].origin, 16 );
break;
} }
} }
}
flag_waitopen( "power_on" ); flag_waitopen( "power_on" );
if ( isDefined( local_power ) ) for (i = 0; i < local_power.size; i++)
{ {
maps/mp/zombies/_zm_power::end_local_power( local_power ); maps/mp/zombies/_zm_power::end_local_power( local_power[i] );
local_power[i] = undefined;
} }
local_power = [];
} }
} }