fortressforever-scripts/maps/default.lua

18 lines
526 B
Lua
Raw Normal View History

-- if no lua scripts are found for the map (ff_xxx.bsp) then this file will be loaded
IncludeScript("base_ctf");
function startup()
enabled_teams = { Team.kBlue, Team.kRed }
SetPlayerLimit(Team.kBlue, 0)
SetPlayerLimit(Team.kRed, 0)
SetPlayerLimit(Team.kYellow, -1)
SetPlayerLimit(Team.kGreen, -1)
-- disable civilians
for index, iteam in ipairs( enabled_teams ) do
local team = GetTeam(iteam)
team:SetClassLimit(Player.kCivilian, -1)
end
ConsoleToAll("No map lua found! Loaded default")
2014-11-12 02:32:26 +00:00
end