mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -05:00
Buried: power on and removed Turbine
This commit is contained in:
parent
3c39993887
commit
adfccf20b7
@ -110,6 +110,8 @@
|
|||||||
* Plane fuel automatically picked up
|
* Plane fuel automatically picked up
|
||||||
|
|
||||||
### Buried
|
### Buried
|
||||||
|
* Power automatically on
|
||||||
|
* Removed Turbine
|
||||||
* Removed Sloth barricades
|
* Removed Sloth barricades
|
||||||
* Fountain portal automatically active
|
* Fountain portal automatically active
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ post_all_players_spawned()
|
|||||||
disable_high_round_walkers();
|
disable_high_round_walkers();
|
||||||
|
|
||||||
disable_perk_pause();
|
disable_perk_pause();
|
||||||
|
enable_free_perks_before_power();
|
||||||
|
|
||||||
disable_carpenter();
|
disable_carpenter();
|
||||||
|
|
||||||
@ -86,6 +87,8 @@ post_all_players_spawned()
|
|||||||
slipgun_always_kill();
|
slipgun_always_kill();
|
||||||
slipgun_disable_reslip();
|
slipgun_disable_reslip();
|
||||||
|
|
||||||
|
buried_turn_power_on();
|
||||||
|
|
||||||
//disable_pers_upgrades(); // TODO
|
//disable_pers_upgrades(); // TODO
|
||||||
|
|
||||||
level thread buildbuildables();
|
level thread buildbuildables();
|
||||||
@ -357,6 +360,11 @@ perk_power_off( origin, radius )
|
|||||||
level notify( self.target maps/mp/zombies/_zm_perks::getvendingmachinenotify() + "_off" );
|
level notify( self.target maps/mp/zombies/_zm_perks::getvendingmachinenotify() + "_off" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enable_free_perks_before_power()
|
||||||
|
{
|
||||||
|
level.disable_free_perks_before_power = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
buildbuildables()
|
buildbuildables()
|
||||||
{
|
{
|
||||||
// need a wait or else some buildables dont build
|
// need a wait or else some buildables dont build
|
||||||
@ -384,7 +392,10 @@ buildbuildables()
|
|||||||
}
|
}
|
||||||
else if(level.scr_zm_map_start_location == "processing")
|
else if(level.scr_zm_map_start_location == "processing")
|
||||||
{
|
{
|
||||||
buildbuildable( "turbine" );
|
level waittill( "buildables_setup" ); // wait for buildables to randomize
|
||||||
|
wait 0.05;
|
||||||
|
|
||||||
|
removebuildable( "turbine" );
|
||||||
buildbuildable( "springpad_zm" );
|
buildbuildable( "springpad_zm" );
|
||||||
buildbuildable( "subwoofer_zm" );
|
buildbuildable( "subwoofer_zm" );
|
||||||
buildbuildable( "headchopper_zm" );
|
buildbuildable( "headchopper_zm" );
|
||||||
@ -392,6 +403,35 @@ buildbuildables()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removebuildable( buildable )
|
||||||
|
{
|
||||||
|
player = get_players()[ 0 ];
|
||||||
|
_a197 = level.buildable_stubs;
|
||||||
|
_k197 = getFirstArrayKey( _a197 );
|
||||||
|
while ( isDefined( _k197 ) )
|
||||||
|
{
|
||||||
|
stub = _a197[ _k197 ];
|
||||||
|
if ( !isDefined( buildable ) || stub.equipname == buildable )
|
||||||
|
{
|
||||||
|
if ( isDefined( buildable ) || stub.persistent != 3 )
|
||||||
|
{
|
||||||
|
stub maps/mp/zombies/_zm_buildables::buildablestub_remove();
|
||||||
|
_a206 = stub.buildablezone.pieces;
|
||||||
|
_k206 = getFirstArrayKey( _a206 );
|
||||||
|
while ( isDefined( _k206 ) )
|
||||||
|
{
|
||||||
|
piece = _a206[ _k206 ];
|
||||||
|
piece maps/mp/zombies/_zm_buildables::piece_unspawn();
|
||||||
|
_k206 = getNextArrayKey( _a206, _k206 );
|
||||||
|
}
|
||||||
|
maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( stub );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_k197 = getNextArrayKey( _a197, _k197 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
buildbuildable( buildable )
|
buildbuildable( buildable )
|
||||||
{
|
{
|
||||||
player = get_players()[ 0 ];
|
player = get_players()[ 0 ];
|
||||||
@ -1229,7 +1269,24 @@ prison_auto_refuel_plane()
|
|||||||
|
|
||||||
buried_turn_power_on()
|
buried_turn_power_on()
|
||||||
{
|
{
|
||||||
|
if(!(is_classic() && level.scr_zm_map_start_location == "processing"))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger = getent( "use_elec_switch", "targetname" );
|
||||||
|
if ( isDefined( trigger ) )
|
||||||
|
{
|
||||||
|
trigger delete();
|
||||||
|
}
|
||||||
|
master_switch = getent( "elec_switch", "targetname" );
|
||||||
|
if ( isDefined( master_switch ) )
|
||||||
|
{
|
||||||
|
master_switch notsolid();
|
||||||
|
master_switch rotateroll( -90, 0.3 );
|
||||||
|
clientnotify( "power_on" );
|
||||||
|
flag_set( "power_on" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buried_deleteslothbarricades()
|
buried_deleteslothbarricades()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user