1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-08 06:12:17 -05:00

Convert strings to localizedstrings

This commit is contained in:
Jbleezy 2023-12-25 03:31:27 -08:00
parent aba3b7874b
commit 98255696a3
15 changed files with 228 additions and 107 deletions

View File

@ -2,6 +2,8 @@ VERSION "1"
CONFIG "C:/projects/cod/t6/bin/StringEd.cfg" CONFIG "C:/projects/cod/t6/bin/StringEd.cfg"
FILENOTES "" FILENOTES ""
// UI
REFERENCE ZMUI_CLASSIC_GAMEMODE_CAPS REFERENCE ZMUI_CLASSIC_GAMEMODE_CAPS
LANG_ENGLISH "CLASSIC" LANG_ENGLISH "CLASSIC"
@ -14,6 +16,136 @@ LANG_ENGLISH "DOCKS"
REFERENCE ZMUI_MAZE_CAPS REFERENCE ZMUI_MAZE_CAPS
LANG_ENGLISH "MAZE" LANG_ENGLISH "MAZE"
// HUD
REFERENCE ZOMBIE_HUD_TOTAL_TIME
LANG_ENGLISH "Total: "
REFERENCE ZOMBIE_HUD_ROUND_TIME
LANG_ENGLISH "Round: "
REFERENCE ZOMBIE_HUD_ROUND_TOTAL_TIME
LANG_ENGLISH "Round Total: "
REFERENCE ZOMBIE_HUD_QUEST_COMPLETE_TIME
LANG_ENGLISH "Quest Complete! Time: "
REFERENCE ZOMBIE_HUD_ENEMIES_REMAINING
LANG_ENGLISH "Enemies Remaining: "
REFERENCE ZOMBIE_HUD_ACCOUNT_BALANCE
LANG_ENGLISH "Account Balance: "
REFERENCE ZOMBIE_HUD_PLACED_WEAPON
LANG_ENGLISH "Placed Weapon: "
REFERENCE ZOMBIE_HUD_CONTAINMENT_ZONE
LANG_ENGLISH "Zone: "
REFERENCE ZOMBIE_HUD_CONTAINMENT_TIME
LANG_ENGLISH "Time: "
REFERENCE ZM_TRANSIT_BUS_DEPART_TIME
LANG_ENGLISH "Bus departs in: "
REFERENCE ZOMBIE_POWERUP_CLIP_AMMO
LANG_ENGLISH "Clip Ammo!"
REFERENCE ZOMBIE_POWERUP_CLIP_EMPTY
LANG_ENGLISH "Clip Empty!"
REFERENCE ZOMBIE_ZGRIEF_INTRO
LANG_ENGLISH "Make enemy players bleed out to gain score!"
REFERENCE ZOMBIE_ZSNR_INTRO
LANG_ENGLISH "Get all enemy players down to win a round!"
REFERENCE ZOMBIE_ZRACE_INTRO
LANG_ENGLISH "Kill zombies or enemy players to gain score!"
REFERENCE ZOMBIE_ZCONTAINMENT_INTRO
LANG_ENGLISH "Control the containment zone to gain score!"
REFERENCE ZOMBIE_ZMEAT_INTRO
LANG_ENGLISH "Hold the meat to gain score!"
REFERENCE ZOMBIE_GRIEF_SCORE_TO_WIN
LANG_ENGLISH "Gain &&1 score to win the game!"
REFERENCE ZOMBIE_GRIEF_ROUNDS_TO_WIN
LANG_ENGLISH "Win &&1 rounds to win the game!"
REFERENCE ZOMBIE_GRIEF_GAIN_LEAD
LANG_ENGLISH "Gained the lead!"
REFERENCE ZOMBIE_GRIEF_LOSE_LEAD
LANG_ENGLISH "Lost the lead!"
REFERENCE ZOMBIE_GRIEF_WIN_ROUND
LANG_ENGLISH "You won the round!"
REFERENCE ZOMBIE_GRIEF_LOSE_ROUND
LANG_ENGLISH "You lost the round!"
REFERENCE ZOMBIE_GRIEF_WIN
LANG_ENGLISH "YOU WIN!"
REFERENCE ZOMBIE_GRIEF_LOSE
LANG_ENGLISH "YOU LOSE!"
REFERENCE ZOMBIE_ZGRIEF_PLAYER_BLED_OUT
LANG_ENGLISH "Enemy Down! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_PLAYER_REVIVED
LANG_ENGLISH "Enemy Revived! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_PLAYER_DEAD
LANG_ENGLISH "Enemy Bled Out! [&&1 Remaining]"
REFERENCE ZOMBIE_ZGRIEF_PLAYER_BLED_OUT_SCORE
LANG_ENGLISH "Enemy Down! [&&1 Score]"
REFERENCE ZOMBIE_ZGRIEF_ALLY_REVIVED_SCORE
LANG_ENGLISH "Ally Revived! [&&1 Score]"
REFERENCE ZOMBIE_ZGRIEF_BOSS_KILLED_SCORE
LANG_ENGLISH "Boss Killed! [&&1 Score]"
REFERENCE ZOMBIE_ZGRIEF_NUKE_GRABBED_SCORE
LANG_ENGLISH "Nuke Grabbed! [&&1 Score]"
REFERENCE ZOMBIE_NEW_CONTAINMENT_ZONE
LANG_ENGLISH "New containment zone!"
REFERENCE ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE
LANG_ENGLISH "Your team controls the containment zone!"
REFERENCE ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE
LANG_ENGLISH "Enemy team controls the containment zone!"
REFERENCE ZOMBIE_CONTAINMENT_ZONE_CONTESTED
LANG_ENGLISH "Containment zone contested!"
REFERENCE ZOMBIE_CONTAINMENT_ZONE_UNCONTROLLED
LANG_ENGLISH "Containment zone uncontrolled!"
REFERENCE ZOMBIE_OTHER_TEAM_MEAT
LANG_ENGLISH "Enemy team has the meat!"
REFERENCE ZOMBIE_KILL_ZOMBIE_DROP_MEAT
LANG_ENGLISH "Kill a zombie to drop the meat!"
REFERENCE ZOMBIE_MEAT_DROPPED
LANG_ENGLISH "Meat dropped!"
REFERENCE ZOMBIE_MEAT_THROWN
LANG_ENGLISH "Meat thrown!"
REFERENCE ZOMBIE_MEAT_RESET
LANG_ENGLISH "Meat reset!"
// WEAPONS
REFERENCE ZMWEAPON_SHIV REFERENCE ZMWEAPON_SHIV
LANG_ENGLISH "Shiv" LANG_ENGLISH "Shiv"
@ -56,7 +188,36 @@ LANG_ENGLISH "Meat"
REFERENCE ZOMBIE_ITEM_HEAD REFERENCE ZOMBIE_ITEM_HEAD
LANG_ENGLISH "Richtofen's Head" LANG_ENGLISH "Richtofen's Head"
REFERENCE ZOMBIE_FNP45_UPGRADED REFERENCE ZMWEAPON_FNP45_UPGRADED
LANG_ENGLISH "Toughguy & Crybaby" LANG_ENGLISH "Toughguy & Crybaby"
// HINTSTRINGS
REFERENCE ZOMBIE_PERK_QUICKREVIVE
LANG_ENGLISH "Hold ^3[{+activate}]^7 for Quick Revive [Cost: &&1]"
REFERENCE ZOMBIE_PERK_TOMBSTONE
LANG_ENGLISH "Hold ^3[{+activate}]^7 for Tombstone Soda [Cost: &&1]"
REFERENCE ZOMBIE_BANK_WITHDRAW_PROMPT
LANG_ENGLISH "Hold ^3[{+activate}]^7 to withdraw &&1"
REFERENCE ZOMBIE_NAVCARD_USE
LANG_ENGLISH "Hold ^3[{+activate}]^7 to insert Navcard [Cost: &&1]"
REFERENCE ZM_HIGHRISE_BUILD_KEYS
LANG_ENGLISH "Hold ^3[{+activate}]^7 to insert elevator key [Cost: &&1]"
REFERENCE ZM_HIGHRISE_ELEVATOR_ON_THE_WAY
LANG_ENGLISH "The elevator is on the way"
REFERENCE ZM_HIGHRISE_LOCK_ELEVATOR
LANG_ENGLISH "Hold ^3[{+activate}]^7 to lock elevator"
REFERENCE ZM_HIGHRISE_UNLOCK_ELEVATOR
LANG_ENGLISH "Hold ^3[{+activate}]^7 to unlock elevator"
REFERENCE ZM_BURIED_CANDY_GV
LANG_ENGLISH "Hold ^3[{+activate}]^7 to give Candy [Cost: &&1]"
ENDMARKER ENDMARKER

