From d0d11f4fbfea244f03c835c2e92c82f0063b8ee8 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 17 Jan 2022 07:44:19 -0800 Subject: [PATCH] Tranzit: fix zombie riser being too high above ground --- README.md | 3 ++- scripts/zm/locs/zm_transit_loc_power.gsc | 4 ++-- scripts/zm/zgrief/zgrief_reimagined.gsc | 8 ------- .../zm/zm_transit/zm_transit_reimagined.gsc | 21 ++++++++++++++++++- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 30293d41..d88ba887 100644 --- a/README.md +++ b/README.md @@ -255,8 +255,9 @@ * Power switch automatically crafted * Pack-a-Punch automatically crafted * Navcard table automatically crafted -* Fixed a zombie pathing exploit at Town in Bookstore * Grief: added Ballistic Knife, Ray Gun, and Ray Gun Mark 2 to the Mystery Box +* Fixed a zombie riser spawn point at Outside Power Station being too high above ground +* Fixed a zombie pathing exploit at Town in Bookstore #### Bus Depot * Lava in starting area activates immediately diff --git a/scripts/zm/locs/zm_transit_loc_power.gsc b/scripts/zm/locs/zm_transit_loc_power.gsc index dd964399..0afe8632 100644 --- a/scripts/zm/locs/zm_transit_loc_power.gsc +++ b/scripts/zm/locs/zm_transit_loc_power.gsc @@ -113,7 +113,7 @@ disable_zombie_spawn_locations() level.zones["zone_trans_8"].is_spawning_allowed = 0; } -transit_power_zone_init() +transit_loc_power_zone_init() { flag_init( "always_on" ); flag_set( "always_on" ); @@ -128,7 +128,7 @@ transit_power_zone_init() manage_zones( initial_zone ) { - level.zone_manager_init_func = ::transit_power_zone_init; + level.zone_manager_init_func = ::transit_loc_power_zone_init; initial_zone = []; initial_zone[0] = "zone_pow"; initial_zone[1] = "zone_trans_8"; diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index 291f477a..1bfeeb7d 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -1956,7 +1956,6 @@ random_map_rotation() spawn_bots(num) { - num = 2; if(getDvar("sv_hostname") != "Private Match") { return; @@ -1979,11 +1978,4 @@ spawn_bots(num) level.bots[i] = addtestclient(); } } - - while(1) - { - player iprintln("player.origin: " + player.origin); - - wait 1; - } } \ No newline at end of file diff --git a/scripts/zm/zm_transit/zm_transit_reimagined.gsc b/scripts/zm/zm_transit/zm_transit_reimagined.gsc index b63c0ac2..6eeb38df 100644 --- a/scripts/zm/zm_transit/zm_transit_reimagined.gsc +++ b/scripts/zm/zm_transit/zm_transit_reimagined.gsc @@ -31,7 +31,7 @@ init() level.grenade_safe_to_bounce = ::grenade_safe_to_bounce; screecher_spawner_changes(); - + zombie_spawn_location_changes(); path_exploit_fixes(); level thread power_local_electric_doors_globally(); @@ -145,6 +145,25 @@ grenade_safe_to_bounce( player, weapname ) return 1; } +zombie_spawn_location_changes() +{ + for ( z = 0; z < level.zone_keys.size; z++ ) + { + zone = level.zones[ level.zone_keys[ z ] ]; + + i = 0; + while ( i < zone.spawn_locations.size ) + { + if ( zone.spawn_locations[ i ].origin == ( 9963, 8025, -554.9 ) ) + { + zone.spawn_locations[ i ].origin += ( 0, 0, -32 ); + } + + i++; + } + } +} + path_exploit_fixes() { // town bookstore near jug