tf_weapon_base

From Valve Developer Community
Revision as of 19:35, 29 May 2021 by Amicdict (talk | contribs) (Created entity page. [Information from the 2018 source code leak of TF2 with use of ent_info. PLEASE FACT CHECK THIS PAGE!])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Team Fortress 2 tf_weapon_base is a point entity available in Team Fortress 2 Team Fortress 2. This entity is used by every weapon entity in TF2 as a base for its functions fundamental to TF2 weapon entities.

C++ In code, it is represented by theCTFWeaponBaseclass, defined in thetf_weapon_base.cppfile.

Keyvalues

Inputs

Template:I WeaponSpawn

Outputs

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

Weapon:

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