SpyAttack: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(badly moved multipage)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{lang|SpyAttack|title=SpyAttack}}
{{LanguageBar}}
{{stub}}
{{stub}}
{{ent|SpyAttack}} is a [[NextBot]] action in {{game name|tf2|name=Team Fortress 2}}.
{{ent|SpyAttack}} is a [[NextBot]] action in {{Team Fortress 2|4}}.


{{code class|CTFBotSpyAttack|tf_bot_spy_attack.cpp}}
{{code class|CTFBotSpyAttack|tf_bot_spy_attack.cpp}}

Latest revision as of 06:42, 14 July 2024

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

SpyAttack is a NextBot action in Team Fortress 2 Team Fortress 2.

C++ In code, it is represented by theCTFBotSpyAttackclass, defined in thetf_bot_spy_attack.cppfile.

Description

SpyAttack makes Spy TFBots attempt to attack another player.

The acting Spy bot will either use their primary, secondary, or melee weapon.

Melee Weapon

Difficulty Angle to backstab
Easy ±0.9π (±51.57°)
Normal ±0.7071π (±40.51°)
Hard ±0.2π (±11.46°)
Expert ±0.0π (±0°)

Spy bots with easy difficulty will always attempt to use their melee weapon against their target, regardless if the Spy bots are actually behind them.