1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-09 23:02:53 -05:00

Power Station: add buildable tarps

This commit is contained in:
Jbleezy
2022-01-16 07:34:06 -08:00
parent 1745ce3b14
commit c1173de87d

View File

@ -48,6 +48,7 @@ main()
init_wallbuys();
init_barriers();
show_powerswitch();
generatebuildabletarps();
disable_zombie_spawn_locations();
level thread maps/mp/zm_transit::falling_death_init();
scripts/zm/locs/loc_common::init();
@ -100,6 +101,19 @@ show_powerswitch()
hand setModel( "p6_zm_buildable_pswitch_hand" );
}
generatebuildabletarps()
{
// power switch
tarp = spawn( "script_model", ( 12169, 8498, -752 ) );
tarp.angles = ( 0, 180, 0 );
tarp setModel( "p6_zm_buildable_bench_tarp" );
// trap
tarp = spawn( "script_model", ( 11325, 8170, -488 ) );
tarp.angles = ( 0, 0, 0 );
tarp setModel( "p6_zm_buildable_bench_tarp" );
}
disable_zombie_spawn_locations()
{
level.zones["zone_trans_8"].is_spawning_allowed = 0;