CUserCmd

From GMod Wiki

Jump to: navigation, search
Stub.pngThis article is a stub.
You can help the GMod Wiki by expanding it.

CUserCmd is a set of commands that client sends to server. It includes mouse position, view angle and buttons pressed. It is used in hooks Move, CreateMove and some others. You can use these hooks to modify or override movement of player.

Object Methods

NewerShared.png CUserCmd:__index
NewerShared.png CUserCmd:GetButtons
NewerShared.png CUserCmd:GetForwardMove
NewerShared.png CUserCmd:GetImpulse
NewerShared.png CUserCmd:GetMouseX
NewerShared.png CUserCmd:GetMouseY
NewerShared.png CUserCmd:GetSideMove
NewerShared.png CUserCmd:GetUpMove
NewerShared.png CUserCmd:GetViewAngles
NewerShared.png CUserCmd:KeyDown
NewerShared.png CUserCmd:SetButtons
NewerShared.png CUserCmd:SetForwardMove
NewerShared.png CUserCmd:SetImpulse
NewerShared.png CUserCmd:SetMouseX
NewerShared.png CUserCmd:SetMouseY
NewerShared.png CUserCmd:SetSideMove
NewerShared.png CUserCmd:SetUpMove
NewerShared.png CUserCmd:SetViewAngles

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox