CUserCmd
From GMod Wiki
This 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
CUserCmd:__index
CUserCmd:GetButtons
CUserCmd:GetForwardMove
CUserCmd:GetImpulse
CUserCmd:GetMouseX
CUserCmd:GetMouseY
CUserCmd:GetSideMove
CUserCmd:GetUpMove
CUserCmd:GetViewAngles
CUserCmd:KeyDown
CUserCmd:SetButtons
CUserCmd:SetForwardMove
CUserCmd:SetImpulse
CUserCmd:SetMouseX
CUserCmd:SetMouseY
CUserCmd:SetSideMove
CUserCmd:SetUpMove
CUserCmd:SetViewAngles