Removed some NQ and shrubbot-specific things

This commit is contained in:
Timo Smit 2016-08-29 22:18:20 +02:00
parent 0cbdf407cb
commit 0640c4bc3b
2 changed files with 3 additions and 6 deletions

View file

@ -16,6 +16,7 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
local commands = require "luascripts.wolfadmin.commands.commands"
local settings = require "luascripts.wolfadmin.util.settings"
function commandHelp(clientId, cmdArguments)
local cmds = commands.getadmin()
@ -29,7 +30,7 @@ function commandHelp(clientId, cmdArguments)
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, ""
@ -66,4 +67,4 @@ function commandHelp(clientId, cmdArguments)
return false
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)

View file

@ -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/"
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
events.trigger("onGameInit", levelTime, randomSeed, (restartMap == 1))