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.)
m (Classifying as model entity)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{lang|Bot npc decoy}}{{this is a|e0|game=tf2|name=bot_npc_decoy}}
{{LanguageBar}}
{{CD|CTFDecoy|file1=tf_weapon_decoy.cpp}}
{{this is a|model entity|game=Team Fortress 2|name=bot_npc_decoy}}


{{code class|CTFDecoy|tf_weapon_decoy.cpp}}
==Entity description==
An unused [[NextBot]] entity in Team Fortress 2 intended to be used for the scrapped Decoy weapon.  
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.
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==
{{KV BaseEntity}}
==Inputs==
{{I BaseEntity}}


==Outputs==
== Dedicated Console Variables and Commands ==
{{O BaseEntity}}
{{varcom|start}}
{{varcom|tf_decoy_lifetime||int|The lifespan of this entity in seconds.}}
{{varcom|end}}


[[Category:NextBot]]
[[Category:NextBot]]

Latest revision as of 04:30, 19 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTFDecoy
CTFJar
CTFWeaponBaseGun
CTFWeaponBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
C++ tf_weapon_decoy.cpp

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

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

Cvar/Command Parameters or default value Descriptor Effect
tf_decoy_lifetime int The lifespan of this entity in seconds.