Bot generator: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added link to bot_action_point entity page)
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 2: Line 2:
* Explain Keyvalues, Inputs, and Outputs}}
* Explain Keyvalues, Inputs, and Outputs}}


{{tf2 point|bot_generator}}
{{this is a|e0|game=tf2|name=bot_generator}}


==Entity description==
==Entity description==

Revision as of 08:59, 7 January 2024

Stub

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

bot_generator is an e0 available in Team Fortress 2 Team Fortress 2.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{tf2}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Team Fortress 2.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

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 bot_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