Weapon Hooks

From GMod Wiki

Jump to: navigation, search
These hooks are for use in scripted weapons.

Server

NewerServer.png AcceptInput
NewerServer.png Equip
NewerServer.png EquipAmmo
NewerServer.png GetCapabilities
NewerServer.png KeyValue
NewerServer.png OnDrop
NewerServer.png OwnerChanged
NewerServer.png ShouldDropOnDie

Client

NewerClient.png AdjustMouseSensitivity
NewerClient.png CalcView
NewerClient.png CustomAmmoDisplay
NewerClient.png DoImpactEffect
NewerClient.png DrawHUD
NewerClient.png DrawWeaponSelection
NewerClient.png DrawWorldModel
NewerClient.png DrawWorldModelTranslucent
NewerClient.png FireAnimationEvent
NewerClient.png FreezeMovement
NewerClient.png GetTracerOrigin
NewerClient.png GetViewModelPosition
NewerClient.png HUDShouldDraw
NewerClient.png TranslateFOV
NewerClient.png ViewModelDrawn

Shared

NewerShared.png Ammo1
NewerShared.png Ammo2
NewerShared.png CanPrimaryAttack
NewerShared.png CanSecondaryAttack
NewerShared.png ContextScreenClick
NewerShared.png Deploy
NewerShared.png Holster
NewerShared.png Initialize
NewerShared.png OnRemove
NewerShared.png OnRestore
NewerShared.png Precache
NewerShared.png PrimaryAttack
NewerShared.png PrintWeaponInfo
NewerShared.png Reload
NewerShared.png SecondaryAttack
NewerShared.png SetDeploySpeed
NewerShared.png ShootBullet
NewerShared.png ShootEffects
NewerShared.png TakePrimaryAmmo
NewerShared.png TakeSecondaryAmmo
NewerShared.png Think
NewerShared.png TranslateActivity

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox