Tf weapon slap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{tf2 point|tf_weapon_slap}} ==Entity description== The entity used for the [http://wiki.teamfortress.com/wiki/Pyro Pyro's] melee weapon known as the [http://wiki.teamfortres...")
 
m (Fixed grammar errors and added base entity KVs and IOs.)
Line 2: Line 2:


==Entity description==
==Entity description==
The entity used for the [http://wiki.teamfortress.com/wiki/Pyro Pyro's] melee weapon known as the [http://wiki.teamfortress.com/wiki/Hot_Hand Hot Hand] . If this entity is spawned using ent_create tf_weapon_slap it will not appear in-game.
This entity is used for the [http://wiki.teamfortress.com/wiki/Pyro Pyro] melee weapon known as the [http://wiki.teamfortress.com/wiki/Hot_Hand Hot Hand]. It will not appear in-game when spawned with the <code>[[ent_create]]</code> command.


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV BaseEntity}}


==Inputs==
==Inputs==
{{I Targetname}}
{{I Weapon}}
{{I WeaponSpawn}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O Weapon}}

Revision as of 13:52, 24 May 2021

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

Entity description

This entity is used for the Pyro melee weapon known as the Hot Hand. It will not appear in-game when spawned with the ent_create command.

Keyvalues

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.


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.