Example #1
0
	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;
}
Example #3
0
	bool RegisterConCommandBase(ConCommandBase *pCommandBase)
	{
		return META_REGCVAR(pCommandBase);
	}
Example #4
0
	bool RegisterConCommandBase(ConCommandBase *pCommandBase)
	{
		/* Always call META_REGCVAR instead of going through the engine. */
		return META_REGCVAR(pCommandBase);
	}
Example #5
0
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);
}
Example #6
0
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);
}