tf_weapon_sword

From Valve Developer Community
Revision as of 14:29, 27 August 2021 by Amicdict (talk | contribs) (Updated page with modern-day info.)
Jump to navigation Jump to search

Team Fortress 2 tf_weapon_sword is a point entity available in Team Fortress 2 Team Fortress 2.

C++ In code, it is represented by theCTFSwordclass, defined in thetf_weapon_sword.cppfile.

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

Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history


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.
Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history


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.
Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history