Func tfbot hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Some explained hint values)
Line 5: Line 5:


== Keyvalues ==
== Keyvalues ==
{{KV|hint|choices|Which kind of hint it is}}
{{KV|hint|choices|Which kind of hint it is
*0 - Sniper spot
*1 - Sentry gun spot
}}
{{KV Targetname}}
{{KV Targetname}}
{{KV TFTeam}}
{{KV TFTeam}}

Revision as of 20:34, 16 August 2012

Template:Tf2 brush

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 locus. Hints are only semi-scripted. You cannot force an Bot to use a hint (with the exception of actbusy routines). Hints are only suggestions, to be weighed by an NPC's AI code during gameplay.

Keyvalues

hint ([todo internal name (i)]) <choices>
Which kind of hint it is
  • 0 - Sniper spot
  • 1 - Sentry gun spot
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

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