archer_proxy

From Valve Developer Community
Revision as of 12:59, 22 May 2021 by Amicdict (talk | contribs) (Created archer_proxy pages. [Information from the TF2 2018 source code leak.])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Team Fortress 2 archer_proxy is a point entity available in Team Fortress 2 Team Fortress 2. This entity fires arrows in a similar way to Mann Vs. Machine bow sniper bots. Upon its creation this entity will do the following:

  1. Enter the HIDDEN state where it does nothing for RandomFloat(0.1, 1) * tf_archer_proxy_fire_rate ticks and doesn't show its model.
  2. Enters an EMERGE state and shows its model, but still does nothing for one second.
  3. Enters the AIM_AND_FIRE state where it picks targets visible from its sight (both RED and BLU players/bots) and fire arrows at them every second. If it has no targets to shoot, it will hide its model and enter the HIDE state until it finds targets to shoot, after which it will go back to the AIM_AND_FIRE state.
C++ In code, it is represented by theCTFArcherProxyclass, defined in thearcher_proxy.cppfile.

Keyvalues

Inputs

Outputs

KilledNPC
Output sent when it kills a player or bot.