diff --git a/english/localizedstrings/reimagined.str b/english/localizedstrings/reimagined.str index 656fc97c..53f5a647 100644 --- a/english/localizedstrings/reimagined.str +++ b/english/localizedstrings/reimagined.str @@ -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!" diff --git a/scripts/zm/replaced/zgrief.gsc b/scripts/zm/replaced/zgrief.gsc index df2683cf..af8766df 100644 --- a/scripts/zm/replaced/zgrief.gsc +++ b/scripts/zm/replaced/zgrief.gsc @@ -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(); diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index b59c9422..fd60acf9 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -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); }