Fix scoreboard on custom gametypes
This commit is contained in:
parent
3a11cd4296
commit
b9189a3ef7
@ -9,3 +9,32 @@ Cac.GameModes.Data = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Engine.InFrontend()) then
|
||||
return
|
||||
end
|
||||
|
||||
local gametypes = {
|
||||
["dm"] = true,
|
||||
["dom"] = true,
|
||||
["sd"] = true,
|
||||
["war"] = true,
|
||||
["conf"] = true,
|
||||
["vlobby"] = true,
|
||||
["koth"] = true,
|
||||
["sab"] = true,
|
||||
["ctf"] = true,
|
||||
["dd"] = true,
|
||||
["hp"] = true,
|
||||
["gun"] = true,
|
||||
}
|
||||
|
||||
local func = LUI.mp_hud.Scoreboard.DetermineIfSingleTeamGameType
|
||||
LUI.mp_hud.Scoreboard.DetermineIfSingleTeamGameType = function()
|
||||
local gametype = Engine.GetDvarString("ui_gametype")
|
||||
if (gametypes[gametype]) then
|
||||
return func()
|
||||
end
|
||||
|
||||
return Game.GetPlayerTeam() == Teams.free
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user