{
switch(request)
{
- case 0:
- {
- print(" ^2adminmsg^7: Send an admin message to a client directly\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2allready^7: Restart the server and reset the players\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
ReadyRestart();
{
switch(request)
{
- case 0:
- {
- print(" ^2allspec^7: Force all players to spectate\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2anticheat^7: Create an anticheat report for a client\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2bbox^7: Print detailed information about world size\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
print("Original size: ", ftos(world.absmin_x), " ", ftos(world.absmin_y), " ", ftos(world.absmin_z));
{
switch(request)
{
- case 0:
- {
- print(" ^2bot_cmd^7: Control and send commands to bots\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity bot;
{
switch(request)
{
- case 0:
- {
- print(" ^2cointoss^7: Flip a virtual coin and give random result\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2cvar_changes^7: Prints a list of all changed server cvars\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
print(cvar_changes);
{
switch(request)
{
- case 0:
- {
- print(" ^2cvar_purechanges^7: Prints a list of all changed gameplay cvars\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
print(cvar_purechanges);
{
switch(request)
{
- case 0:
- {
- print(" ^2database^7: Extra controls of the serverprogs database\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(argc == 3)
{
switch(request)
{
- case 0:
- {
- print(" ^2defer_clear^7: Clear all queued defer commands for client\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2defer_clear_all^7: Clear all queued defer commands for all clients\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2delrec^7: Delete race time record for a map\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(argv(1))
{
switch(request)
{
- case 0:
- {
- print(" ^2effectindexdump^7: Dump list of effects from code and effectinfo.txt\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
float fh, d;
{
switch(request)
{
- case 0:
- {
- print(" ^2extendmatchtime^7: Increase the timelimit value incrementally\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
changematchtime(autocvar_timelimit_increment* 60, autocvar_timelimit_min*60, autocvar_timelimit_max*60);
{
switch(request)
{
- case 0:
- {
- print(" ^2find^7: Search through entities for matching classname\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2gametype^7: Simple command to change the active gametype\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
string s = argv(1);
{
switch(request)
{
- case 0:
- {
- print(" ^2gettaginfo^7: Get specific information about a weapon model\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity tmp_entity;
{
switch(request)
{
- case 0:
- {
- print(" ^2gotomap^7: Simple command to switch to another map\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(argc == 2)
{
switch(request)
{
- case 0:
- {
- print(" ^2ladder^7: Get information about top players if supported\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
print(ladder_reply);
{
switch(request)
{
- case 0:
- {
- print(" ^2lockteams^7: Disable the ability for players to switch or enter teams\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(teamplay)
{
switch(request)
{
- case 0:
- {
- print(" ^2make_mapinfo^7: Automatically rebuild mapinfo files\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity tmp_entity;
{
switch(request)
{
- case 0:
- {
- print(" ^2modelbug^7: foobar\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
modelbug();
{
switch(request)
{
- case 0:
- {
- print(" ^2moveplayer^7: Change the team/status of a player\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2nospectators^7: Automatically remove spectators from a match\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
blockSpectators = 1;
{
switch(request)
{
- case 0:
- {
- print(" ^2onslaught_updatelinks^7: Refresh link status for onslaught\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
onslaught_updatelinks();
{
switch(request)
{
- case 0:
- {
- print(" ^2playerdemo^7: Control the ability to save demos of players\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
{
switch(request)
{
- case 0:
- {
- print(" ^2printstats^7: foobar\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
DumpStats(FALSE);
{
switch(request)
{
- case 0:
- {
- print(" ^2radarmap^7: Generate a radar image of the map\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(RadarMap_Make(argc))
{
switch(request)
{
- case 0:
- {
- print(" ^2rankings^7: Print information about rankings\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
strunzone(rankings_reply);
{
switch(request)
{
- case 0:
- {
- print(" ^2records^7: List top 10 records for the current map\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
float i;
{
switch(request)
{
- case 0:
- {
- print(" ^2reducematchtime^7: Decrease the timelimit value incrementally\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
changematchtime(autocvar_timelimit_decrement*-60, autocvar_timelimit_min*60, autocvar_timelimit_max*60);
{
switch(request)
{
- case 0:
- {
- print(" ^2setbots^7: Change the values of bot_number and minplayers immediately to change the bot count\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(argc >= 3 && argv(1) == "setbots")
#ifdef STUFFTO_ENABLED
switch(request)
{
- case 0:
- {
- print(" ^2stuffto^7: Send a command to be executed on a client\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
entity client;
return;
}
}
- #else // give the response for missing command to fake them out ;3
- if(request == GC_REQUEST_COMMAND)
+ #else
+ if(request)
{
print("stuffto command is not enabled on this server.\n");
return;
{
switch(request)
{
- case 0:
- {
- print(" ^2teamstatus^7: Show information about player and team scores\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
Score_NicePrint(world);
{
switch(request)
{
- case 0:
- {
- print(" ^2time^7: Print different formats/readouts of time\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
print("time = ", ftos(time), "\n");
{
switch(request)
{
- case 0:
- {
- print(" ^2trace^7: Various debugging tools with tracing\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
// TODO: Clean up all of these variables and merge the code below to use only a few
{
switch(request)
{
- case 0:
- {
- print(" ^2unlockteams^7: Enable the ability for players to switch or enter teams\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(teamplay)
{
switch (request)
{
- case 0:
- {
- print(" ^2warp^7: Choose different level in campaign\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{
if(autocvar_g_campaign)
{
switch(request)
{
- case 0:
- {
- sprint(self, " ^2blah^7: foobar\n");
- return;
- }
-
case GC_REQUEST_COMMAND:
{