1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-11 07:37:56 -05:00

Tranzit: fix zombie riser being too high above ground

This commit is contained in:
Jbleezy
2022-01-17 07:44:19 -08:00
parent a905f4c8d4
commit d0d11f4fbf
4 changed files with 24 additions and 12 deletions

View File

@ -255,8 +255,9 @@
* Power switch automatically crafted * Power switch automatically crafted
* Pack-a-Punch automatically crafted * Pack-a-Punch automatically crafted
* Navcard table 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 * 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 #### Bus Depot
* Lava in starting area activates immediately * Lava in starting area activates immediately

View File

@ -113,7 +113,7 @@ disable_zombie_spawn_locations()
level.zones["zone_trans_8"].is_spawning_allowed = 0; level.zones["zone_trans_8"].is_spawning_allowed = 0;
} }
transit_power_zone_init() transit_loc_power_zone_init()
{ {
flag_init( "always_on" ); flag_init( "always_on" );
flag_set( "always_on" ); flag_set( "always_on" );
@ -128,7 +128,7 @@ transit_power_zone_init()
manage_zones( initial_zone ) 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 = [];
initial_zone[0] = "zone_pow"; initial_zone[0] = "zone_pow";
initial_zone[1] = "zone_trans_8"; initial_zone[1] = "zone_trans_8";

View File

@ -1956,7 +1956,6 @@ random_map_rotation()
spawn_bots(num) spawn_bots(num)
{ {
num = 2;
if(getDvar("sv_hostname") != "Private Match") if(getDvar("sv_hostname") != "Private Match")
{ {
return; return;
@ -1979,11 +1978,4 @@ spawn_bots(num)
level.bots[i] = addtestclient(); level.bots[i] = addtestclient();
} }
} }
while(1)
{
player iprintln("player.origin: " + player.origin);
wait 1;
}
} }

View File

@ -31,7 +31,7 @@ init()
level.grenade_safe_to_bounce = ::grenade_safe_to_bounce; level.grenade_safe_to_bounce = ::grenade_safe_to_bounce;
screecher_spawner_changes(); screecher_spawner_changes();
zombie_spawn_location_changes();
path_exploit_fixes(); path_exploit_fixes();
level thread power_local_electric_doors_globally(); level thread power_local_electric_doors_globally();
@ -145,6 +145,25 @@ grenade_safe_to_bounce( player, weapname )
return 1; 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() path_exploit_fixes()
{ {
// town bookstore near jug // town bookstore near jug