2023-02-25 18:21:35 -05:00
|
|
|
-- Removed check for public matches to allow team change in ranked matches
|
|
|
|
CoD.IsTeamChangeAllowed = function()
|
|
|
|
if Engine.GetGametypeSetting( "allowInGameTeamChange" ) == 1 then
|
|
|
|
return true
|
|
|
|
else
|
|
|
|
return false
|
|
|
|
end
|
2023-02-28 17:58:07 -05:00
|
|
|
end
|
|
|
|
|
2023-04-11 15:56:50 -04:00
|
|
|
-- Set com_maxclients InGame so players can join via direct connect
|
|
|
|
local maxclients = function()
|
|
|
|
if Engine.IsZombiesGame() then
|
|
|
|
return 4
|
|
|
|
else
|
|
|
|
return 18
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Engine.SetDvar( "com_maxclients", maxclients() )
|
|
|
|
|
2023-04-11 15:57:59 -04:00
|
|
|
require("DataSources_StartMenuGameOptions")
|