bot_roster

From Valve Developer Community
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.
  • 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>
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 <boolean>
Sets if this roster should allow bots to change class to Scout
SetAllowSniper <boolean>
Sets if this roster should allow bots to change class to Sniper
SetAllowSoldier <boolean>
Sets if this roster should allow bots to change class to Soldier
SetAllowDemoman <boolean>
Sets if this roster should allow bots to change class to Demoman
SetAllowMedic <boolean>
Sets if this roster should allow bots to change class to Medic
SetAllowHeavy <boolean>
Sets if this roster should allow bots to change class to Heavy
SetAllowPyro <boolean>
Sets if this roster should allow bots to change class to Pyro
SetAllowSpy <boolean>
Sets if this roster should allow bots to change class to Spy
SetAllowEngineer <boolean>
Sets if this roster should allow bots to change class to Engineer

Outputs