From 92f703ff359a3aa4aaadfdce7f11c9f4f7838f33 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 31 Jan 2022 08:41:08 -0800 Subject: [PATCH] Containment: half-rate score when contested --- README.md | 5 +++-- scripts/zm/zgrief/zgrief_reimagined.gsc | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cbf84cb7..99d9bec4 100644 --- a/README.md +++ b/README.md @@ -477,9 +477,10 @@ * 25000 health Brutus ### Containment -* Gain score by being the team with the most alive players in the containment zone +* Gain score by being the team with the most players alive in the containment zone * First team to gain 250 score wins the game -* Both teams gain score if both teams have the same amount of alive players in the containment zone +* 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 * Players respawn after being down for 10 seconds * Players retain perks \ No newline at end of file diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index 32ed6eaa..b887a43f 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -2210,6 +2210,7 @@ containment_think() } } + obj_time = 1000; held_time = []; held_time["axis"] = undefined; held_time["allies"] = undefined; @@ -2302,6 +2303,7 @@ containment_think() if(held_prev != "cont") { + obj_time = 2000; held_time["axis"] = getTime(); held_time["allies"] = getTime(); held_prev = "cont"; @@ -2335,6 +2337,7 @@ containment_think() if(held_prev != "axis") { + obj_time = 1000; if(held_prev != "cont") { held_time["axis"] = getTime(); @@ -2359,6 +2362,7 @@ containment_think() if(held_prev != "allies") { + obj_time = 1000; if(held_prev != "cont") { held_time["allies"] = getTime(); @@ -2391,7 +2395,7 @@ containment_think() if(isDefined(held_time["axis"])) { - if((getTime() - held_time["axis"]) >= 1000) + if((getTime() - held_time["axis"]) >= obj_time) { held_time["axis"] = getTime(); @@ -2404,7 +2408,7 @@ containment_think() if(isDefined(held_time["allies"])) { - if((getTime() - held_time["allies"]) >= 1000) + if((getTime() - held_time["allies"]) >= obj_time) { held_time["allies"] = getTime();