base_boss

From Valve Developer Community
Revision as of 22:30, 23 May 2021 by Amicdict (talk | contribs) (Created base_boss page. [Information from the 2018 source code leak of TF2 along with some testing. PLEASE FACT CHECK THIS PAGE!])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Team Fortress 2 base_boss is a point entity available in Team Fortress 2 Team Fortress 2. It is the base entity for tank_boss in Mann vs. Machine. This entity will destroy engineer buildings comes into collision with it.

C++ In code, it is represented by theCTFBaseBossclass, defined in thetf_base_boss.cppfile.

Keyvalues

health ([todo internal name (i)]) <integer>
Determines the initial health.
model ([todo internal name (i)]) <string>
Filepath to the model this entity will use.
speed ([todo internal name (i)]) <float>
The speed that this entity moves.
start_disabled ([todo internal name (i)]) <integer>
Start the entity disabled.
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

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.


Inputs

Enable
Enables the entity.
Disable
Disables the entity.
SetHealth <integerRedirectInput/integer>
Sets the entity's health to this value.
SetMaxHealth <integerRedirectInput/integer>
Sets the entity's maximum health to this value.
AddHealth <integerRedirectInput/integer>
Add this amount of health to the entity.
RemoveHealth <integerRedirectInput/integer>
Subtract this amount of health from the entity.
SetSpeed <integerRedirectInput/integer>
Sets this entity's speed to this value.


Outputs

OnHealthBelow90Percent to OnHealthBelow10Percent
Fires when the entity's health goes below X percent of its maximum health.
OnKilled
Fired when the entity is killed.