usercmd_t

This one is passed from the engine to the game DLL in ClientThink. It contains information about the buttons the player pressed during the past client frame.

Attribute

Type

Notes

msec

byte

 

buttons

byte

Buttons pressed. mouse buttons goes here to

angles

short[3]

Used for respawn and teleporters somehow

forwardmove

short

Delta movement in forward direction. Not used in game DLL. Maybe used in engine

sidemove

short

Not used in game DLL.

upmove

short

Used in game DLL to decide if jump sound should be played.

impulse

byte

Not used in DLL. Perhaps obsolete. Remnant from Quake I.

lightlevel

byte

light level the player is standing on. saved into entity's lighlevel attribute for use by monster AI when sighting player.