mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Scoreboard: fix header title
Scoreboard: add Encounter Pro game mode display names
This commit is contained in:
@ -3061,6 +3061,16 @@ should_respawn()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setclientdvarall(dvar, value)
|
||||||
|
{
|
||||||
|
players = get_players();
|
||||||
|
|
||||||
|
foreach (player in players)
|
||||||
|
{
|
||||||
|
player setclientdvar(dvar, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
remove_status_icons_on_intermission()
|
remove_status_icons_on_intermission()
|
||||||
{
|
{
|
||||||
level waittill("intermission");
|
level waittill("intermission");
|
||||||
|
@ -182,6 +182,7 @@ round_end(winner)
|
|||||||
|
|
||||||
level.snr_round_number++;
|
level.snr_round_number++;
|
||||||
setDvar("ui_round_number", level.snr_round_number);
|
setDvar("ui_round_number", level.snr_round_number);
|
||||||
|
scripts\zm\_zm_reimagined::setclientdvarall("ui_round_number", getdvarint("ui_round_number"));
|
||||||
|
|
||||||
level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog("grief_restarted");
|
level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog("grief_restarted");
|
||||||
|
|
||||||
|
14
scripts/zm/zgrief/zgrief_reimagined.csc
Normal file
14
scripts/zm/zgrief/zgrief_reimagined.csc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include clientscripts\mp\_utility;
|
||||||
|
#include clientscripts\mp\zombies\_zm_utility;
|
||||||
|
|
||||||
|
init()
|
||||||
|
{
|
||||||
|
init_dvars();
|
||||||
|
}
|
||||||
|
|
||||||
|
init_dvars()
|
||||||
|
{
|
||||||
|
setdvar("ui_gametype_obj", "");
|
||||||
|
setdvar("ui_gametype_pro", 0);
|
||||||
|
setdvar("ui_round_number", 0);
|
||||||
|
}
|
@ -541,6 +541,10 @@ powerup_fade_over_time()
|
|||||||
|
|
||||||
grief_onplayerconnect()
|
grief_onplayerconnect()
|
||||||
{
|
{
|
||||||
|
self setclientdvar("ui_gametype_obj", getdvar("ui_gametype_obj"));
|
||||||
|
self setclientdvar("ui_gametype_pro", getdvarint("ui_gametype_pro"));
|
||||||
|
self setclientdvar("ui_round_number", getdvarint("ui_round_number"));
|
||||||
|
|
||||||
self thread on_player_spawned();
|
self thread on_player_spawned();
|
||||||
self thread on_player_spectate();
|
self thread on_player_spectate();
|
||||||
self thread on_player_downed();
|
self thread on_player_downed();
|
||||||
|
@ -101,7 +101,11 @@ function GetGameModeDisplayName()
|
|||||||
if UIExpression.DvarString(nil, "ui_gametype") == "zclassic" then
|
if UIExpression.DvarString(nil, "ui_gametype") == "zclassic" then
|
||||||
return Engine.Localize("ZMUI_ZCLASSIC_GAMEMODE")
|
return Engine.Localize("ZMUI_ZCLASSIC_GAMEMODE")
|
||||||
elseif UIExpression.DvarString(nil, "ui_gametype") == "zgrief" then
|
elseif UIExpression.DvarString(nil, "ui_gametype") == "zgrief" then
|
||||||
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype_obj"))
|
if UIExpression.DvarInt(nil, "ui_gametype_pro") == 1 then
|
||||||
|
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype_obj") .. "_PRO")
|
||||||
|
else
|
||||||
|
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype_obj"))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype"))
|
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype"))
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
script,scripts/zm/_zm_reimagined.csc
|
script,scripts/zm/_zm_reimagined.csc
|
||||||
script,scripts/zm/zm_buried/zm_buried_reimagined.csc
|
script,scripts/zm/zm_buried/zm_buried_reimagined.csc
|
||||||
|
script,scripts/zm/zgrief/zgrief_reimagined.csc
|
||||||
script,scripts/zm/replaced/_zm.csc
|
script,scripts/zm/replaced/_zm.csc
|
||||||
script,scripts/zm/replaced/_zm_weapons.csc
|
script,scripts/zm/replaced/_zm_weapons.csc
|
Reference in New Issue
Block a user