Tf weapon base: Difference between revisions
Jump to navigation
Jump to search
Warning:
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
(Reworded basic description.) |
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
||
Line 1: | Line 1: | ||
{{tf2 | {{this is a|e0|game=tf2|name=tf_weapon_base}} This entity is used by every weapon entity in TF2 as a base entity, and they derive all weapon behavior from <code>tf_weapon_base</code>. | ||
{{code class|CTFWeaponBase|tf_weapon_base.cpp}} | {{code class|CTFWeaponBase|tf_weapon_base.cpp}} |
Revision as of 09:31, 7 January 2024
tf_weapon_base
is an e0 available in Team Fortress 2.

- The {{{game}}} parameter is inconsistent with the name defined by the {{tf2}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Team Fortress 2.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
This entity is used by every weapon entity in TF2 as a base entity, and they derive all weapon behavior from tf_weapon_base
.
Keyvalues
Inputs
Outputs

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.