Tf weapon slap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (Classifying as model entity)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{this is a|point entity|game=Team Fortress 2|name=tf_weapon_slap}} The entity belonging to the [http://wiki.teamfortress.com/wiki/Hot_Hand Hot Hand] melee weapon, equippable by the [http://wiki.teamfortress.com/wiki/Pyro Pyro]. When manually spawned with the{{ent|ent_create}}command, it will permanently stay static and do nothing.
{{ent not in fgd|codeonly=1}}
{{CD|CTFSlap|file1=1}}
{{this is a|model entity|game=Team Fortress 2|name=tf_weapon_slap}} The entity belonging to the {{tfwiki|Hot Hand}} melee weapon, equippable by the {{tfwiki|Pyro}}. When manually spawned with the {{ent|ent_create}} command, it will permanently stay static and do nothing.


This entity is only for internal use, specifically for code that runs when a player respawns. It is only of interest to scripters, or mappers involved in complex [[I/O]].  
This entity is only for internal use, specifically for code that runs when a player respawns. It is only of interest to scripters, or mappers involved in complex [[I/O]].  
==Keyvalues==
{{KV BaseEntity|base=1}}
{{KV BaseAnimating|base=1}}


==Inputs==
==Inputs==
{{I Weapon}}
{{I Weapon}}
{{I BaseEntity|base=1}}
{{I BaseAnimating|base=1}}
==Outputs==
{{O BaseEntity}}

Latest revision as of 04:35, 19 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
C++ Class hierarchy
CTFSlap
CTFWeaponBaseMelee
CTFWeaponBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
C++ tf_weapon_slap.cpp

tf_weapon_slap is a model entity available in Team Fortress 2 Team Fortress 2. The entity belonging to the Tfwiki favicon.png Hot Hand melee weapon, equippable by the Tfwiki favicon.png Pyro. When manually spawned with the ent_create command, it will permanently stay static and do nothing.

This entity is only for internal use, specifically for code that runs when a player respawns. It is only of interest to scripters, or mappers involved in complex I/O.

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.