View File

@ -713,7 +713,7 @@ enemy_counter_hud()
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.hidewheninmenu = 1; hud.hidewheninmenu = 1;
hud.foreground = 1; hud.foreground = 1;
hud.label = &"Enemies Remaining: "; hud.label = &"ZOMBIE_HUD_ENEMIES_REMAINING";
hud endon("death"); hud endon("death");
@ -784,7 +784,7 @@ timer_hud()
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.hidewheninmenu = 1; hud.hidewheninmenu = 1;
hud.foreground = 1; hud.foreground = 1;
hud.label = &"Total: "; hud.label = &"ZOMBIE_HUD_TOTAL_TIME";
hud endon("death"); hud endon("death");
@ -837,7 +837,7 @@ round_timer_hud()
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.hidewheninmenu = 1; hud.hidewheninmenu = 1;
hud.foreground = 1; hud.foreground = 1;
hud.label = &"Round: "; hud.label = &"ZOMBIE_HUD_ROUND_TIME";
hud endon("death"); hud endon("death");
@ -903,7 +903,7 @@ round_total_timer_hud()
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.hidewheninmenu = 1; hud.hidewheninmenu = 1;
hud.foreground = 1; hud.foreground = 1;
hud.label = &"Round Total: "; hud.label = &"ZOMBIE_HUD_ROUND_TOTAL_TIME";
hud endon("death"); hud endon("death");

