Bot npc decoy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WisdomBot moved page Bot npc decoy to Bot npc decoy/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot.)
m (Multipage removal)
Line 1: Line 1:
{{langsp}}
{{LanguageBar}}
{{this is a|point entity|game=Team Fortress 2|name=bot_npc_decoy}}


{{code class|CTFDecoy|tf_weapon_decoy.cpp}}
{{code class|CTFDecoy|tf_weapon_decoy.cpp}}
Line 19: Line 20:
==Outputs==
==Outputs==
{{O BaseEntity}}
{{O BaseEntity}}
[[Category:NextBot]]

Revision as of 05:15, 12 July 2024

English (en)Translate (Translate)

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

C++ In code, it is represented by theCTFDecoyclass, defined in thetf_weapon_decoy.cppfile.

Entity description

An unused NextBot entity in Team Fortress 2 intended to be used for the scrapped Decoy weapon.

If this entity has an owner, then it will set its model and team to reflect the owner's class or disguise, and run forward in a straight line. Otherwise this entity will not spawn since it deletes itself upon not having an owner.

Dedicated Console Variables and Commands

tf_decoy_lifetime <int>
The lifespan of this entity in seconds.

Keyvalues

Inputs

Outputs