mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-04-16 13:51:59 +00:00
Naming consistency between in balancer module
* replace occurrences of evener with balancer
This commit is contained in:
parent
f3aa6dfad5
commit
17ea943c64
1 changed files with 5 additions and 5 deletions
|
@ -44,7 +44,7 @@ function balancer.balance(byAdmin, forceBalance)
|
|||
evenerCount = 0
|
||||
|
||||
if byAdmin then
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^devener: ^9teams are even.\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dbalancer: ^9teams are even.\";")
|
||||
end
|
||||
|
||||
return
|
||||
|
@ -65,11 +65,11 @@ function balancer.balance(byAdmin, forceBalance)
|
|||
|
||||
if forceBalance or evenerCount >= 2 then
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "!shuffle;")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cpm \"^devener: ^7THE TEAMS HAVE BEEN ^qSHUFFLED^7!\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cpm \"^dbalancer: ^7THE TEAMS HAVE BEEN ^qSHUFFLED^7!\";")
|
||||
|
||||
evenerCount = 0
|
||||
else
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cpm \"^devener: ^1EVEN THE TEAMS ^7OR ^1SHUFFLE\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cpm \"^dbalancer: ^1EVEN THE TEAMS ^7OR ^1SHUFFLE\";")
|
||||
end
|
||||
elseif teamsDifference >= settings.get("g_evenerMinDifference") then
|
||||
evenerCount = evenerCount + 1
|
||||
|
@ -81,7 +81,7 @@ function balancer.balance(byAdmin, forceBalance)
|
|||
local player = balancer.findPlayer(teamsData[teamGreater], teamGreater, teamSmaller)
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "!put "..player.." "..(teamGreater == constants.TEAM_AXIS and constants.TEAM_ALLIES_SC or constants.TEAM_AXIS_SC)..";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^devener: ^9thank you, ^7"..et.gentity_get(player, "pers.netname").."^9, for helping to even the teams.\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dbalancer: ^9thank you, ^7"..et.gentity_get(player, "pers.netname").."^9, for helping to even the teams.\";")
|
||||
|
||||
teamsData = teams.get()
|
||||
end
|
||||
|
@ -91,7 +91,7 @@ function balancer.balance(byAdmin, forceBalance)
|
|||
local teamGreaterName, teamSmallerName = util.getTeamName(teamGreater), util.getTeamName(teamSmaller)
|
||||
local teamGreaterColor, teamSmallerColor = util.getTeamColor(teamGreater), util.getTeamColor(teamSmaller)
|
||||
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^devener: ^9teams seem unfair, would someone from "..teamGreaterColor..teamGreaterName.." ^9please switch to "..teamSmallerColor..teamSmallerName.."^9?\";")
|
||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat -1 \"^dbalancer: ^9teams seem unfair, would someone from "..teamGreaterColor..teamGreaterName.." ^9please switch to "..teamSmallerColor..teamSmallerName.."^9?\";")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue