Bot roster: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{tf2 point|bot_roster}} ==Entity description== Determines the classes bots are allowed to use. ==Keyvalues== {{KV Targetname}} {{KV|Team|choices|Which team this roster is for.…')
 
mNo edit summary
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{tf2 point|bot_roster}}
{{Preserved entity|all}}
{{This is a|point entity|game=Team Fortress 2|name=bot_roster}} Allows the mapper to control TFbot class selection.


==Entity description==
== Keyvalues ==
Determines the classes bots are allowed to use.
 
==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}}
:* auto : Any
{{KV|Allow Scout|boolean}}
:* red : Red Team
{{KV|Allow Soldier|boolean}}
:* blue : Blue Team
{{KV|Allow Pyro|boolean}}
{{KV|Allow Class Changes|intn=allowclasschanges|boolean|Determines if bots are allowed to change class}}
{{KV|Allow Demoman|boolean}}
{{KV|Allow Scout|intn=allowscout|boolean|Determines if bots are allowed to change class to Scout}}
{{KV|Allow Heavy|boolean}}
{{KV|Allow Soldier|intn=allowsoldier|boolean|Determines if bots are allowed to change class to Soldier}}
{{KV|Allow Engineer|boolean}}
{{KV|Allow Pyro|intn=allowpyro|boolean|Determines if bots are allowed to change class to Pyro}}
{{KV|Allow Medic|boolean}}
{{KV|Allow Demoman|intn=allowdemoman|boolean|Determines if bots are allowed to change class to Demoman}}
{{KV|Allow Sniper|boolean}}
{{KV|Allow Heavy|intn=allowheavy|boolean|Determines if bots are allowed to change class to Heavy}}
{{KV|Allow Spy|boolean}}
{{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}}
==Inputs==
{{KV|Allow Sniper|intn=allowsniper|boolean|Determines if bots are allowed to change class to Sniper}}
{{I Targetname}}
{{KV|Allow Spy|intn=allowspy|boolean|Determines if bots are allowed to change class to Spy}}
{{IO|SetTeam|param=string}}
{{IO|SetAllowScout|param=integer}}
{{IO|SetAllowSniper|param=integer}}
{{IO|SetAllowSoldier|param=integer}}
{{IO|SetAllowDemoman|param=integer}}
{{IO|SetAllowMedic|param=integer}}
{{IO|SetAllowHeavy|param=integer}}
{{IO|SetAllowPyro|param=integer}}
{{IO|SetAllowSpy|param=integer}}
{{IO|SetAllowEngineer|param=integer}}


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

Latest revision as of 08:16, 12 May 2025

Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.

bot_roster is a point entity available in Team Fortress 2 Team Fortress 2. 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