Func tfbot hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Unicodifying, replaced: See Also → See also, {{language subpage → {{langsp)
(-added class hierarchy, cleanup)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{this is a|e2|name=func_tfbot_hint|game=Team Fortress 2}}
{{LanguageBar}}
{{CD|CTFBotHint|file1=tf_bot_hint.cpp}}
{{this is a|brush entity|name=func_tfbot_hint|game=Team Fortress 2}}


{{code class|CTFBotHint|tf_bot_hint.cpp}}
==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.  
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 <tt>SNIPER_SPOT</tt> or <tt>SENTRY_SPOT</tt> attribute, depending on its hint KV, to any overlapping nav areas.
This entity adds the <tt>SNIPER_SPOT</tt> or <tt>SENTRY_SPOT</tt> attribute, depending on its hint KV, to any overlapping nav areas.
==Keyvalues==
 
== Keyvalues ==
{{KV Targetname}}
{{KV|hint|choices|Which kind of hint it is.
{{KV|hint|choices|Which kind of hint it is.
*0 - Sniper spot
*0 - Sniper spot
*1 - Sentry gun spot}}
*1 - Sentry gun spot}}
{{KV TeamNum|tf2=1}}
{{KV TeamNum|tf2=1}}
{{KV EnableDisable}}{{KV BaseEntity|base=1|brush=1}}
{{KV EnableDisable}}
 
==Inputs==
==Inputs==
{{I TFTeam}}
{{I TFTeam}}
{{I EnableDisable}}
{{I EnableDisable}}
{{I Toggle}}
{{I Toggle}}
{{I BaseEntity|base=1}}
==Outputs==
{{O BaseEntity}}


==See also==
==See also==
* {{ent|bot_hint_sentrygun}}
* {{ent|bot_hint_sentrygun}}
* [[Hint nodes]]
* [[Hint nodes]]

Latest revision as of 15:25, 25 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CTFBotHint
CBaseEntity
C++ tf_bot_hint.cpp

func_tfbot_hint is a brush entity available in Team Fortress 2 Team Fortress 2.

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

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

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.

See also