Tf dropped weapon: Difference between revisions
Jump to navigation
Jump to search
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
m (<code> tag applies extra whitespacing apparently, added a color to them for mobile page readers (based off Template:Lang, but with a color that's not entirely white, as those are usually too bright)) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Entity|tf_dropped_weapon|type=e0|game=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<code style="color:#E5E5E5;">+use_action_slot_item</code>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%. | Players can perform a pickup option by performing<code style="color:#E5E5E5;">+use_action_slot_item</code>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%. | ||
{{ | {{ModernNote|Upon picking up a dropped weapon, the original held weapon will not be returned.}} | ||
{{ | {{ModernBug|Spawning this entity through {{code|ent_create}} will crash the game if the model KV is set, but not the actual item object.}} | ||
{{code class|CTFDroppedWeapon|tf_dropped_weapon.cpp}} | {{code class|CTFDroppedWeapon|tf_dropped_weapon.cpp}} | ||
Revision as of 21:52, 24 April 2023
Template:Entity 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%.
Template:ModernNote
Template:ModernBug
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
