bool RegisterConCommandBase(ConCommandBase *pCommand) override { META_REGCVAR(pCommand); // Override values of convars created by SourceMod convar manager if // specified on command line. const char *cmdLineValue = icvar->GetCommandLineValue(pCommand->GetName()); if (cmdLineValue && !pCommand->IsCommand()) static_cast<ConVar *>(pCommand)->SetValue(cmdLineValue); return true; }
bool RootConsoleMenu::RegisterConCommandBase(ConCommandBase *pCommand) { META_REGCVAR(pCommand); /* Override values of convars created by SourceMod convar manager if specified on command line */ const char *cmdLineValue = icvar->GetCommandLineValue(pCommand->GetName()); if (cmdLineValue && !pCommand->IsCommand()) { static_cast<ConVar *>(pCommand)->SetValue(cmdLineValue); } return true; }
bool RegisterConCommandBase(ConCommandBase *pCommandBase) { return META_REGCVAR(pCommandBase); }
bool RegisterConCommandBase(ConCommandBase *pCommandBase) { /* Always call META_REGCVAR instead of going through the engine. */ return META_REGCVAR(pCommandBase); }
CommandHook *SourceLuaConsole::RegConCommand(const char* name, CommandCallback callback, const char *help, int flags) { ConCommand *cmd = new ConCommand(name, ignore_con_cmd, help, flags); META_REGCVAR((ConCommandBase *)cmd); return new CommandHook(cmd, callback); }
void SourceLuaConsole::OnPluginStart() { ConCommandBase *sourcelua = new ConCommand("sourcelua", sourcelua_concmd, "Manage SourceLua", FCVAR_NONE); META_REGCVAR(sourcelua); }
bool CSourceMMMAP::RegisterConCommandBase(ConCommandBase *pVar) { //this will work on any type of concmd! return META_REGCVAR(pVar); }