mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Containment: zombies in zone die when it moves
This commit is contained in:
@ -557,6 +557,7 @@
|
||||
* Contested if both teams have the same amount of players alive in the containment zone
|
||||
* Both teams gain score at half rate when contested
|
||||
* Zombies only go after players in the containment zone
|
||||
* Zombies in the containment zone die when it moves
|
||||
* Players in the containment zone gain 50 points when their team gains score
|
||||
* Players respawn after being down for 10 seconds
|
||||
* Players retain perks
|
||||
|
@ -2505,11 +2505,11 @@ containment_think()
|
||||
wait 10;
|
||||
|
||||
containment_zones = containment_get_zones();
|
||||
i = 0;
|
||||
ind = 0;
|
||||
|
||||
while(1)
|
||||
{
|
||||
zone_name = containment_zones[i];
|
||||
zone_name = containment_zones[ind];
|
||||
zone_display_name = scripts\zm\_zm_reimagined::get_zone_display_name(zone_name);
|
||||
zone = level.zones[zone_name];
|
||||
|
||||
@ -2801,24 +2801,16 @@ containment_think()
|
||||
wait 0.05;
|
||||
}
|
||||
|
||||
level.containment_zone_hud setText("");
|
||||
level.containment_time_hud setText("");
|
||||
|
||||
players = get_players();
|
||||
foreach(player in players)
|
||||
zombies = get_round_enemy_array();
|
||||
if (isDefined(zombies))
|
||||
{
|
||||
if(is_player_valid(player))
|
||||
for (i = 0; i < zombies.size; i++)
|
||||
{
|
||||
if(!meat_stink_player && !is_true(player.spawn_protection) && !is_true(player.revive_protection))
|
||||
if (zombies[i] get_current_zone() == zone_name)
|
||||
{
|
||||
player.ignoreme = 0;
|
||||
zombies[i] dodamage(zombies[i].health + 666, zombies[i].origin);
|
||||
}
|
||||
}
|
||||
|
||||
if(isDefined(player.obj_waypoint))
|
||||
{
|
||||
player.obj_waypoint.alpha = 0;
|
||||
}
|
||||
}
|
||||
|
||||
spawn_points = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype();
|
||||
@ -2830,11 +2822,11 @@ containment_think()
|
||||
}
|
||||
}
|
||||
|
||||
i++;
|
||||
ind++;
|
||||
|
||||
if(i >= containment_zones.size)
|
||||
if(ind >= containment_zones.size)
|
||||
{
|
||||
i = 0;
|
||||
ind = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user