GM:CreateMove

From Garry's Mod
Jump to: navigation, search
 GM:CreateMove( )

Description

Allows you to change the players movements before they're sent to the server.

NOTE Due to this hook being clientside only, it could be overridden by the user allowing him to completely skip your logic, it is recommended to use GM:StartCommand in a shared file instead.

Arguments

CUserCmd cmd

The User Command data

Returns

boolean

Return true to:
  • Disable Sandbox C menu "screen clicking"
  • Disable Teammate nocollide (verification required)
  • Prevent calling of C_BaseHLPlayer::CreateMove & subsequently C_BasePlayer::CreateMove
Personal tools
Navigation