Not named anywhere in the server, client or engine binaries. It may be fired by scripts, or not at all.
PlayerWeaponSwitchedEvent[GameEventHandler("player_weapon_switched")]
public HookResult OnPlayerWeaponSwitched(PlayerWeaponSwitchedEvent args) {
// args.EntindexPlayer, args.Viewmodelindex
return HookResult.Continue;
}| Field | Type | Deadworks property | Valve's comment |
| entindex_player | long | EntindexPlayer int | |
| viewmodelindex | long | Viewmodelindex int |