Standard Lua formating
This commit is contained in:
parent
b32168dce6
commit
07586dfeee
@ -4,24 +4,24 @@ end
|
||||
|
||||
-- Removed check for public matches to allow team change in ranked matches
|
||||
CoD.IsTeamChangeAllowed = function()
|
||||
if Engine.GetGametypeSetting( "allowInGameTeamChange" ) == 1 then
|
||||
if Engine.GetGametypeSetting("allowInGameTeamChange") == 1 then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
local GetModeInfo = function()
|
||||
local getModeInfo = function()
|
||||
local id = Engine.GetLobbyUIScreen()
|
||||
return LobbyData:UITargetFromId(id)
|
||||
end
|
||||
|
||||
local GetMaxClients = function()
|
||||
local ModeInfo = GetModeInfo()
|
||||
return ModeInfo.maxClients
|
||||
local getMaxClients = function()
|
||||
local modeInfo = getModeInfo()
|
||||
return modeInfo.maxClients
|
||||
end
|
||||
|
||||
-- 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")
|
||||
|
Loading…
Reference in New Issue
Block a user