bot_roster

From Valve Developer Community
Revision as of 23:06, 20 April 2025 by Alexiscoutinho (talk | contribs) (→‎Inputs: Substituted IO templates)
Jump to navigation Jump to search

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

Icon-Important.pngImportant:This is a preserved entity in Team Fortress 2.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Entity description

Allows the mapper to control TFbot class selection.

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

Team (team) <choices>
Which team this roster is for.
  • auto : Any
  • red : Red Team
  • blue : Blue Team
Allow Class Changes (allowclasschanges) <boolean>
Determines if bots are allowed to change class
Allow Scout (allowscout) <boolean>
Determines if bots are allowed to change class to Scout
Allow Soldier (allowsoldier) <boolean>
Determines if bots are allowed to change class to Soldier
Allow Pyro (allowpyro) <boolean>
Determines if bots are allowed to change class to Pyro
Allow Demoman (allowdemoman) <boolean>
Determines if bots are allowed to change class to Demoman
Allow Heavy (allowheavy) <boolean>
Determines if bots are allowed to change class to Heavy
Allow Engineer (allowengineer) <boolean>
Determines if bots are allowed to change class to Engineer
Allow Medic (allowmedic) <boolean>
Determines if bots are allowed to change class to Medic
Allow Sniper (allowsniper) <boolean>
Determines if bots are allowed to change class to Sniper
Allow Spy (allowspy) <boolean>
Determines if bots are allowed to change class to Spy

Inputs

SetAllowScout <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Scout
SetAllowSniper <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Sniper
SetAllowSoldier <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Soldier
SetAllowDemoman <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Demoman
SetAllowMedic <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Medic
SetAllowHeavy <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Heavy
SetAllowPyro <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Pyro
SetAllowSpy <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Spy
SetAllowEngineer <booleanRedirectInput/boolean>
Sets if this roster should allow bots to change class to Engineer

Outputs