Bot npc decoy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
(Preparing page for move. This action was perfomed by a bot.)
Line 1: Line 1:
{{lang|Bot npc decoy}}{{this is a|e0|game=tf2|name=bot_npc_decoy}}
{{langsp}}


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

Revision as of 12:24, 12 January 2024

English (en)Translate (Translate)
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