// =========================================================
// Server side networked commands code, reworked by Samual
-// Last updated: December 13th, 2011
+// Last updated: December 25th, 2011
// =========================================================
float SV_ParseClientCommand_floodcheck()
}
}
-void ClientCommand_checkfail(float request, string command) // used only by client side code
+void ClientCommand_checkfail(float request, string command) // internal command, used only by code
{
switch(request)
{
}
}
-void ClientCommand_clientversion(float request, float argc) // used only by client side code
+void ClientCommand_clientversion(float request, float argc) // internal command, used only by code
{
switch(request)
{
}
}
-void ClientCommand_getmapvotepic(float request, float argc)
+void ClientCommand_getmapvotepic(float request, float argc) // internal command, used only by code
{
switch(request)
{
}
}
-void ClientCommand_join(float request)
+void ClientCommand_join(float request) // legacy
{
switch(request)
{
}
}
-void ClientCommand_ready(float request)
+void ClientCommand_ready(float request) // todo: anti-spam for toggling readyness
{
switch(request)
{
}
}
-void ClientCommand_reportcvar(float request, float argc, string command) // TODO: confirm this works
+void ClientCommand_reportcvar(float request, float argc, string command)
{
switch(request)
{
}
}
-void ClientCommand_selectteam(float request, float argc) // TODO: Update the messages for this command
+void ClientCommand_selectteam(float request, float argc)
{
switch(request)
{
}
}
-void ClientCommand_spectate(float request)
+void ClientCommand_spectate(float request) // legacy
{
switch(request)
{
}
}
-void ClientCommand_voice(float request, float argc, string command)
+void ClientCommand_voice(float request, float argc, string command) // legacy
{
switch(request)
{
case CMD_REQUEST_USAGE:
{
sprint(self, "\nUsage:^3 cmd voice\n");
- sprint(self, " FIXME ARGUMENTS UNKNOWN.\n");
+ sprint(self, " TODO ARGUMENTS UNKNOWN.\n");
return;
}
}
return print("^1ERROR: ^7ANTISPAM CAUGHT: ", command, ".\n"); // "FALSE": not allowed to continue, halt
}
- /* NOTE: totally disabled for now, however the functionality and descriptions are there if we ever want it.
+ /* NOTE: totally disabled for now for bandwidth/security reasons, however the functionality and descriptions are there if we ever want it.
if(argv(0) == "help")
{
if(argc == 1)
// ====================================================
// Shared code for server commands, written by Samual
-// Last updated: December 19th, 2011
+// Last updated: December 25th, 2011
// ====================================================
// select the proper prefix for usage and other messages
if(selection) { output = num_for_edict(selection); }
- print(strcat("input: ", input, ", output: ", ftos(output), ",\n")); // todo remove after done debugging
return output;
}
}
}
-void CommonCommand_info(float request, entity caller, float argc)
+void CommonCommand_info(float request, entity caller, float argc) // legacy
{
switch(request)
{
}
}
+/*
void GameCommand_rankings(float request) // this is OLD.... jeez.
{
switch(request)
}
}
}
+*/
void CommonCommand_rankings(float request, entity caller)
{
print_to(caller, strcat("realtime = ", ftos(gettime(GETTIME_REALTIME))));
print_to(caller, strcat("hires = ", ftos(gettime(GETTIME_HIRES))));
print_to(caller, strcat("uptime = ", ftos(gettime(GETTIME_UPTIME))));
- print_to(caller, strcat("localtime = ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y"))); // todo: Why is strftime broken? is engine problem, I think.
+ print_to(caller, strcat("localtime = ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y")));
print_to(caller, strcat("gmtime = ", strftime(FALSE, "%a %b %e %H:%M:%S %Z %Y")));
return;
}
// =====================================================
// Server side game commands code, reworked by Samual
-// Last updated: December 6th, 2011
+// Last updated: December 25th, 2011
// =====================================================
// used by GameCommand_make_mapinfo()
}
}
-void GameCommand_bbox(float request)
+void GameCommand_bbox(float request) // legacy
{
switch(request)
{
}
}
-void GameCommand_extendmatchtime(float request)
+void GameCommand_extendmatchtime(float request) // legacy
{
switch(request)
{
}
}
-void GameCommand_find(float request, float argc)
+void GameCommand_find(float request, float argc) // legacy // is this even needed? We have prvm_edicts command and such ANYWAY
{
switch(request)
{
}
}
-void GameCommand_gametype(float request, float argc)
+void GameCommand_gametype(float request, float argc) // legacy
{
switch(request)
{
}
}
-void GameCommand_gettaginfo(float request, float argc) // UNTESTED
+void GameCommand_gettaginfo(float request, float argc) // legacy
{
switch(request)
{
}
}
-void GameCommand_make_mapinfo(float request) // UNTESTED
+void GameCommand_make_mapinfo(float request) // legacy
{
switch(request)
{
}
}
-void GameCommand_modelbug(float request) // UNTESTED // is this even needed anymore?
+void GameCommand_modelbug(float request) // legacy
{
switch(request)
{
}
}
-void GameCommand_nospectators(float request)
+void GameCommand_nospectators(float request) // legacy
{
switch(request)
{
}
}
-void GameCommand_onslaught_updatelinks(float request) // UNTESTED // should this be here? Perhaps some mutatorhook call instead....
+void GameCommand_onslaught_updatelinks(float request) // legacy // todo: should this be here? Perhaps some mutatorhook call instead....
{
switch(request)
{
}
}
-void GameCommand_playerdemo(float request, float argc) // UNTESTED
+void GameCommand_playerdemo(float request, float argc) // legacy
{
switch(request)
{
}
}
-void GameCommand_printstats(float request)
+void GameCommand_printstats(float request) // legacy
{
switch(request)
{
}
}
-void GameCommand_reducematchtime(float request)
+void GameCommand_reducematchtime(float request) // legacy
{
switch(request)
{
// =================================================
// Declarations for server side game commands
-// Last updated: December 14th, 2011
+// Last updated: December 25th, 2011
// =================================================
-float RadarMap_Make(float argc);
-
string GotoMap(string m);
void race_deleteTime(string map, float pos);