Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

KRIMZON SV PARSECLIENTCOMMAND

From Quake Wiki

Revision as of 14:06, 29 February 2008 by KrimZon (talk | contribs) (New page: Engine-called QC prototypes: <pre> void(string s) SV_ParseClientCommand; </pre> Builtin definitions: <pre> void(entity e, string s) clientcommand = #440; float(string s) tokenize = #441; ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Engine-called QC prototypes:

void(string s) SV_ParseClientCommand;

Builtin definitions:

void(entity e, string s) clientcommand = #440;
float(string s) tokenize = #441;
string(float n) argv = #442;

Provides QC the ability to completely control server interpretation of client commands ("say" and "color" for example, clientcommand is necessary for this and substring (FRIK_FILE) is useful) as well as adding new commands (tokenize, argv, and stof (FRIK_FILE) are useful for this)), whenever a clc_stringcmd is received the QC function is called, and it is up to the QC to decide what (if anything) to do with it.