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

Convert game mode strings to localized strings

This commit is contained in:
Jbleezy
2023-12-26 14:50:51 -08:00
parent 67d630baa8
commit 54c825cd18
3 changed files with 89 additions and 28 deletions

View File

@ -159,9 +159,6 @@
* Upgraded: increased clip ammo from 40 to 48
* Upgraded: increased stock ammo from 200 to 384
### DSR 50
* Unupgraded: increased zoom FOV from 15 to 35
### Executioner
* Increased penetration

View File

@ -4,15 +4,60 @@ FILENOTES ""
// UI
REFERENCE ZMUI_CLASSIC_GAMEMODE
LANG_ENGLISH "Classic"
REFERENCE ZMUI_CLASSIC_GAMEMODE_CAPS
LANG_ENGLISH "CLASSIC"
REFERENCE ZMUI_GRIEF_PRO
LANG_ENGLISH "Grief Pro"
REFERENCE ZMUI_SNR
LANG_ENGLISH "Search & Rezurrect"
REFERENCE ZMUI_SNR_CAPS
LANG_ENGLISH "SEARCH & REZURRECT"
REFERENCE ZMUI_SNR_PRO
LANG_ENGLISH "Search & Rezurrect Pro"
REFERENCE ZMUI_RACE
LANG_ENGLISH "Race"
REFERENCE ZMUI_RACE_PRO
LANG_ENGLISH "Race Pro"
REFERENCE ZMUI_CONTAINMENT
LANG_ENGLISH "Containment"
REFERENCE ZMUI_CONTAINMENT_PRO
LANG_ENGLISH "Containment Pro"
REFERENCE ZMUI_MEAT
LANG_ENGLISH "Meat"
REFERENCE ZMUI_MEAT_PRO
LANG_ENGLISH "Meat Pro"
REFERENCE ZMUI_POWER
LANG_ENGLISH "Power Station"
REFERENCE ZMUI_CORNFIELD
LANG_ENGLISH "Cornfield"
REFERENCE ZMUI_DOCKS
LANG_ENGLISH "Docks"
REFERENCE ZMUI_DOCKS_CAPS
LANG_ENGLISH "DOCKS"
REFERENCE ZMUI_STREET_LOC
LANG_ENGLISH "Borough"
REFERENCE ZMUI_MAZE
LANG_ENGLISH "Maze"
REFERENCE ZMUI_MAZE_CAPS
LANG_ENGLISH "MAZE"

View File

@ -1363,35 +1363,54 @@ grief_intro_msg()
get_gamemode_display_name(gamemode = level.scr_zm_ui_gametype_obj)
{
name = "";
if (gamemode == "zgrief")
{
name = "Grief";
}
else if (gamemode == "zsnr")
{
name = "Search & Rezurrect";
}
else if (gamemode == "zrace")
{
name = "Race";
}
else if (gamemode == "zcontainment")
{
name = "Containment";
}
else if (gamemode == "zmeat")
{
name = "Meat";
}
if (level.scr_zm_ui_gametype_pro)
{
name += " Pro";
if (gamemode == "zgrief")
{
return &"ZMUI_GRIEF_PRO";
}
else if (gamemode == "zsnr")
{
return &"ZMUI_SNR_PRO";
}
else if (gamemode == "zrace")
{
return &"ZMUI_RACE_PRO";
}
else if (gamemode == "zcontainment")
{
return &"ZMUI_CONTAINMENT_PRO";
}
else if (gamemode == "zmeat")
{
return &"ZMUI_MEAT_PRO";
}
}
else
{
if (gamemode == "zgrief")
{
return &"ZMUI_GRIEF";
}
else if (gamemode == "zsnr")
{
return &"ZMUI_SNR";
}
else if (gamemode == "zrace")
{
return &"ZMUI_RACE";
}
else if (gamemode == "zcontainment")
{
return &"ZMUI_CONTAINMENT";
}
else if (gamemode == "zmeat")
{
return &"ZMUI_MEAT";
}
}
return name;
return "";
}
get_gamemode_winning_score()