// // Name: CC_BalanceMacroReport( const CCommand& args ) // Author: Hekar Khani // Description: ConCommand to display a report of the current balance macros in CSV format // Notes: // void CC_BalanceMacroReportCSV( const CCommand& args ) { // HODO: add ability to write to file ConCommandBase *Command = cvar->GetCommands(); for ( ; Command != NULL; Command = Command->GetNext()) { ConVar *convar = dynamic_cast< ConVar * > ( Command ); if ( !convar ) { continue; } Msg( "Convar, Value, Description\n" ); const char *convarname = convar->GetName(); if ( Q_strstr( convarname, "lfm" ) ) { Msg( "%s, %s, %s\n", convar->GetName(), convar->GetString(), convar->GetHelpText() ); } } }
// // Name: CC_BalanceMacroReport( const CCommand& args ) // Author: Hekar Khani // Description: ConCommand to display a simple report of the current balance macros // Notes: // void CC_BalanceMacroReport( const CCommand& args ) { ConCommandBase *Command = cvar->GetCommands(); for ( ; Command != NULL; Command = Command->GetNext()) { ConVar *convar = dynamic_cast< ConVar * > ( Command ); if ( !convar ) { continue; } const char *convarname = convar->GetName(); if ( Q_strstr( convarname, "lfm" ) ) { Msg( "Name: %s\t\tValue: %s\t\tDesc: %s\n", convar->GetName(), convar->GetString(), convar->GetHelpText() ); } } }