Tf dropped weapon: Difference between revisions
Jump to navigation
Jump to search
Note:Upon picking up a dropped weapon, the original held weapon will not be returned.
Bug:Spawning this entity through
Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
(Created entity page. [Information from the Jungle Inferno leak of TF2. Help me fact check the page.]) |
(Stylized the "convars" section to be same as env_fire; Omit "Category:Entities" as templates apply it already; "|base=1" param for "KV"/"I" templates (Yes Template:I_BaseAnimating doesn't support params yet, ill add it to my trello todo list)) |
||
Line 6: | Line 6: | ||
{{code class|CTFDroppedWeapon|tf_dropped_weapon.cpp}} | {{code class|CTFDroppedWeapon|tf_dropped_weapon.cpp}} | ||
== | ==ConVars/Commands== | ||
{{varcom|start}} | |||
{{varcom|tf_dropped_weapon|30|Arbitrary number ([[float]])|Sets the lifetime of<code>tf_dropped_weapon</code>entities.}} | |||
{{varcom|end}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV BaseAnimating}} | {{KV BaseAnimating|base=1}} | ||
{{KV BaseEntity}} | {{KV BaseEntity|base=1}} | ||
==Inputs== | ==Inputs== | ||
{{I TFTeam}} | {{I TFTeam}} | ||
{{I BaseAnimating}} | {{I BaseAnimating|base=1}} | ||
{{I BaseEntity}} | {{I BaseEntity|base=1}} | ||
==Outputs== | ==Outputs== | ||
{{O BaseAnimating}} | {{O BaseAnimating}} | ||
{{O BaseEntity}} | {{O BaseEntity}} | ||
Revision as of 11:54, 14 June 2021
tf_dropped_weapon
is a point entity available in 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%.


ent_create
will crash the game if the model KV is set, but not the actual item object. [todo tested in ?]ConVars/Commands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
tf_dropped_weapon | 30 | Arbitrary number (float) | Sets the lifetime oftf_dropped_weapon entities. |
Keyvalues

Inputs

Outputs
