mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Containment: ignore players not in zone
This commit is contained in:
@ -478,5 +478,6 @@
|
|||||||
### Containment
|
### Containment
|
||||||
* Gain score by being the only team in the containment zone
|
* Gain score by being the only team in the containment zone
|
||||||
* First team to gain 250 score wins the game
|
* First team to gain 250 score wins the game
|
||||||
|
* Zombies only go after players in the containment zone
|
||||||
* Players respawn after being down for 10 seconds
|
* Players respawn after being down for 10 seconds
|
||||||
* Players retain perks
|
* Players retain perks
|
@ -2121,6 +2121,7 @@ containment_think()
|
|||||||
if(is_player_valid(player))
|
if(is_player_valid(player))
|
||||||
{
|
{
|
||||||
in_containment_zone[player.team]++;
|
in_containment_zone[player.team]++;
|
||||||
|
player.ignoreme = 0;
|
||||||
|
|
||||||
if(isads(player))
|
if(isads(player))
|
||||||
{
|
{
|
||||||
@ -2146,6 +2147,7 @@ containment_think()
|
|||||||
{
|
{
|
||||||
if(is_player_valid(player))
|
if(is_player_valid(player))
|
||||||
{
|
{
|
||||||
|
player.ignoreme = 1;
|
||||||
player.containment_waypoint.alpha = 0.5;
|
player.containment_waypoint.alpha = 0.5;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2224,6 +2226,10 @@ containment_think()
|
|||||||
{
|
{
|
||||||
foreach(player in players)
|
foreach(player in players)
|
||||||
{
|
{
|
||||||
|
if(is_player_valid(player))
|
||||||
|
{
|
||||||
|
player.ignoreme = 0;
|
||||||
|
}
|
||||||
player.containment_waypoint.color = (1, 1, 1);
|
player.containment_waypoint.color = (1, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2240,6 +2246,11 @@ containment_think()
|
|||||||
players = get_players();
|
players = get_players();
|
||||||
foreach(player in players)
|
foreach(player in players)
|
||||||
{
|
{
|
||||||
|
if(is_player_valid(player))
|
||||||
|
{
|
||||||
|
player.ignoreme = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if(isDefined(player.containment_waypoint))
|
if(isDefined(player.containment_waypoint))
|
||||||
{
|
{
|
||||||
player.containment_waypoint.alpha = 0;
|
player.containment_waypoint.alpha = 0;
|
||||||
|
Reference in New Issue
Block a user