tf_dropped_weapon

From Valve Developer Community
Revision as of 01:13, 14 June 2021 by Amicdict (talk | contribs) (Created entity page. [Information from the Jungle Inferno leak of TF2. Help me fact check the page.])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Team Fortress 2 tf_dropped_weapon is a point entity available in Team Fortress 2 Team Fortress 2. This entity is used for dropped weapons and will store its weapon information from the player held weapon.

Players can perform a pickup option by performing +use_action_slot_item while looking at this entity, and take the dropped weapon to be used as a player weapon. If the dropped weapon is a medigun then its charge will either slowly drop to 0% or, if the player suicided, set to 0%.

Note.pngNote:Upon picking up a dropped weapon, the original held weapon will not be returned.
Icon-Bug.pngBug:Spawning this entity through ent_create will crash the game if the model KV is set, but not the actual item object.  [todo tested in ?]
C++ In code, it is represented by theCTFDroppedWeaponclass, defined in thetf_dropped_weapon.cppfile.

Dedicated Console Variables and Commands

tf_dropped_weapon <float>
The lifetime of this entity in seconds.

Keyvalues

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


Inputs

SetTeam <integerRedirectInput/integer>
Changes the entity's team.
Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history


Outputs

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