// Last updated: December 28th, 2011
// =========================================================
+string GetProgamCommandPrefix()
+{
+ #ifdef SVQC
+ return "sv_cmd";
+ #endif
+ #ifdef CSQC
+ return "cl_cmd";
+ #endif
+ #ifdef MENUQC
+ return "menu_cmd";
+ #endif
+}
+
#define NUM_MARKUPS 41
float markup_init;
string markup_from[NUM_MARKUPS];
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 sv_cmd \n");
+ print(strcat("\nUsage:^3 ", GetProgramCommandPrefix(caller), " ")));
print(" No arguments required.\n");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 sv_cmd \n");
+ print(strcat("\nUsage:^3 ", GetProgramCommandPrefix(caller), " ")));
print(" No arguments required.\n");
return;
}
-// empty for now
-float GenericCommand(string command); // returns true if handled, false if not. Note: It tokenizes its input, so be careful!
\ No newline at end of file
+float GenericCommand(string command); // returns true if handled, false if not. Note: It tokenizes its input, so be careful!
+string GetProgamCommandPrefix(); // returns command prefix specific for each program it is compiled in
\ No newline at end of file
return findfloat(world, entnum, f);
}
#endif
+
float shutdown_running;
#ifdef SVQC
void SV_Shutdown()
Shutdown();
}
cvar_settemp_restore(); // this must be done LAST, but in any case
-}
\ No newline at end of file
+}