self.Teams = {}
self.Teams[0] = DOTA_TEAM_GOODGUYS
self.Teams[1] = DOTA_TEAM_BADGUYS
self.Teams[2] = DOTA_TEAM_CUSTOM_1
self.Teams[3] = DOTA_TEAM_CUSTOM_2
self.Teams[4] = DOTA_TEAM_CUSTOM_3
self.Teams[5] = DOTA_TEAM_CUSTOM_4
self.Teams[6] = DOTA_TEAM_CUSTOM_5
self.Teams[7] = DOTA_TEAM_CUSTOM_6
self.Teams[8] = DOTA_TEAM_CUSTOM_7
self.Teams[9] = DOTA_TEAM_CUSTOM_8
self.TeamColors = {}
self.TeamColors[DOTA_TEAM_GOODGUYS] = { 255, 82, 66 }
self.TeamColors[DOTA_TEAM_BADGUYS] = { 48, 168, 255 } -- Blue
self.TeamColors[DOTA_TEAM_CUSTOM_1] = { 197, 77, 168 } -- Pink
self.TeamColors[DOTA_TEAM_CUSTOM_2] = { 199, 228, 13 } -- Olive
self.TeamColors[DOTA_TEAM_CUSTOM_3] = { 161, 127, 255 }
self.TeamColors[DOTA_TEAM_CUSTOM_4] = { 101, 212, 19 } -- Green
self.TeamColors[DOTA_TEAM_CUSTOM_5] = { 129, 83, 54 } -- Brown
self.TeamColors[DOTA_TEAM_CUSTOM_6] = { 27, 192, 216 } -- Cyan
self.TeamColors[DOTA_TEAM_CUSTOM_7] = { 199, 228, 13 } -- Olive
self.TeamColors[DOTA_TEAM_CUSTOM_8] = { 140, 42, 244 } -- Purple
for team = 0, (DOTA_TEAM_COUNT-1) do
GameRules:SetCustomGameTeamMaxPlayers(team, 3)
local color = self.TeamColors[team]
if color then
SetTeamCustomHealthbarColor(team, color[1], color[2], color[3])
end
end