From bd378fb8d1e7c65ead56bbb521f8f2139f246cfe Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 30 Jan 2022 18:08:07 -0800 Subject: [PATCH] Containment: last score must be uncontested --- scripts/zm/zgrief/zgrief_reimagined.gsc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index 170d225a..57c06441 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -2373,7 +2373,11 @@ containment_think() if((getTime() - held_time["axis"]) >= 1000) { held_time["axis"] = getTime(); - increment_score("axis"); + + if((held_prev != "cont") || ((level.grief_score["A"] + 1) < level.grief_winning_score)) + { + increment_score("axis"); + } } } @@ -2382,7 +2386,12 @@ containment_think() if((getTime() - held_time["allies"]) >= 1000) { held_time["allies"] = getTime(); - increment_score("allies"); + + + if((held_prev != "cont") || ((level.grief_score["B"] + 1) < level.grief_winning_score)) + { + increment_score("allies"); + } } }