SpyAttack

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

Stub

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

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

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.