mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-04 10:59:25 -05:00
Power Station: activate core
This commit is contained in:
@ -42,6 +42,7 @@ main()
|
|||||||
show_powerswitch();
|
show_powerswitch();
|
||||||
generatebuildabletarps();
|
generatebuildabletarps();
|
||||||
disable_zombie_spawn_locations();
|
disable_zombie_spawn_locations();
|
||||||
|
level thread activate_core();
|
||||||
level thread maps/mp/zm_transit::falling_death_init();
|
level thread maps/mp/zm_transit::falling_death_init();
|
||||||
scripts/zm/locs/loc_common::init();
|
scripts/zm/locs/loc_common::init();
|
||||||
}
|
}
|
||||||
@ -95,6 +96,28 @@ show_powerswitch()
|
|||||||
hand setModel( "p6_zm_buildable_pswitch_hand" );
|
hand setModel( "p6_zm_buildable_pswitch_hand" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
activate_core()
|
||||||
|
{
|
||||||
|
power_event_time = 30;
|
||||||
|
reactor_core_mover = getent( "core_mover", "targetname" );
|
||||||
|
reactor_core_audio = spawn( "script_origin", reactor_core_mover.origin );
|
||||||
|
|
||||||
|
maps/mp/zm_transit_power::linkentitiestocoremover( reactor_core_mover );
|
||||||
|
|
||||||
|
flag_wait( "initial_blackscreen_passed" );
|
||||||
|
|
||||||
|
reactor_core_mover playsound( "zmb_power_rise_start" );
|
||||||
|
reactor_core_mover playloopsound( "zmb_power_rise_loop", 0.75 );
|
||||||
|
|
||||||
|
reactor_core_mover thread maps/mp/zm_transit_power::coremove( 30 );
|
||||||
|
|
||||||
|
wait power_event_time;
|
||||||
|
|
||||||
|
reactor_core_mover stoploopsound( 0.5 );
|
||||||
|
reactor_core_audio playloopsound( "zmb_power_on_loop", 2 );
|
||||||
|
reactor_core_mover playsound( "zmb_power_rise_stop" );
|
||||||
|
}
|
||||||
|
|
||||||
generatebuildabletarps()
|
generatebuildabletarps()
|
||||||
{
|
{
|
||||||
// power switch
|
// power switch
|
||||||
|
Reference in New Issue
Block a user