tf_weapon_slap

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
???
CBaseAnimating
CBaseEntity

tf_weapon_slap is a point entity available in Team Fortress 2 Team Fortress 2. The entity belonging to the Hot Hand melee weapon, equippable by the Pyro. When manually spawned with theent_createcommand, it will permanently stay static and do nothing.

This entity is only for internal use, specifically for code that runs when a player respawns. It is only of interest to scripters, or mappers involved in complex I/O.

Inputs

HideWeapon  !FGD
If this weapon is being held, hide the worldmodel and/or viewmodel via EF_NODRAW. Weapon will still be useable. The weapon will become visible again if the holder is to switch between weapons in their inventory.