View File

@ -195,7 +195,7 @@ trigger_withdraw_update_prompt(player)
return 0; return 0;
} }
self sethintstring(&"ZOMBIE_BANK_WITHDRAW_PROMPT", level.bank_deposit_ddl_increment_amount, level.ta_vaultfee); self sethintstring(&"ZOMBIE_BANK_WITHDRAW_PROMPT", level.bank_deposit_ddl_increment_amount);
return 1; return 1;
} }
@ -228,7 +228,7 @@ show_balance(player)
hud.fontscale = 1; hud.fontscale = 1;
hud.alpha = 1; hud.alpha = 1;
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.label = &"Account Balance: "; hud.label = &"ZOMBIE_HUD_ACCOUNT_BALANCE";
stub.bankbalancehud[num] = hud; stub.bankbalancehud[num] = hud;
hud thread update_balance(player); hud thread update_balance(player);

View File

@ -192,11 +192,11 @@ round_end(winner)
{ {
if (player.team == team) if (player.team == team)
{ {
player thread [[level.show_grief_hud_msg_func]]("You won the round!"); player thread [[level.show_grief_hud_msg_func]](&"ZOMBIE_GRIEF_WIN_ROUND");
} }
else else
{ {
player thread [[level.show_grief_hud_msg_func]]("You lost the round!"); player thread [[level.show_grief_hud_msg_func]](&"ZOMBIE_GRIEF_LOSE_ROUND");
} }
} }
} }

View File

