mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Containment: half-rate score when contested
This commit is contained in:
@ -477,9 +477,10 @@
|
|||||||
* 25000 health Brutus
|
* 25000 health Brutus
|
||||||
|
|
||||||
### Containment
|
### 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
|
* 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
|
* 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
|
@ -2210,6 +2210,7 @@ containment_think()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obj_time = 1000;
|
||||||
held_time = [];
|
held_time = [];
|
||||||
held_time["axis"] = undefined;
|
held_time["axis"] = undefined;
|
||||||
held_time["allies"] = undefined;
|
held_time["allies"] = undefined;
|
||||||
@ -2302,6 +2303,7 @@ containment_think()
|
|||||||
|
|
||||||
if(held_prev != "cont")
|
if(held_prev != "cont")
|
||||||
{
|
{
|
||||||
|
obj_time = 2000;
|
||||||
held_time["axis"] = getTime();
|
held_time["axis"] = getTime();
|
||||||
held_time["allies"] = getTime();
|
held_time["allies"] = getTime();
|
||||||
held_prev = "cont";
|
held_prev = "cont";
|
||||||
@ -2335,6 +2337,7 @@ containment_think()
|
|||||||
|
|
||||||
if(held_prev != "axis")
|
if(held_prev != "axis")
|
||||||
{
|
{
|
||||||
|
obj_time = 1000;
|
||||||
if(held_prev != "cont")
|
if(held_prev != "cont")
|
||||||
{
|
{
|
||||||
held_time["axis"] = getTime();
|
held_time["axis"] = getTime();
|
||||||
@ -2359,6 +2362,7 @@ containment_think()
|
|||||||
|
|
||||||
if(held_prev != "allies")
|
if(held_prev != "allies")
|
||||||
{
|
{
|
||||||
|
obj_time = 1000;
|
||||||
if(held_prev != "cont")
|
if(held_prev != "cont")
|
||||||
{
|
{
|
||||||
held_time["allies"] = getTime();
|
held_time["allies"] = getTime();
|
||||||
@ -2391,7 +2395,7 @@ containment_think()
|
|||||||
|
|
||||||
if(isDefined(held_time["axis"]))
|
if(isDefined(held_time["axis"]))
|
||||||
{
|
{
|
||||||
if((getTime() - held_time["axis"]) >= 1000)
|
if((getTime() - held_time["axis"]) >= obj_time)
|
||||||
{
|
{
|
||||||
held_time["axis"] = getTime();
|
held_time["axis"] = getTime();
|
||||||
|
|
||||||
@ -2404,7 +2408,7 @@ containment_think()
|
|||||||
|
|
||||||
if(isDefined(held_time["allies"]))
|
if(isDefined(held_time["allies"]))
|
||||||
{
|
{
|
||||||
if((getTime() - held_time["allies"]) >= 1000)
|
if((getTime() - held_time["allies"]) >= obj_time)
|
||||||
{
|
{
|
||||||
held_time["allies"] = getTime();
|
held_time["allies"] = getTime();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user