mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -05:00
Initialize all custom client dvars in main.lua
This commit is contained in:
parent
7f89999da1
commit
8adffcaac9
@ -1,15 +1,3 @@
|
|||||||
if UIExpression.DvarString(nil, "ui_gametype_obj") == "" then
|
|
||||||
Engine.SetDvar("ui_gametype_obj", "")
|
|
||||||
end
|
|
||||||
|
|
||||||
if UIExpression.DvarString(nil, "ui_gametype_pro") == "" then
|
|
||||||
Engine.SetDvar("ui_gametype_pro", 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
if UIExpression.DvarString(nil, "ui_round_number") == "" then
|
|
||||||
Engine.SetDvar("ui_round_number", 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
local SCOREBOARD_BACKGROUND_OPACITY = 0.7
|
local SCOREBOARD_BACKGROUND_OPACITY = 0.7
|
||||||
local SCOREBOARD_COLUMN_BACKGROUND_OPACITY = 0.2
|
local SCOREBOARD_COLUMN_BACKGROUND_OPACITY = 0.2
|
||||||
local f0_local6 = 337
|
local f0_local6 = 337
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
if UIExpression.DvarString(nil, "additionalPrimaryWeaponName") == "" then
|
|
||||||
Engine.SetDvar("additionalPrimaryWeaponName", "")
|
|
||||||
end
|
|
||||||
|
|
||||||
CoD.WeaponLabel = {}
|
CoD.WeaponLabel = {}
|
||||||
CoD.WeaponLabel.TextHeight = 32
|
CoD.WeaponLabel.TextHeight = 32
|
||||||
CoD.WeaponLabel.FadeTime = 2000
|
CoD.WeaponLabel.FadeTime = 2000
|
||||||
|
@ -167,6 +167,22 @@ local f0_local4 = function(f8_arg0, f8_arg1, f8_arg2, f8_arg3)
|
|||||||
end
|
end
|
||||||
|
|
||||||
CoD.InitCustomDvars = function()
|
CoD.InitCustomDvars = function()
|
||||||
|
if UIExpression.DvarString(nil, "ui_gametype_obj") == "" then
|
||||||
|
Engine.SetDvar("ui_gametype_obj", "")
|
||||||
|
end
|
||||||
|
|
||||||
|
if UIExpression.DvarString(nil, "ui_gametype_pro") == "" then
|
||||||
|
Engine.SetDvar("ui_gametype_pro", 0)
|
||||||
|
end
|
||||||
|
|
||||||
|
if UIExpression.DvarString(nil, "ui_round_number") == "" then
|
||||||
|
Engine.SetDvar("ui_round_number", 0)
|
||||||
|
end
|
||||||
|
|
||||||
|
if UIExpression.DvarString(nil, "additionalPrimaryWeaponName") == "" then
|
||||||
|
Engine.SetDvar("additionalPrimaryWeaponName", "")
|
||||||
|
end
|
||||||
|
|
||||||
if UIExpression.DvarString(nil, "r_fog_settings") == "" then
|
if UIExpression.DvarString(nil, "r_fog_settings") == "" then
|
||||||
Engine.Exec(nil, "seta r_fog_settings 0")
|
Engine.Exec(nil, "seta r_fog_settings 0")
|
||||||
end
|
end
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
require("T6.HUD.HUDDigit")
|
require("T6.HUD.HUDDigit")
|
||||||
|
|
||||||
if UIExpression.DvarString(nil, "additionalPrimaryWeaponName") == "" then
|
|
||||||
Engine.SetDvar("additionalPrimaryWeaponName", "")
|
|
||||||
end
|
|
||||||
|
|
||||||
CoD.AmmoAreaZombie = {}
|
CoD.AmmoAreaZombie = {}
|
||||||
CoD.AmmoAreaZombie.Right = -28
|
CoD.AmmoAreaZombie.Right = -28
|
||||||
CoD.AmmoAreaZombie.Bottom = -7
|
CoD.AmmoAreaZombie.Bottom = -7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user