SpyAttack: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{lang|SpyAttack|title=SpyAttack}} {{stub}} {{ent|SpyAttack}} is a NextBot action in {{game name|tf2|name=Team Fortress 2}}. {{code class|CTFBotSpyAttack|tf_bot_spy_attac...")
 
(badly moved multipage)
 
(4 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}}
Line 13: Line 13:


{| class="standard-table sortable"
{| class="standard-table sortable"
! Difficulty !! Angle to backstab
! class="unsortable"|Difficulty !! Angle to backstab
|-
|-
| Easy || ±0.9π (±51.57°)
| Easy || ±0.9π (±51.57°)
Line 26: Line 26:
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.
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.


[[Category:NextBot Action]]
[[Category:NextBot Actions]]
[[Category:Team Fortress 2 NextBot Action]]
[[Category:Team Fortress 2 NextBot Actions]]

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.