mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-02-16 17:01:48 +00:00
Removed some NQ and shrubbot-specific things
This commit is contained in:
parent
0cbdf407cb
commit
0640c4bc3b
2 changed files with 3 additions and 6 deletions
|
@ -16,6 +16,7 @@
|
||||||
-- 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 commands = require "luascripts.wolfadmin.commands.commands"
|
local commands = require "luascripts.wolfadmin.commands.commands"
|
||||||
|
local settings = require "luascripts.wolfadmin.util.settings"
|
||||||
|
|
||||||
function commandHelp(clientId, cmdArguments)
|
function commandHelp(clientId, cmdArguments)
|
||||||
local cmds = commands.getadmin()
|
local cmds = commands.getadmin()
|
||||||
|
@ -29,7 +30,7 @@ function commandHelp(clientId, cmdArguments)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat "..clientId.." \"^dhelp: ^9"..#availableCommands.." additional commands (open console for the full list)\";")
|
et.trap_SendConsoleCommand(et.EXEC_APPEND, "cchat "..clientId.." \"^dhelp: ^9"..#availableCommands.." "..((settings.get("g_standalone") == 0) and "additional " or "").."commands (open console for the full list)\";")
|
||||||
|
|
||||||
local cmdsOnLine, cmdsBuffer = 0, ""
|
local cmdsOnLine, cmdsBuffer = 0, ""
|
||||||
|
|
||||||
|
@ -66,4 +67,4 @@ function commandHelp(clientId, cmdArguments)
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
commands.addadmin("help", commandHelp, "h", "display commands available to you or help on a specific command", "^9(^hcommand^9)", true)
|
commands.addadmin("help", commandHelp, "h", "display commands available to you or help on a specific command", "^9(^hcommand^9)", true)
|
||||||
|
|
|
@ -75,10 +75,6 @@ function et_InitGame(levelTime, randomSeed, restartMap)
|
||||||
|
|
||||||
basepath = string.gsub(et.trap_Cvar_Get("fs_basepath"), "\\", "/").."/"..et.trap_Cvar_Get("fs_game").."/luascripts/wolfadmin/"
|
basepath = string.gsub(et.trap_Cvar_Get("fs_basepath"), "\\", "/").."/"..et.trap_Cvar_Get("fs_game").."/luascripts/wolfadmin/"
|
||||||
|
|
||||||
if not (et.trap_Cvar_Get("fs_game") == "noquarter" or et.trap_Cvar_Get("fs_game") == "nq") then
|
|
||||||
outputDebug("Warning! Not running NoQuarter, this may cause bugs. Use at your own risk.")
|
|
||||||
end
|
|
||||||
|
|
||||||
currentLevelTime = levelTime
|
currentLevelTime = levelTime
|
||||||
|
|
||||||
events.trigger("onGameInit", levelTime, randomSeed, (restartMap == 1))
|
events.trigger("onGameInit", levelTime, randomSeed, (restartMap == 1))
|
||||||
|
|
Loading…
Reference in a new issue