1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Containment and Meat: add personal HUD messages

This commit is contained in:
Jbleezy 2024-01-15 22:53:22 -08:00
parent f4daced498
commit dc5d29f131
3 changed files with 29 additions and 0 deletions

View File

@ -222,6 +222,12 @@ LANG_ENGLISH "Nuke Grabbed! [&&1 Score]"
REFERENCE ZOMBIE_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
LANG_ENGLISH "Your team controls the containment zone!"

View File

@ -223,6 +223,8 @@ meat_stink(who, owner)
if (level.scr_zm_ui_gametype_obj == "zmeat")
{
who.head_icon.alpha = 0;
who thread [[level.show_grief_hud_msg_func]](&"ZOMBIE_PLAYER_HAS_MEAT");
}
players = get_players();

View File

@ -689,6 +689,11 @@ on_player_spawned()
self enableInvulnerability();
}
if (level.scr_zm_ui_gametype_obj == "zcontainment")
{
self.in_containment_zone = undefined;
}
if (is_respawn_gamemode())
{
min_points = level.player_starting_points;
@ -2609,6 +2614,8 @@ containment_think()
foreach (player in players)
{
player.in_containment_zone = undefined;
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;
}
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();
}
else
@ -2673,6 +2687,13 @@ containment_think()
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);
}