1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-13 00:28:03 -05:00

Containment: last score must be uncontested

This commit is contained in:
Jbleezy
2022-01-30 18:08:07 -08:00
parent ee8e9694f6
commit bd378fb8d1

View File

@ -2373,18 +2373,27 @@ containment_think()
if((getTime() - held_time["axis"]) >= 1000) if((getTime() - held_time["axis"]) >= 1000)
{ {
held_time["axis"] = getTime(); held_time["axis"] = getTime();
if((held_prev != "cont") || ((level.grief_score["A"] + 1) < level.grief_winning_score))
{
increment_score("axis"); increment_score("axis");
} }
} }
}
if(isDefined(held_time["allies"])) if(isDefined(held_time["allies"]))
{ {
if((getTime() - held_time["allies"]) >= 1000) if((getTime() - held_time["allies"]) >= 1000)
{ {
held_time["allies"] = getTime(); held_time["allies"] = getTime();
if((held_prev != "cont") || ((level.grief_score["B"] + 1) < level.grief_winning_score))
{
increment_score("allies"); increment_score("allies");
} }
} }
}
wait 0.05; wait 0.05;
} }