Updated modules in main

This commit is contained in:
Timo Smit 2017-01-28 15:49:24 +01:00
parent 72f5b32cd2
commit 539be1ee7b

View file

@ -15,14 +15,6 @@
-- You should have received a copy of the GNU General Public License -- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
local constants
local util
local events
local timers
local settings
local db
local admin local admin
local balancer local balancer
local bans local bans
@ -30,10 +22,15 @@ local history
local mutes local mutes
local rules local rules
local auth
local db
local commands local commands
local game
local bots local bots
local fireteams
local game
local sprees local sprees
local teams local teams
local voting local voting
@ -42,6 +39,17 @@ local greetings
local players local players
local stats local stats
local bits
local constants
local events
local files
local logs
local pagination
local settings
local tables
local timers
local util
local version = "1.2.0-dev" local version = "1.2.0-dev"
local release = "TBD" local release = "TBD"
@ -79,14 +87,6 @@ function et_InitGame(levelTime, randomSeed, restartMap)
-- load modules -- load modules
require (wolfa_getLuaPath()..".util.debug") require (wolfa_getLuaPath()..".util.debug")
constants = require (wolfa_getLuaPath()..".util.constants")
util = require (wolfa_getLuaPath()..".util.util")
events = require (wolfa_getLuaPath()..".util.events")
timers = require (wolfa_getLuaPath()..".util.timers")
settings = require (wolfa_getLuaPath()..".util.settings")
db = require (wolfa_getLuaPath()..".db.db")
admin = require (wolfa_getLuaPath()..".admin.admin") admin = require (wolfa_getLuaPath()..".admin.admin")
balancer = require (wolfa_getLuaPath()..".admin.balancer") balancer = require (wolfa_getLuaPath()..".admin.balancer")
bans = require (wolfa_getLuaPath()..".admin.bans") bans = require (wolfa_getLuaPath()..".admin.bans")
@ -94,10 +94,15 @@ function et_InitGame(levelTime, randomSeed, restartMap)
mutes = require (wolfa_getLuaPath()..".admin.mutes") mutes = require (wolfa_getLuaPath()..".admin.mutes")
rules = require (wolfa_getLuaPath()..".admin.rules") rules = require (wolfa_getLuaPath()..".admin.rules")
auth = require (wolfa_getLuaPath()..".auth.auth")
db = require (wolfa_getLuaPath()..".db.db")
commands = require (wolfa_getLuaPath()..".commands.commands") commands = require (wolfa_getLuaPath()..".commands.commands")
game = require (wolfa_getLuaPath()..".game.game")
bots = require (wolfa_getLuaPath()..".game.bots") bots = require (wolfa_getLuaPath()..".game.bots")
game = require (wolfa_getLuaPath()..".game.game")
fireteams = require (wolfa_getLuaPath()..".game.fireteams")
sprees = require (wolfa_getLuaPath()..".game.sprees") sprees = require (wolfa_getLuaPath()..".game.sprees")
teams = require (wolfa_getLuaPath()..".game.teams") teams = require (wolfa_getLuaPath()..".game.teams")
voting = require (wolfa_getLuaPath()..".game.voting") voting = require (wolfa_getLuaPath()..".game.voting")
@ -106,6 +111,17 @@ function et_InitGame(levelTime, randomSeed, restartMap)
players = require (wolfa_getLuaPath()..".players.players") players = require (wolfa_getLuaPath()..".players.players")
stats = require (wolfa_getLuaPath()..".players.stats") stats = require (wolfa_getLuaPath()..".players.stats")
bits = require (wolfa_getLuaPath()..".util.bits")
constants = require (wolfa_getLuaPath()..".util.constants")
events = require (wolfa_getLuaPath()..".util.events")
files = require (wolfa_getLuaPath()..".util.files")
logs = require (wolfa_getLuaPath()..".util.logs")
pagination = require (wolfa_getLuaPath()..".util.pagination")
settings = require (wolfa_getLuaPath()..".util.settings")
tables = require (wolfa_getLuaPath()..".util.tables")
timers = require (wolfa_getLuaPath()..".util.timers")
util = require (wolfa_getLuaPath()..".util.util")
-- register the module -- register the module
et.RegisterModname("WolfAdmin "..wolfa_getVersion()) et.RegisterModname("WolfAdmin "..wolfa_getVersion())
et.trap_SendConsoleCommand(et.EXEC_APPEND, "sets mod_wolfadmin "..wolfa_getVersion()..";") et.trap_SendConsoleCommand(et.EXEC_APPEND, "sets mod_wolfadmin "..wolfa_getVersion()..";")
@ -143,11 +159,6 @@ function et_ClientCommand(clientId, cmdText)
return events.trigger("onClientCommand", clientId, cmdText) return events.trigger("onClientCommand", clientId, cmdText)
end end
-- gameState
-- 0 - game (also when paused)
-- 1 - warmup
-- 2 - unknown
-- 3 - intermission
function et_RunFrame(levelTime) function et_RunFrame(levelTime)
local gameState = tonumber(et.trap_Cvar_Get("gamestate")) local gameState = tonumber(et.trap_Cvar_Get("gamestate"))