Bot generator: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 44: Line 44:
{{IO|OnSpawned}}
{{IO|OnSpawned}}
{{IO|OnExpended}}
{{IO|OnExpended}}
{{O BasEntity}}
{{O BaseEntity}}

Revision as of 14:51, 8 November 2021

Stub

This article or section is a stub. You can help by expanding it.

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

Entity description

bot_generator generates bots.

Keyvalues

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>
Set the generated bots' difficulty to this value.
  • 0 : Easy
  • 1 : Normal
  • 2 : Hard
  • 3 : Expert


Inputs

CommandGoToActionPoint nameof bot_action_point
ClearAttentionFocus
SetAttentionFocus nameoftarget


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


Outputs

OnSpawned
OnExpended