Func tfbot hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added language bar.)
mNo edit summary
Line 1: Line 1:
{{lang|Func tfbot hint}}
{{lang|title=func_tfbot_hint}}
{{tf2 brush|func_tfbot_hint}}
{{entity|func_tfbot_hint|type=e2|game=Team Fortress 2}}


{{code class|CTFBotHint|tf_bot_hint.cpp}}
{{code class|CTFBotHint|tf_bot_hint.cpp}}

Revision as of 09:59, 24 January 2023

English (en)Translate (Translate)

Template:Entity

C++ In code, it is represented by theCTFBotHintclass, defined in thetf_bot_hint.cppfile.

Entity Description

Hints give specific information about their location to help TF2 Bots decide how to react to, or make best use of, that specific location. Hints are only semi-scripted; you cannot force a bot to use a hint (with the exception of actbusy routines). Hints are only suggestions, to be weighed by the bot's AI code during gameplay.

This entity adds the SNIPER_SPOT or SENTRY_SPOT attribute, depending on its hint KV, to any overlapping nav areas.

Keyvalues

hint ([todo internal name (i)]) <choices>
Which kind of hint it is.
  • 0 - Sniper spot
  • 1 - Sentry gun spot
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

SetTeam <integerRedirectInput/integer>
Changes the entity's team.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.


Outputs

See Also