From d6753d0d0c8ec94cd58d5c79f45da63f33b8ca08 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 29 Jan 2022 23:42:36 -0800 Subject: [PATCH] Containment: gain score by most alive players --- README.md | 2 +- scripts/zm/zgrief/zgrief_reimagined.gsc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ca9f5175..24db869e 100644 --- a/README.md +++ b/README.md @@ -476,7 +476,7 @@ * 25000 health Brutus ### Containment -* Gain score by being the only team in the containment zone +* Gain score by being the team with the most alive players in the containment zone * 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 diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index 40ac5e71..097516e4 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -1228,7 +1228,7 @@ grief_intro_text() { self iPrintLn("Welcome to Containment!"); wait 5; - self iPrintLn("Gain score by being the only team in the containment zone."); + self iPrintLn("Gain score by being in the containment zone."); wait 5; self iPrintLn("First team to gain 250 score wins the game."); wait 5; @@ -2162,7 +2162,7 @@ containment_think() } } - if(in_containment_zone["axis"] > 0 && in_containment_zone["allies"] > 0) + if(in_containment_zone["axis"] == in_containment_zone["allies"] && in_containment_zone["axis"] > 0 && in_containment_zone["allies"] > 0) { foreach(player in players) { @@ -2172,7 +2172,7 @@ containment_think() held_time["axis"] = undefined; held_time["allies"] = undefined; } - else if(in_containment_zone["axis"] > 0) + else if(in_containment_zone["axis"] > in_containment_zone["allies"]) { foreach(player in players) { @@ -2197,7 +2197,7 @@ containment_think() increment_score("axis"); } } - else if(in_containment_zone["allies"] > 0) + else if(in_containment_zone["allies"] > in_containment_zone["axis"]) { foreach(player in players) {