1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-09 21:38:09 -05:00

Power Station: show power switch

This commit is contained in:
Jbleezy
2022-01-14 09:19:55 -08:00
parent 23f2170576
commit 2252191028

View File

@ -47,6 +47,7 @@ main()
treasure_chest_init();
init_wallbuys();
init_barriers();
show_powerswitch();
disable_zombie_spawn_locations();
level thread maps/mp/zm_transit::falling_death_init();
scripts/zm/locs/common::common_init();
@ -84,6 +85,21 @@ init_barriers()
scripts/zm/replaced/utility::barrier( "collision_player_wall_256x256x10", ( 10563, 8630, -344 ), ( 0, 270, 0 ) );
}
show_powerswitch()
{
body = spawn( "script_model", ( 12237.4, 8512, -749.9 ) );
body.angles = ( 0, 0, 0 );
body setModel( "p6_zm_buildable_pswitch_body" );
lever = spawn( "script_model", ( 12237.4, 8503, -703.65 ) );
lever.angles = ( 0, 0, 0 );
lever setModel( "p6_zm_buildable_pswitch_lever" );
hand = spawn( "script_model", ( 12237.7, 8503.1, -684.55 ) );
hand.angles = ( 0, 270, 0 );
hand setModel( "p6_zm_buildable_pswitch_hand" );
}
disable_zombie_spawn_locations()
{
level.zones["zone_trans_8"].is_spawning_allowed = 0;