From 5ba0196d59e33f8ac6f5834e11bbb8df41020e40 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 24 Mar 2023 22:59:29 -0700 Subject: [PATCH] Maze: add collision to top of perk machines Maze: add collision next to Mule Kick --- scripts/zm/locs/zm_buried_loc_maze.gsc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/zm/locs/zm_buried_loc_maze.gsc b/scripts/zm/locs/zm_buried_loc_maze.gsc index 38c53c36..3e31b8ae 100644 --- a/scripts/zm/locs/zm_buried_loc_maze.gsc +++ b/scripts/zm/locs/zm_buried_loc_maze.gsc @@ -194,6 +194,7 @@ main() maps\mp\zombies\_zm::spawn_kill_brush( (4919, 575, -511), 128, 300 ); maps\mp\zombies\_zm::spawn_kill_brush( (6751, 568, -785), 256, 400 ); init_wallbuys(); + init_barriers(); disable_player_spawn_locations(); disable_mansion(); scripts\zm\locs\loc_common::init(); @@ -228,6 +229,19 @@ init_wallbuys() scripts\zm\replaced\utility::wallbuy( "an94_zm", "an94", "weapon_upgrade", og_weapon_structs[5].origin, og_weapon_structs[5].angles ); } +init_barriers() +{ + scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", (3398, 898, 116), (0, 0, 0) ); + scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", (3398, 898, 244), (0, 0, 0) ); + scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", (3398, 898, 372), (0, 0, 0) ); + + structs = getstructarray( "zm_perk_machine", "targetname" ); + foreach (struct in structs) + { + scripts\zm\replaced\utility::barrier( "collision_geo_64x64x128_standard", struct.origin + (anglesToRight(struct.angles) * -9) + (0, 0, 320), struct.angles ); + } +} + disable_player_spawn_locations() { spawn_points = getstructarray( "player_respawn_point", "targetname" );