Bot generator: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added missing stuff)
(new inputs available. bots can target things and are sometimes unpleasant.)
Line 25: Line 25:


==Inputs==
==Inputs==
{{I Targetname}}
{{IO|Targetname}}
{{I Angles}}
{{IO|Angles}}
{{IO|Enable}}
{{IO|Enable}}
{{IO|Disable}}
{{IO|Disable}}
{{IO|CommandGoToActionPoint nameof [[bot_action_point]]}}
{{IO|ClearAttentionFocus}}
{{IO|SetAttentionFocus nameoftarget}}
{{IO|SetSuppressFire|param=integer}}
{{IO|SetSuppressFire|param=integer}}
{{IO|SetDisableDodge|param=integer}}
{{IO|SetDisableDodge|param=integer}}
{{IO|SetDifficulty|param=integer}}
{{IO|SetDifficulty|param=integer}}
{{IO|SetTeam}}
{{IO|SetParent}}


==Outputs==
==Outputs==

Revision as of 02:17, 25 January 2021

Team Fortress 2 bot_generator is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

Controls the creation of bots.

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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Team ([todo internal name (i)]) <choices>
Which team this generator is for.
Class ([todo internal name (i)]) <choices>
Pick the class to spawn. Picking a specifc class with override bot_roster restrictions.
Spawn Command ([todo internal name (i)]) <choices>
Command the bot should execute upon spawning.
Retain Action On Death ([todo internal name (i)]) <boolean>
If Yes, all bots will be told to perform the spawn command. If No, only the first will.
Action Point ([todo internal name (i)]) <targetname>
Set this to have the bot travel to a specific action point upon spawning if the proper Spawn Command to be set.
Spawn Count (<1 = infinite) ([todo internal name (i)]) <integer>
The maximum number of bots to spawn from this generator.
Spawn Interval ([todo internal name (i)]) <integer>
Number of seconds between bots spawning from this generator.
Max Active ([todo internal name (i)]) <integer>
Maxmimum number of bots from this generator that can be active at once.
Disable Dodging ([todo internal name (i)]) <boolean>
Setting this to Yes prevent the bots from making erratic movements in an effort to dodge.
Suppress Fire ([todo internal name (i)]) <boolean>
Setting this to Yes will make the bots not attack.
Use Spawn Point ([todo internal name (i)]) <boolean>
Setting this to Yes will make the bots spawn from an info_player_teamspawn instead of this generator.
Difficulty ([todo internal name (i)]) <choices>
I think these are correct, but I am not sure, you can leave this blank. - ABS
  • 0 : Easy
  • 1 : Normal
  • 2 : Hard
  • 3 : Expert

Inputs

Targetname
Angles
Enable
Disable


CommandGoToActionPoint nameof bot_action_point
ClearAttentionFocus
SetAttentionFocus nameoftarget


SetSuppressFire <integerRedirectInput/integer>
SetDisableDodge <integerRedirectInput/integer>
SetDifficulty <integerRedirectInput/integer>
SetTeam
SetParent

Outputs

OnSpawned
OnExpended