Usercmd: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
Usercmd (user command) is the player's input, for example the current keys pressed and current viewangle, which is sent to the server. By default it's send 30 times per second. | Usercmd (user command) is the player's input, for example the current keys pressed and current viewangle, which is sent to the server. By default it's send 30 times per second ([[cl_cmdrate]]). It uses booleans to tell the server whether or not a specific variable has changed; if there has been no change, it doesn't send the new data. | ||
In code it's defined in [http://hl2sdk.gigcities.com/usercmd_8cpp-source.html usercmd.cpp] | In code it's defined in [http://hl2sdk.gigcities.com/usercmd_8cpp-source.html usercmd.cpp] | ||
==See Also== | |||
* [[Client to Server Messages]] | |||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:Glossary]] | [[Category:Glossary]] |
Revision as of 06:09, 2 August 2006
Usercmd (user command) is the player's input, for example the current keys pressed and current viewangle, which is sent to the server. By default it's send 30 times per second (cl_cmdrate). It uses booleans to tell the server whether or not a specific variable has changed; if there has been no change, it doesn't send the new data.
In code it's defined in usercmd.cpp