@ -318,7 +318,7 @@ full_ammo_powerup(drop_item, player)
if (level.scr_zm_ui_gametype == "zgrief") if (level.scr_zm_ui_gametype == "zgrief")
{ {
clip_only = 1; clip_only = 1;
drop_item.hint = &"Clip Ammo!"; drop_item.hint = &"ZOMBIE_POWERUP_CLIP_AMMO";
} }
players = get_players(player.team); players = get_players(player.team);
@ -494,7 +494,7 @@ empty_clip_on_hud(drop_item, team)
hudelem.alpha = 0; hudelem.alpha = 0;
hudelem fadeovertime(0.5); hudelem fadeovertime(0.5);
hudelem.alpha = 1; hudelem.alpha = 1;
hudelem.label = &"Clip Empty!"; hudelem.label = &"ZOMBIE_POWERUP_CLIP_EMPTY";
hudelem thread empty_clip_move_hud(team); hudelem thread empty_clip_move_hud(team);
} }
@ -606,7 +606,7 @@ nuke_powerup(drop_item, player_team)
{ {
if (isDefined(level.increment_score_func)) if (isDefined(level.increment_score_func))
{ {
[[level.increment_score_func]](player_team, 10, 1, "nuke_grab"); [[level.increment_score_func]](player_team, 10, 1, &"ZOMBIE_ZGRIEF_NUKE_GRABBED_SCORE");
} }
} }
} }

View File

@ -8,7 +8,7 @@ navcomputer_waitfor_navcard()
navcomputer_use_trig = spawn("trigger_radius_use", trig_pos.origin, 0, 48, 48); navcomputer_use_trig = spawn("trigger_radius_use", trig_pos.origin, 0, 48, 48);
navcomputer_use_trig.cost = 100000; navcomputer_use_trig.cost = 100000;
navcomputer_use_trig setcursorhint("HINT_NOICON"); navcomputer_use_trig setcursorhint("HINT_NOICON");
navcomputer_use_trig sethintstring(&"ZOMBIE_NAVCARD_USE", " [Cost: " + navcomputer_use_trig.cost + "]"); navcomputer_use_trig sethintstring(&"ZOMBIE_NAVCARD_USE", navcomputer_use_trig.cost);
navcomputer_use_trig triggerignoreteam(); navcomputer_use_trig triggerignoreteam();
while (true) while (true)
@ -90,7 +90,7 @@ sq_complete_time_hud()
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.hidewheninmenu = 1; hud.hidewheninmenu = 1;
hud.foreground = 1; hud.foreground = 1;
hud.label = &"Quest Complete! Time: "; hud.label = &"ZOMBIE_HUD_QUEST_COMPLETE_TIME";
hud endon("death"); hud endon("death");

View File

@ -89,7 +89,7 @@ show_current_weapon(player)
hud.fontscale = 1; hud.fontscale = 1;
hud.alpha = 1; hud.alpha = 1;
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.label = &"Placed Weapon: "; hud.label = &"ZOMBIE_HUD_PLACED_WEAPON";
hud settext(displayname); hud settext(displayname);
stub.weaponlockerhud[num] = hud; stub.weaponlockerhud[num] = hud;

View File

@ -139,7 +139,7 @@ meat_stink(who)
foreach (player in players) foreach (player in players)
{ {
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg("Meat dropped!"); player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg(&"ZOMBIE_MEAT_DROPPED");
} }
level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop("meat_stink", who.origin); level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop("meat_stink", who.origin);
@ -350,7 +350,7 @@ meat_stink_cleanup_on_downed()
foreach (player in players) foreach (player in players)
{ {
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg("Meat dropped!"); player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg(&"ZOMBIE_MEAT_DROPPED");
} }
level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop("meat_stink", self.origin); level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop("meat_stink", self.origin);

View File

@ -330,7 +330,7 @@ busshowleavinghud(time)
hud.fontscale = 1; hud.fontscale = 1;
hud.alpha = 1; hud.alpha = 1;
hud.color = (1, 1, 1); hud.color = (1, 1, 1);
hud.label = &"Bus departs in: "; hud.label = &"ZM_TRANSIT_BUS_DEPART_TIME";
hud setTimer(time); hud setTimer(time);
player.busleavehud = hud; player.busleavehud = hud;
} }

