Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 2s ago· Viewing build 6730 (Oct 01 2026), not the latest

player_weapon_switched

game event

Declared in game.gameevents

Not named anywhere in the server, client or engine binaries. It may be fired by scripts, or not at all.

Deadworks (C#), as PlayerWeaponSwitchedEvent
[GameEventHandler("player_weapon_switched")]
public HookResult OnPlayerWeaponSwitched(PlayerWeaponSwitchedEvent args) {
	// args.EntindexPlayer, args.Viewmodelindex
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
entindex_playerlong
EntindexPlayer int
viewmodelindexlong
Viewmodelindex int

History

  1. 6696–6745first dumped