Bot npc decoy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Bot npc decoy/en to Bot npc decoy without leaving a redirect: Move en subpage to basepage)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{CD|CTFDecoy|file1=tf_weapon_decoy.cpp}}
{{this is a|point entity|game=Team Fortress 2|name=bot_npc_decoy}}
{{this is a|point 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]]

Revision as of 02:20, 26 September 2024

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

bot_npc_decoy is a point 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.