fortressforever-scripts/maps/default.lua

18 lines
509 B
Lua
Raw Normal View History

2014-11-12 02:32:26 +00:00
-- if no lua scripts are found for the map (ff_xxx.bsp) then this file will be loaded
IncludeScript("base_ctf");
function startup()
2014-11-12 04:19:35 +00:00
enabled_teams = { Team.kBlue, Team.kRed }
2014-11-12 02:32:26 +00:00
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
2014-11-12 04:19:35 +00:00
local team = GetTeam(iteam)
team:SetClassLimit(Player.kCivilian, -1)
2014-11-12 02:32:26 +00:00
end
ConsoleToAll("No map lua found! Loaded default")
end