mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 07:08:06 -05:00
Containment: add team in control of zone to kill feed
This commit is contained in:
@ -229,16 +229,16 @@ REFERENCE ZOMBIE_PLAYER_OUT_CONTAINMENT_ZONE
|
|||||||
LANG_ENGLISH "You are out the containment zone!"
|
LANG_ENGLISH "You are out the containment zone!"
|
||||||
|
|
||||||
REFERENCE ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE
|
REFERENCE ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE
|
||||||
LANG_ENGLISH "Your team controls the containment zone!"
|
LANG_ENGLISH "^8Your team controls the containment zone"
|
||||||
|
|
||||||
REFERENCE ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE
|
REFERENCE ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE
|
||||||
LANG_ENGLISH "Enemy team controls the containment zone!"
|
LANG_ENGLISH "^9Enemy team controls the containment zone"
|
||||||
|
|
||||||
REFERENCE ZOMBIE_CONTAINMENT_ZONE_CONTESTED
|
REFERENCE ZOMBIE_CONTAINMENT_ZONE_CONTESTED
|
||||||
LANG_ENGLISH "Containment zone contested!"
|
LANG_ENGLISH "^3Containment zone contested"
|
||||||
|
|
||||||
REFERENCE ZOMBIE_CONTAINMENT_ZONE_UNCONTROLLED
|
REFERENCE ZOMBIE_CONTAINMENT_ZONE_UNCONTROLLED
|
||||||
LANG_ENGLISH "Containment zone uncontrolled!"
|
LANG_ENGLISH "^7Containment zone uncontrolled"
|
||||||
|
|
||||||
REFERENCE ZOMBIE_GRABBED_MEAT
|
REFERENCE ZOMBIE_GRABBED_MEAT
|
||||||
LANG_ENGLISH "^8&&1 grabbed the meat"
|
LANG_ENGLISH "^8&&1 grabbed the meat"
|
||||||
|
@ -2755,6 +2755,11 @@ containment_think()
|
|||||||
|
|
||||||
if (held_prev != "cont")
|
if (held_prev != "cont")
|
||||||
{
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread print_containment_msg(&"ZOMBIE_CONTAINMENT_ZONE_CONTESTED");
|
||||||
|
}
|
||||||
|
|
||||||
obj_time = 2000;
|
obj_time = 2000;
|
||||||
held_time["axis"] = getTime();
|
held_time["axis"] = getTime();
|
||||||
held_time["allies"] = getTime();
|
held_time["allies"] = getTime();
|
||||||
@ -2787,6 +2792,18 @@ containment_think()
|
|||||||
|
|
||||||
if (held_prev != "axis")
|
if (held_prev != "axis")
|
||||||
{
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
if (player.team == "axis")
|
||||||
|
{
|
||||||
|
player thread print_containment_msg(&"ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
player thread print_containment_msg(&"ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
obj_time = 1000;
|
obj_time = 1000;
|
||||||
|
|
||||||
if (!isDefined(held_time["axis"]))
|
if (!isDefined(held_time["axis"]))
|
||||||
@ -2818,6 +2835,18 @@ containment_think()
|
|||||||
|
|
||||||
if (held_prev != "allies")
|
if (held_prev != "allies")
|
||||||
{
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
if (player.team == "axis")
|
||||||
|
{
|
||||||
|
player thread print_containment_msg(&"ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
player thread print_containment_msg(&"ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
obj_time = 1000;
|
obj_time = 1000;
|
||||||
|
|
||||||
if (!isDefined(held_time["allies"]))
|
if (!isDefined(held_time["allies"]))
|
||||||
@ -2849,6 +2878,11 @@ containment_think()
|
|||||||
|
|
||||||
if (held_prev != "none")
|
if (held_prev != "none")
|
||||||
{
|
{
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player thread print_containment_msg(&"ZOMBIE_CONTAINMENT_ZONE_UNCONTROLLED");
|
||||||
|
}
|
||||||
|
|
||||||
held_time["axis"] = undefined;
|
held_time["axis"] = undefined;
|
||||||
held_time["allies"] = undefined;
|
held_time["allies"] = undefined;
|
||||||
held_prev = "none";
|
held_prev = "none";
|
||||||
@ -3153,6 +3187,11 @@ containment_set_obj_waypoint_icon(icon, next_obj = false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_containment_msg(hint_string)
|
||||||
|
{
|
||||||
|
self iprintln(hint_string);
|
||||||
|
}
|
||||||
|
|
||||||
meat_init()
|
meat_init()
|
||||||
{
|
{
|
||||||
level._powerup_timeout_custom_time = ::meat_powerup_custom_time;
|
level._powerup_timeout_custom_time = ::meat_powerup_custom_time;
|
||||||
|
Reference in New Issue
Block a user