}
*/
-
-#define GC_REQUEST_COMMAND 1
-#define GC_REQUEST_USAGE 2
-
-void Cmd_HUD_SetFields(float);
-void Cmd_HUD_Help(float);
-
-.vector view_ofs;
-entity debug_shotorg;
-
-
// ============================
// Misc. Supporting Functions
// ============================
--- /dev/null
+// ==============================================
+// CSQC client commands code, written by Samual
+// Last updated: November 26th, 2011
+// ==============================================
+
+#define GC_REQUEST_COMMAND 1
+#define GC_REQUEST_USAGE 2
+
+void Cmd_HUD_SetFields(float);
+void Cmd_HUD_Help(float);
+
+.vector view_ofs;
+entity debug_shotorg;
\ No newline at end of file
../common/util.qh
../common/items.qh
../common/explosion_equation.qh
-
../common/mapinfo.qh
+../common/command/generic.qh
+../common/command/shared_defs.qh
+
+command/cl_cmd.qh
autocvars.qh
prandom.qc
bgmscript.qc
noise.qc
-gamecommand.qc
../common/util.qc
-../common/gamecommand.qc
+../common/command/generic.qc
../common/mapinfo.qc
../common/items.qc
../server/w_all.qc
../common/explosion_equation.qc
+command/cl_cmd.qc
+
../warpzonelib/anglestransform.qc
../warpzonelib/mathlib.qc
../warpzonelib/common.qc
--- /dev/null
+// empty for now
\ No newline at end of file
--- /dev/null
+// =========================================================
+// Shared declarations for all commands, written by Samual
+// Last updated: December 13th, 2011
+// =========================================================
+
+// identifiers for subfunction requests by the command code structure
+#define CMD_REQUEST_COMMAND 1
+#define CMD_REQUEST_USAGE 2
f &~= f * 65536;
return f;
}
+
+string strlimitedlen(string input, string truncation, float strip_colors, float limit)
+{
+ if(strlen((strip_colors ? strdecolorize(input) : input)) <= limit)
+ return input;
+ else
+ return strcat(substring(input, 0, (strlen(input) - strlen(truncation))), truncation);
+}
../common/mapinfo.qh
../common/campaign_common.qh
../common/items.qh
+../common/command/generic.qh
+../common/command/shared_defs.qh
-gamecommand.qh
+command/menu_cmd.qh
menu.qh
draw.qh
skin.qh
classes.c
../common/util.qc
-../common/gamecommand.qc
-gamecommand.qc
+../common/command/generic.qc
+command/menu_cmd.qc
menu.qc
draw.qc
xonotic/util.qc
{
float total_listed_players, tmp_hours, tmp_minutes, tmp_seconds;
entity tmp_player;
- string tmp_player_name;
+ //string tmp_player_name;
sprint(self, strcat("List of client information", (autocvar_sv_status_privacy ? " (some data is hidden for privacy)" : string_null), ":\n"));
sprint(self, sprintf(" %-4s %-20s %-5s %-3s %-9s %-16s %s\n", "ent", "nickname", "ping", "pl", "time", "ip", "crypto_id"));
FOR_EACH_CLIENT(tmp_player)
{
- tmp_player_name = strlimitedlen(tmp_player.netname, TRUE, 20);
+ //tmp_player_name = strlimitedlen(tmp_player.netname, TRUE, 20);
tmp_hours = tmp_minutes = tmp_seconds = 0;
// Last updated: December 13th, 2011
// ====================================================
-// TODO: move this to some util file?
-string strlimitedlen(string input, float strip_colors, float limit)
-{
- if(strlen((strip_colors ? strdecolorize(input) : input)) <= limit)
- return input;
- else
- return strcat(substring(input, 0, (strlen(input) - 3)), "...");
-}
-
// find a player which matches the input string, and return their entity number
float GetFilteredNumber(string input)
{
{
float total_listed_players, tmp_hours, tmp_minutes, tmp_seconds;
entity tmp_player;
- string tmp_player_name;
+ //string tmp_player_name;
sprint(self, strcat("List of client information", (autocvar_sv_status_privacy ? " (some data is hidden for privacy)" : string_null), ":\n"));
sprint(self, sprintf(" %-4s %-20s %-5s %-3s %-9s %-16s %s\n", "ent", "nickname", "ping", "pl", "time", "ip", "crypto_id"));
FOR_EACH_CLIENT(tmp_player)
{
- tmp_player_name = strlimitedlen(tmp_player.netname, TRUE, 20);
+ //tmp_player_name = strlimitedlen(tmp_player.netname, "...", TRUE, 20);
tmp_hours = tmp_minutes = tmp_seconds = 0;
// Last updated: December 13th, 2011
// ============================================================
-// identifiers for subfunction requests by the command code structure
-#define CMD_REQUEST_COMMAND 1
-#define CMD_REQUEST_USAGE 2
+// nothing needed here
\ No newline at end of file
../common/items.qh
../common/explosion_equation.qh
../common/urllib.qh
+../common/command/generic.qh
+../common/command/shared_defs.qh
autocvars.qh
constants.qh
../common/campaign_setup.qc
../common/urllib.qc
-../common/gamecommand.qc
+../common/command/generic.qc
command/common.qc
command/radarmap.qc
command/vote.qc