View Single Post
02/25/16, 06:08 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
A matching event would also be nice.
EVENT_WEAPON_STATE_CHANGED(WeaponStateChangeReason reason)

WeaponStateChangeReason would then be one of these:
WEAPON_STATE_CHANGE_REASON_WEAPON_CHANGE - when they get drawn after equipping a different weapon
WEAPON_STATE_CHANGE_REASON_WEAPON_SWAP - when they get drawn by using weapon swap
WEAPON_STATE_CHANGE_REASON_PLAYER_DRAWN - when they are simply drawn by the player
WEAPON_STATE_CHANGE_REASON_PLAYER_SHEATHED - when they are simply sheathed by the player
WEAPON_STATE_CHANGE_REASON_OTHER_PLAYER_ABILITY - when they get drawn in response to another players ability cast