Bot roster: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (add PreservedEnt)
(add missing internal names, removed SetTeam since thats in bot_proxy not bot_roster)
Line 3: Line 3:


==Entity description==
==Entity description==
Allows the mapper to control bot class selection.
Allows the mapper to control TFbot class selection.


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Team|choices|Which team this roster is for.}}
{{KV|Team|intn=team|choices|Which team this roster is for.}}
{{KV|Allow Class Changes|boolean|Determines if bots are allowed to change class}}
:* auto : Any
{{KV|Allow Scout|boolean|Determines if bots are allowed to change class to Scout}}
:* red : Red Team
{{KV|Allow Soldier|boolean|Determines if bots are allowed to change class to Soldier}}
:* blue : Blue Team
{{KV|Allow Pyro|boolean|Determines if bots are allowed to change class to Pyro}}
{{KV|Allow Class Changes|intn=allowclasschanges|boolean|Determines if bots are allowed to change class}}
{{KV|Allow Demoman|boolean|Determines if bots are allowed to change class to Demoman}}
{{KV|Allow Scout|intn=allowscout|boolean|Determines if bots are allowed to change class to Scout}}
{{KV|Allow Heavy|boolean|Determines if bots are allowed to change class to Heavy}}
{{KV|Allow Soldier|intn=allowsoldier|boolean|Determines if bots are allowed to change class to Soldier}}
{{KV|Allow Engineer|boolean|Determines if bots are allowed to change class to Engineer}}
{{KV|Allow Pyro|intn=allowpyro|boolean|Determines if bots are allowed to change class to Pyro}}
{{KV|Allow Medic|boolean|Determines if bots are allowed to change class to Medic}}
{{KV|Allow Demoman|intn=allowdemoman|boolean|Determines if bots are allowed to change class to Demoman}}
{{KV|Allow Sniper|boolean|Determines if bots are allowed to change class to Sniper}}
{{KV|Allow Heavy|intn=allowheavy|boolean|Determines if bots are allowed to change class to Heavy}}
{{KV|Allow Spy|boolean|Determines if bots are allowed to change class to Spy}}
{{KV|Allow Engineer|intn=allowengineer|boolean|Determines if bots are allowed to change class to Engineer}}
{{KV|Allow Medic|intn=allowmedic|boolean|Determines if bots are allowed to change class to Medic}}
{{KV|Allow Sniper|intn=allowsniper|boolean|Determines if bots are allowed to change class to Sniper}}
{{KV|Allow Spy|intn=allowspy|boolean|Determines if bots are allowed to change class to Spy}}


==Inputs==
==Inputs==
{{I Targetname}}
{{I Targetname}}
{{IO|SetTeam|param=string|Sets the team this roster should affect}}
{{IO|SetAllowScout|param=bool|Sets if this roster should allow bots to change class to Scout}}
{{IO|SetAllowScout|param=integer|Sets if this roster should allow bots to change class to Scout}}
{{IO|SetAllowSniper|param=bool|Sets if this roster should allow bots to change class to Sniper}}
{{IO|SetAllowSniper|param=integer|Sets if this roster should allow bots to change class to Sniper}}
{{IO|SetAllowSoldier|param=bool|Sets if this roster should allow bots to change class to Soldier}}
{{IO|SetAllowSoldier|param=integer|Sets if this roster should allow bots to change class to Soldier}}
{{IO|SetAllowDemoman|param=bool|Sets if this roster should allow bots to change class to Demoman}}
{{IO|SetAllowDemoman|param=integer|Sets if this roster should allow bots to change class to Demoman}}
{{IO|SetAllowMedic|param=bool|Sets if this roster should allow bots to change class to Medic}}
{{IO|SetAllowMedic|param=integer|Sets if this roster should allow bots to change class to Medic}}
{{IO|SetAllowHeavy|param=bool|Sets if this roster should allow bots to change class to Heavy}}
{{IO|SetAllowHeavy|param=integer|Sets if this roster should allow bots to change class to Heavy}}
{{IO|SetAllowPyro|param=bool|Sets if this roster should allow bots to change class to Pyro}}
{{IO|SetAllowPyro|param=integer|Sets if this roster should allow bots to change class to Pyro}}
{{IO|SetAllowSpy|param=bool|Sets if this roster should allow bots to change class to Spy}}
{{IO|SetAllowSpy|param=integer|Sets if this roster should allow bots to change class to Spy}}
{{IO|SetAllowEngineer|param=bool|Sets if this roster should allow bots to change class to Engineer}}
{{IO|SetAllowEngineer|param=integer|Sets if this roster should allow bots to change class to Engineer}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O Targetname}}

Revision as of 08:17, 18 December 2024

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