mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 22:31:36 -05:00
Containment and Meat: add personal HUD messages
This commit is contained in:
parent
f4daced498
commit
dc5d29f131
@ -222,6 +222,12 @@ LANG_ENGLISH "Nuke Grabbed! [&&1 Score]"
|
|||||||
REFERENCE ZOMBIE_NEW_CONTAINMENT_ZONE
|
REFERENCE ZOMBIE_NEW_CONTAINMENT_ZONE
|
||||||
LANG_ENGLISH "New containment zone!"
|
LANG_ENGLISH "New containment zone!"
|
||||||
|
|
||||||
|
REFERENCE ZOMBIE_PLAYER_IN_CONTAINMENT_ZONE
|
||||||
|
LANG_ENGLISH "You are in the containment zone!"
|
||||||
|
|
||||||
|
REFERENCE ZOMBIE_PLAYER_OUT_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 "Your team controls the containment zone!"
|
||||||
|
|
||||||
|
@ -223,6 +223,8 @@ meat_stink(who, owner)
|
|||||||
if (level.scr_zm_ui_gametype_obj == "zmeat")
|
if (level.scr_zm_ui_gametype_obj == "zmeat")
|
||||||
{
|
{
|
||||||
who.head_icon.alpha = 0;
|
who.head_icon.alpha = 0;
|
||||||
|
|
||||||
|
who thread [[level.show_grief_hud_msg_func]](&"ZOMBIE_PLAYER_HAS_MEAT");
|
||||||
}
|
}
|
||||||
|
|
||||||
players = get_players();
|
players = get_players();
|
||||||
|
@ -689,6 +689,11 @@ on_player_spawned()
|
|||||||
self enableInvulnerability();
|
self enableInvulnerability();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (level.scr_zm_ui_gametype_obj == "zcontainment")
|
||||||
|
{
|
||||||
|
self.in_containment_zone = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_respawn_gamemode())
|
if (is_respawn_gamemode())
|
||||||
{
|
{
|
||||||
min_points = level.player_starting_points;
|
min_points = level.player_starting_points;
|
||||||
@ -2609,6 +2614,8 @@ containment_think()
|
|||||||
|
|
||||||
foreach (player in players)
|
foreach (player in players)
|
||||||
{
|
{
|
||||||
|
player.in_containment_zone = undefined;
|
||||||
|
|
||||||
player thread show_grief_hud_msg(&"ZOMBIE_NEW_CONTAINMENT_ZONE");
|
player thread show_grief_hud_msg(&"ZOMBIE_NEW_CONTAINMENT_ZONE");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2662,6 +2669,13 @@ containment_think()
|
|||||||
in_containment_zone[player.team][in_containment_zone[player.team].size] = player;
|
in_containment_zone[player.team][in_containment_zone[player.team].size] = player;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_true(player.in_containment_zone))
|
||||||
|
{
|
||||||
|
player.in_containment_zone = 1;
|
||||||
|
|
||||||
|
player thread show_grief_hud_msg(&"ZOMBIE_PLAYER_IN_CONTAINMENT_ZONE");
|
||||||
|
}
|
||||||
|
|
||||||
player containment_set_obj_waypoint_on_screen();
|
player containment_set_obj_waypoint_on_screen();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2673,6 +2687,13 @@ containment_think()
|
|||||||
player.ignoreme = close_zombies.size == 0;
|
player.ignoreme = close_zombies.size == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_true(player.in_containment_zone))
|
||||||
|
{
|
||||||
|
player.in_containment_zone = undefined;
|
||||||
|
|
||||||
|
player thread show_grief_hud_msg(&"ZOMBIE_PLAYER_OUT_CONTAINMENT_ZONE");
|
||||||
|
}
|
||||||
|
|
||||||
player containment_set_obj_waypoint_off_screen(zone_name, zone);
|
player containment_set_obj_waypoint_off_screen(zone_name, zone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user