From c1173de87dde70bd1f600dd4c111bd395874b38c Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 16 Jan 2022 07:34:06 -0800 Subject: [PATCH] Power Station: add buildable tarps --- scripts/zm/locs/zm_transit_loc_power.gsc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/zm/locs/zm_transit_loc_power.gsc b/scripts/zm/locs/zm_transit_loc_power.gsc index 71c725df..24b58779 100644 --- a/scripts/zm/locs/zm_transit_loc_power.gsc +++ b/scripts/zm/locs/zm_transit_loc_power.gsc @@ -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;