tf_bot

From Valve Developer Community
< User:Orinuse
Revision as of 06:41, 19 August 2021 by Orinuse (talk | contribs)
Jump to navigation Jump to search

This is an user page.

Not to be confused with User:Orinuse/sandbox/TFBot_Technicialities.


Team Fortress 2 tf_bot is a point entity available in Team Fortress 2 Team Fortress 2. A NextBot entity that acts like a player entity; They represent the bots in Team Fortress 2, which are officially automatically used in the Training and Mann Vs. Machine modes. Outside of these modes, creation of this entity should be done with the tf_bot_add command.

Icon-Bug.pngBug:Creating the entity through ent_create will crash the game.  [todo tested in ?]
C++ In code, it is represented by theCTFBotclass, defined in thetf_bot.cppfile.

Keyvalues

TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD
Todo: Move most of the niche keys in Template:KV BaseAnimating to a new page
Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history


Inputs

IgnitePlayer <integer>
Team Fortress 2 Ignites the entity with a specified lifetime and causes a reaction (sound and speech).
ExtinguishPlayer
Team Fortress 2 Extinguishes the entity.
BleedPlayer <integer>
Team Fortress 2 Bleeds the entity with a specified length.
RollRareSpell
Team Fortress 2 Forces the entity to roll a rare spell. Only available if spells are enabled on the map.
SetCustomModel <string>
Team Fortress 2 Set a custom entity model without animations.
SetCustomModelOffset <vector>
Team Fortress 2 Set a custom model position on the entity.
SetCustomModelRotation <vector>
Team Fortress 2 Set a custom model rotation on the entity.
ClearCustomModelRotation
Team Fortress 2 Clears the custom model rotation.
SetCustomModelRotates <boolean>
Team Fortress 2 Set if the custom model rotates or not to the entity's angles.
SetCustomModelVisibleToSelf <boolean>
Team Fortress 2 Set if the custom model is visible to the entity, in thirdperson.
SetForcedTauntCam <boolean>
Team Fortress 2 Forces the player into thirdperson mode.
SpeakResponseConcept <string>
Team Fortress 2 Forces the player to speak the specified response concept, an example being halloweenlongfall.
TriggerLootIslandAchievement
Team Fortress 2 [Todo].
TriggerLootIslandAchievement2
Team Fortress 2 [Todo].
RoundSpawn
Team Fortress 2 [Todo].
SetTeam <integer>
Changes the entity's team.

CBaseCombatCharacter:

KilledNPC  !FGD
Tells the entity it killed something. Despite the name, this can include a player. This input will be automatically sent by the victim when they die.
physdamagescale <float>
Scales damage energy when this character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history


Outputs

Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history


See Also