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

DP SV SETCOLOR

From Quake Wiki

Revision as of 13:46, 29 February 2008 by KrimZon (talk | contribs) (New page: Builtin definitions: <pre> void(entity ent, float colors) setcolor = #401; </pre> Engine called QC functions (optional): <pre> void(float color) SV_ChangeTeam; </pre> Setcolor sets the c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Builtin definitions:

void(entity ent, float colors) setcolor = #401;

Engine called QC functions (optional):

void(float color) SV_ChangeTeam;

Setcolor sets the color on a client and updates internal color information accordingly (equivilant to stuffing a "color" command but immediate).

SV_ChangeTeam is called by the engine whenever a "color" command is recieved, it may decide to do anything it pleases with the color passed by the client, including rejecting it (by doing nothing), or calling setcolor to apply it, preventing team changes is one use for this.

The color format is pants + shirt * 16 (0-255 potentially).