Tf weapon sword: Difference between revisions
Jump to navigation
Jump to search
Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
{{this is a| | {{this is a|point entity|game=Team Fortress 2|name=tf_weapon_sword}} | ||
{{code class|CTFSword|tf_weapon_sword.cpp}} | {{code class|CTFSword|tf_weapon_sword.cpp}} |
Revision as of 18:39, 17 May 2024
tf_weapon_sword
is a point entity available in Team Fortress 2.
Entity description
A sword item. This entity is used for the Claidheamh Mòr, Eyelander and its reskins, Persian Persuader, and Scotsman's Skullcutter items.
Keyvalues

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

Outputs
- OnNPCPickup
- Fires when an NPC picks up this weapon. (!activator is the NPC)
- OnPlayerUse
- Fires when the player +uses this weapon. (!activator is the player.)
- OnPlayerPickup
- Fires when a player picks up this weapon. (!activator is the player.)
- OnCacheInteraction
- Fires when the player 'proves' they've found this weapon. Fires on: Player Touch, +USE pickup, Physcannon pickup, Physcannon punt.
