Bot roster: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (add PreservedEnt)
Line 1: Line 1:
{{this is a|point entity|game=Team Fortress 2|name=bot_roster}}
{{this is a|point entity|game=Team Fortress 2|name=bot_roster}}
{{PreservedEnt|bot_roster}}


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

Revision as of 07:59, 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 bot 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 ([todo internal name (i)]) <choices>
Which team this roster is for.
Allow Class Changes ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class
Allow Scout ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Scout
Allow Soldier ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Soldier
Allow Pyro ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Pyro
Allow Demoman ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Demoman
Allow Heavy ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Heavy
Allow Engineer ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Engineer
Allow Medic ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Medic
Allow Sniper ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Sniper
Allow Spy ([todo internal name (i)]) <boolean>
Determines if bots are allowed to change class to Spy

Inputs

SetTeam <stringRedirectInput/string>
Sets the team this roster should affect
SetAllowScout <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Scout
SetAllowSniper <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Sniper
SetAllowSoldier <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Soldier
SetAllowDemoman <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Demoman
SetAllowMedic <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Medic
SetAllowHeavy <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Heavy
SetAllowPyro <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Pyro
SetAllowSpy <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Spy
SetAllowEngineer <integerRedirectInput/integer>
Sets if this roster should allow bots to change class to Engineer

Outputs