Standard Lua formating

This commit is contained in:
WantedDV 2023-04-12 19:51:35 -02:30
parent b32168dce6
commit 07586dfeee
2 changed files with 8 additions and 8 deletions

View File

@ -4,24 +4,24 @@ end
-- Removed check for public matches to allow team change in ranked matches -- Removed check for public matches to allow team change in ranked matches
CoD.IsTeamChangeAllowed = function() CoD.IsTeamChangeAllowed = function()
if Engine.GetGametypeSetting( "allowInGameTeamChange" ) == 1 then if Engine.GetGametypeSetting("allowInGameTeamChange") == 1 then
return true return true
else else
return false return false
end end
end end
local GetModeInfo = function() local getModeInfo = function()
local id = Engine.GetLobbyUIScreen() local id = Engine.GetLobbyUIScreen()
return LobbyData:UITargetFromId(id) return LobbyData:UITargetFromId(id)
end end
local GetMaxClients = function() local getMaxClients = function()
local ModeInfo = GetModeInfo() local modeInfo = getModeInfo()
return ModeInfo.maxClients return modeInfo.maxClients
end end
-- Set com_maxclients InGame so players can join via direct connect (default from lobbydata) -- Set com_maxclients InGame so players can join via direct connect (default from lobbydata)
Engine.SetDvar( "com_maxclients", GetMaxClients() ) Engine.SetDvar("com_maxclients", getMaxClients())
require("DataSources_StartMenuGameOptions") require("datasources_start_menu_game_options")