1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-05 03:19:06 -05:00

Move map specific functions into separate scripts

Perk pause removal done with replaceFunc
Removes need for replacing power_off_func on every power item
This commit is contained in:
Jbleezy
2022-01-03 13:38:53 -08:00
parent 137738997d
commit fe2906a7f5
8 changed files with 1103 additions and 1244 deletions

View File

@ -0,0 +1,47 @@
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\zombies\_zm_utility;
init()
{
level thread highrise_solo_revive_fix();
}
highrise_solo_revive_fix()
{
if (!(is_classic() && level.scr_zm_map_start_location == "rooftop"))
{
return;
}
flag_wait( "start_zombie_round_logic" );
if (!flag("solo_game"))
{
return;
}
flag_wait( "perks_ready" );
flag_wait( "initial_blackscreen_passed" );
wait 1;
revive_elevator = undefined;
foreach (elevator in level.elevators)
{
if (elevator.body.perk_type == "vending_revive")
{
revive_elevator = elevator;
break;
}
}
revive_elevator.body.elevator_stop = 1;
revive_elevator.body.lock_doors = 1;
revive_elevator.body maps/mp/zm_highrise_elevators::perkelevatordoor(0);
flag_wait( "power_on" );
revive_elevator.body.elevator_stop = 0;
revive_elevator.body.lock_doors = 0;
revive_elevator.body maps/mp/zm_highrise_elevators::perkelevatordoor(1);
}