View File

@ -71,7 +71,7 @@ item_meat_on_spawn_retrieve_trigger(watcher, player, weaponname)
{ {
if (!is_true(player._kicking_meat)) if (!is_true(player._kicking_meat))
{ {
other_player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg("Meat thrown!"); other_player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg(&"ZOMBIE_MEAT_THROWN");
} }
} }
} }

View File

@ -707,7 +707,7 @@ on_player_downed()
if (level.scr_zm_ui_gametype_obj == "zrace") if (level.scr_zm_ui_gametype_obj == "zrace")
{ {
increment_score(getOtherTeam(self.team), 10, 1, "enemy_down"); increment_score(getOtherTeam(self.team), 10, 1, &"ZOMBIE_ZGRIEF_PLAYER_BLED_OUT_SCORE");
} }
if (level.scr_zm_ui_gametype_obj == "zsnr") if (level.scr_zm_ui_gametype_obj == "zsnr")
@ -784,7 +784,7 @@ on_player_revived()
if (level.scr_zm_ui_gametype_obj == "zrace") if (level.scr_zm_ui_gametype_obj == "zrace")
{ {
increment_score(reviver.team, 5, 1, "ally_revive"); increment_score(reviver.team, 5, 1, &"ZOMBIE_ZGRIEF_ALLY_REVIVED_SCORE");
} }
if (level.scr_zm_ui_gametype_obj == "zsnr") if (level.scr_zm_ui_gametype_obj == "zsnr")
@ -1272,7 +1272,7 @@ update_players_on_revived(revived_player, reviver)
foreach (player in other_players) foreach (player in other_players)
{ {
player thread show_grief_hud_msg("Enemy Revived! [" + players_remaining + " Remaining]"); player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_PLAYER_REVIVED", players_remaining);
} }
} }
@ -1309,35 +1309,35 @@ grief_intro_msg()
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Make enemy players bleed out to gain score!"); player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_INTRO");
} }
} }
else if (level.scr_zm_ui_gametype_obj == "zsnr") else if (level.scr_zm_ui_gametype_obj == "zsnr")
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Get all enemy players down to win a round!"); player thread show_grief_hud_msg(&"ZOMBIE_ZSNR_INTRO");
} }
} }
else if (level.scr_zm_ui_gametype_obj == "zrace") else if (level.scr_zm_ui_gametype_obj == "zrace")
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Kill zombies or enemy players to gain score!"); player thread show_grief_hud_msg(&"ZOMBIE_ZRACE_INTRO");
} }
} }
else if (level.scr_zm_ui_gametype_obj == "zcontainment") else if (level.scr_zm_ui_gametype_obj == "zcontainment")
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Control the containment zone to gain score!"); player thread show_grief_hud_msg(&"ZOMBIE_ZCONTAINMENT_INTRO");
} }
} }
else if (level.scr_zm_ui_gametype_obj == "zmeat") else if (level.scr_zm_ui_gametype_obj == "zmeat")
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Hold the meat to gain score!"); player thread show_grief_hud_msg(&"ZOMBIE_ZMEAT_INTRO");
} }
} }
@ -1345,39 +1345,18 @@ grief_intro_msg()
players = get_players(); players = get_players();
if (level.scr_zm_ui_gametype_obj == "zgrief") if (level.scr_zm_ui_gametype_obj == "zsnr")
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Gain " + get_gamemode_winning_score() + " score to win the game!"); player thread show_grief_hud_msg(&"ZOMBIE_GRIEF_ROUNDS_TO_WIN", get_gamemode_winning_score());
} }
} }
else if (level.scr_zm_ui_gametype_obj == "zsnr") else
{ {
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Win " + get_gamemode_winning_score() + " rounds to win the game!"); player thread show_grief_hud_msg(&"ZOMBIE_GRIEF_SCORE_TO_WIN", get_gamemode_winning_score());
}
}
else if (level.scr_zm_ui_gametype_obj == "zrace")
{
foreach (player in players)
{
player thread show_grief_hud_msg("Gain " + get_gamemode_winning_score() + " score to win the game!");
}
}
else if (level.scr_zm_ui_gametype_obj == "zcontainment")
{
foreach (player in players)
{
player thread show_grief_hud_msg("Gain " + get_gamemode_winning_score() + " score to win the game!");
}
}
else if (level.scr_zm_ui_gametype_obj == "zmeat")
{
foreach (player in players)
{
player thread show_grief_hud_msg("Gain " + get_gamemode_winning_score() + " score to win the game!");
} }
} }
} }
@ -1622,8 +1601,8 @@ custom_end_screen()
players[i].survived_hud.y += 40; players[i].survived_hud.y += 40;
} }
winner_text = "YOU WIN!"; winner_text = &"ZOMBIE_GRIEF_WIN";
loser_text = "YOU LOSE!"; loser_text = &"ZOMBIE_GRIEF_LOSE";
if (isDefined(level.host_ended_game) && level.host_ended_game) if (isDefined(level.host_ended_game) && level.host_ended_game)
{ {
@ -2493,15 +2472,15 @@ race_check_for_kills()
self waittill("zom_kill", zombie); self waittill("zom_kill", zombie);
amount = 1; amount = 1;
special_score = undefined; score_msg = undefined;
if (is_true(zombie.is_brutus)) if (is_true(zombie.is_brutus))
{ {
amount = 10; amount = 10;
special_score = "boss_kill"; score_msg = &"ZOMBIE_ZGRIEF_BOSS_KILLED_SCORE";
} }
increment_score(self.team, amount, 1, special_score); increment_score(self.team, amount, 1, score_msg);
} }
} }
@ -2519,7 +2498,7 @@ containment_init()
level.containment_zone_hud.color = (1, 1, 1); level.containment_zone_hud.color = (1, 1, 1);
level.containment_zone_hud.hidewheninmenu = 1; level.containment_zone_hud.hidewheninmenu = 1;
level.containment_zone_hud.foreground = 1; level.containment_zone_hud.foreground = 1;
level.containment_zone_hud.label = &"Zone: "; level.containment_zone_hud.label = &"ZOMBIE_HUD_CONTAINMENT_ZONE";
level.containment_time_hud = newHudElem(); level.containment_time_hud = newHudElem();
level.containment_time_hud.alignx = "left"; level.containment_time_hud.alignx = "left";
@ -2533,7 +2512,7 @@ containment_init()
level.containment_time_hud.color = (1, 1, 1); level.containment_time_hud.color = (1, 1, 1);
level.containment_time_hud.hidewheninmenu = 1; level.containment_time_hud.hidewheninmenu = 1;
level.containment_time_hud.foreground = 1; level.containment_time_hud.foreground = 1;
level.containment_time_hud.label = &"Time: "; level.containment_time_hud.label = &"ZOMBIE_HUD_CONTAINMENT_TIME";
level thread containment_hud_destroy_on_end_game(); level thread containment_hud_destroy_on_end_game();
level thread containment_think(); level thread containment_think();
@ -2603,7 +2582,7 @@ containment_think()
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("New containment zone!"); player thread show_grief_hud_msg(&"ZOMBIE_NEW_CONTAINMENT_ZONE");
} }
level.containment_zone_hud setText(zone_display_name); level.containment_zone_hud setText(zone_display_name);
@ -2730,7 +2709,7 @@ containment_think()
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Containment zone contested!"); player thread show_grief_hud_msg(&"ZOMBIE_CONTAINMENT_ZONE_CONTESTED");
} }
} }
@ -2770,11 +2749,11 @@ containment_think()
{ {
if (player.team == "axis") if (player.team == "axis")
{ {
player thread show_grief_hud_msg("Your team controls the containment zone!"); player thread show_grief_hud_msg(&"ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE");
} }
else else
{ {
player thread show_grief_hud_msg("Other team controls the containment zone!"); player thread show_grief_hud_msg(&"ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE");
} }
} }
} }
@ -2809,11 +2788,11 @@ containment_think()
{ {
if (player.team == "axis") if (player.team == "axis")
{ {
player thread show_grief_hud_msg("Other team controls the containment zone!"); player thread show_grief_hud_msg(&"ZOMBIE_OTHER_TEAM_CONTAINMENT_ZONE");
} }
else else
{ {
player thread show_grief_hud_msg("Your team controls the containment zone!"); player thread show_grief_hud_msg(&"ZOMBIE_YOUR_TEAM_CONTAINMENT_ZONE");
} }
} }
} }
@ -2841,7 +2820,7 @@ containment_think()
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Containment zone uncontrolled!"); player thread show_grief_hud_msg(&"ZOMBIE_CONTAINMENT_ZONE_UNCONTROLLED");
} }
} }
} }
@ -3135,7 +3114,7 @@ meat_powerup_drop_think()
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Kill a zombie to drop the meat!"); player thread show_grief_hud_msg(&"ZOMBIE_KILL_ZOMBIE_DROP_MEAT");
} }
while (1) while (1)
@ -3156,7 +3135,7 @@ meat_powerup_drop_think()
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Meat dropped!"); player thread show_grief_hud_msg(&"ZOMBIE_MEAT_DROPPED");
} }
} }
@ -3168,7 +3147,7 @@ meat_powerup_drop_think()
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Meat reset!"); player thread show_grief_hud_msg(&"ZOMBIE_MEAT_RESET");
} }
} }
} }
@ -3354,7 +3333,7 @@ powerup_can_player_grab(player)
return true; return true;
} }
increment_score(team, amount = 1, show_lead_msg = true, special_score) increment_score(team, amount = 1, show_lead_msg = true, score_msg)
{ {
level endon("end_game"); level endon("end_game");
@ -3384,15 +3363,15 @@ increment_score(team, amount = 1, show_lead_msg = true, special_score)
scripts\zm\replaced\_zm_game_module::game_won(encounters_team); scripts\zm\replaced\_zm_game_module::game_won(encounters_team);
} }
score_left = get_gamemode_winning_score() - level.grief_score[encounters_team];
if (level.scr_zm_ui_gametype_obj == "zgrief") if (level.scr_zm_ui_gametype_obj == "zgrief")
{ {
score_left = get_gamemode_winning_score() - level.grief_score[encounters_team];
players = get_players(team); players = get_players(team);
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg("Enemy Bled Out! [" + score_left + " Remaining]"); player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_PLAYER_DEAD", score_left);
} }
if (level.grief_score[encounters_team] <= 3) if (level.grief_score[encounters_team] <= 3)
@ -3407,32 +3386,13 @@ increment_score(team, amount = 1, show_lead_msg = true, special_score)
if (level.scr_zm_ui_gametype_obj == "zrace") if (level.scr_zm_ui_gametype_obj == "zrace")
{ {
if (isDefined(special_score)) if (isDefined(score_msg))
{ {
msg = "";
if (special_score == "enemy_down")
{
msg = "Enemy Down! [" + amount + " Score]";
}
else if (special_score == "ally_revive")
{
msg = "Ally Revived! [" + amount + " Score]";
}
else if (special_score == "boss_kill")
{
msg = "Boss Killed! [" + amount + " Score]";
}
else if (special_score == "nuke_grab")
{
msg = "Nuke Grabbed! [" + amount + " Score]";
}
players = get_players(team); players = get_players(team);
foreach (player in players) foreach (player in players)
{ {
player thread show_grief_hud_msg(msg); player thread show_grief_hud_msg(score_msg, amount);
} }
} }
} }
@ -3449,11 +3409,11 @@ increment_score(team, amount = 1, show_lead_msg = true, special_score)
{ {
if (player.team == team) if (player.team == team)
{ {
player thread show_grief_hud_msg("Gained the lead!", undefined, 30); player thread show_grief_hud_msg(&"ZOMBIE_GRIEF_GAIN_LEAD", undefined, 30);
} }
else else
{ {
player thread show_grief_hud_msg("Lost the lead!", undefined, 30); player thread show_grief_hud_msg(&"ZOMBIE_GRIEF_LOSE_LEAD", undefined, 30);
} }
} }
} }

