Add game files and server configs

This commit is contained in:
Ahrimdon
2024-02-27 03:20:09 -05:00
parent d2e50ebd30
commit e8e3442ed0
31 changed files with 13231 additions and 0 deletions

View File

@ -0,0 +1,30 @@
if (game:issingleplayer() or Engine.InFrontend()) then
return
end
function GetPartyMaxPlayers()
return Engine.GetDvarInt("sv_maxclients")
end
local scoreboard = LUI.mp_hud.Scoreboard
scoreboard.maxPlayersOnTeam = GetTeamLimitForMaxPlayers(GetPartyMaxPlayers())
scoreboard.scoreColumns.ping = {
width = Engine.IsZombiesMode() and 90 or 60,
title = "LUA_MENU_PING",
getter = function(scoreinfo)
return scoreinfo.ping == 0 and "BOT" or tostring(scoreinfo.ping)
end
}
local getcolumns = scoreboard.getColumnsForCurrentGameMode
scoreboard.getColumnsForCurrentGameMode = function(a1)
local columns = getcolumns(a1)
if (Engine.IsZombiesMode()) then
table.insert(columns, scoreboard.scoreColumns.ping)
end
return columns
end