View File

@ -473,7 +473,7 @@ sloth_trap()
while (1) while (1)
{ {
trig sethintstring(&"ZM_BURIED_CANDY_GV", " [Cost: " + trig.cost + "]"); trig sethintstring(&"ZM_BURIED_CANDY_GV", trig.cost);
trig waittill("trigger", who); trig waittill("trigger", who);

View File

@ -259,23 +259,23 @@ elevator_call_think()
{ {
if (!is_true(self.elevator.body.elevator_stop)) if (!is_true(self.elevator.body.elevator_stop))
{ {
self sethintstring("Hold ^3[{+activate}]^7 to lock elevator"); self sethintstring(&"ZM_HIGHRISE_LOCK_ELEVATOR");
} }
else else
{ {
self sethintstring("Hold ^3[{+activate}]^7 to unlock elevator"); self sethintstring(&"ZM_HIGHRISE_UNLOCK_ELEVATOR");
} }
} }
else else
{ {
if (self.elevator maps\mp\zm_highrise_elevators::elevator_is_on_floor(self.floor) && !is_true(self.elevator.body.start_location_wait)) if (self.elevator maps\mp\zm_highrise_elevators::elevator_is_on_floor(self.floor) && !is_true(self.elevator.body.start_location_wait))
{ {
self sethintstring("The elevator is on the way"); self sethintstring(&"ZM_HIGHRISE_ELEVATOR_ON_THE_WAY");
return; return;
} }
cost_active = 1; cost_active = 1;
self sethintstring(&"ZM_HIGHRISE_BUILD_KEYS", " [Cost: " + self.cost + "]"); self sethintstring(&"ZM_HIGHRISE_BUILD_KEYS", self.cost);
} }
self trigger_on(); self trigger_on();
@ -323,7 +323,7 @@ elevator_call_think()
if (is_true(self.elevator.body.start_location_wait) && self.elevator maps\mp\zm_highrise_elevators::elevator_is_on_floor(self.floor)) if (is_true(self.elevator.body.start_location_wait) && self.elevator maps\mp\zm_highrise_elevators::elevator_is_on_floor(self.floor))
{ {
self sethintstring("Hold ^3[{+activate}]^7 to lock elevator"); self sethintstring(&"ZM_HIGHRISE_LOCK_ELEVATOR");
while (is_true(self.elevator.body.start_location_wait)) while (is_true(self.elevator.body.start_location_wait))
{ {
@ -333,7 +333,7 @@ elevator_call_think()
continue; continue;
} }
self sethintstring("The elevator is on the way"); self sethintstring(&"ZM_HIGHRISE_ELEVATOR_ON_THE_WAY");
return; return;
} }
@ -469,7 +469,7 @@ escape_pod_call_think()
{ {
flag_wait("escape_pod_needs_reset"); flag_wait("escape_pod_needs_reset");
self sethintstring(&"ZM_HIGHRISE_BUILD_KEYS", " [Cost: " + self.cost + "]"); self sethintstring(&"ZM_HIGHRISE_BUILD_KEYS", self.cost);
self waittill("trigger", who); self waittill("trigger", who);
@ -490,7 +490,7 @@ escape_pod_call_think()
self playsound("zmb_buildable_complete"); self playsound("zmb_buildable_complete");
self sethintstring("The elevator is on the way"); self sethintstring(&"ZM_HIGHRISE_ELEVATOR_ON_THE_WAY");
self maps\mp\zm_highrise_buildables::onuseplantobject_escapepodkey(who); self maps\mp\zm_highrise_buildables::onuseplantobject_escapepodkey(who);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long