Base boss: Difference between revisions
Jump to navigation
Jump to search
(Added parentname inputs.) |
(Removed ParentName and TargetName cause... well it just looked off; Updated the description. (ill add KV BaseAnimating after I tidy that template up eventually)) |
||
Line 1: | Line 1: | ||
{{tf2 point|base_boss}} | {{tf2 point|base_boss}} Its the entity that the{{ent|tank_boss}}entity, seen in [https://wiki.teamfortress.com/wiki/Mann_vs._Machine Mann vs. Machine], uses as a base, and has most of its behavior originating from. Thus so, it shares many behavior found within the<code>tank_boss</code>entity. A few examples being: | ||
* Crushes engineer buildings that collides with it | |||
* TFBots treat this entity as an enemy | |||
* Drops currency pack on death | |||
* Plays sounds to a client when it gets damaged | |||
{{code class|CTFBaseBoss|tf_base_boss.cpp}} | By itself, it is static and does not perform anything. However, it is still of use in setting up a custom hitbox for any custom static NPC bosses | ||
{{code class|CTFBaseBoss|tf_base_boss.cpp}}. | |||
__TOC__ | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV|health|int|Determines the initial health.}} | {{KV|health|int|Determines the initial health.}} | ||
{{KV|model|string|Filepath to the model this entity will use.}} | {{KV|model|string|Filepath to the model this entity will use. Will use the model bounding box to determine its hitbox and collision}} | ||
{{KV|speed|float|The speed that this entity moves.}} | {{KV|speed|float|The speed that this entity moves.}} | ||
{{KV|start_disabled|int|Start the entity disabled.}} | {{KV|start_disabled|int|Start the entity disabled.}} | ||
{{KV BaseEntity|base=1}} | {{KV BaseEntity|base=1}} | ||
Line 20: | Line 25: | ||
{{IO|RemoveHealth|Subtract this amount of health from the entity.|param=int}} | {{IO|RemoveHealth|Subtract this amount of health from the entity.|param=int}} | ||
{{IO|SetSpeed|Sets this entity's speed to this value.|param=int}} | {{IO|SetSpeed|Sets this entity's speed to this value.|param=int}} | ||
{{I BaseEntity|base=1}} | {{I BaseEntity|base=1}} | ||
Line 28: | Line 31: | ||
{{IO|OnKilled|Fired when the entity is killed.}} | {{IO|OnKilled|Fired when the entity is killed.}} | ||
{{O BaseEntity|base=1}} | {{O BaseEntity|base=1}} | ||
<!-- Where do I fit this even --> | |||
==Trivia== | |||
* Initially, this entity was made for the ultimately scrapped PvE gamemode, [https://wiki.teamfortress.com/wiki/Raid Raid], and was to be featured more extensively with the mode's custom NPC bosses. |
Revision as of 05:17, 24 May 2021
base_boss
is a point entity available in Team Fortress 2. Its the entity that thetank_bossentity, seen in Mann vs. Machine, uses as a base, and has most of its behavior originating from. Thus so, it shares many behavior found within the
tank_boss
entity. A few examples being:
- Crushes engineer buildings that collides with it
- TFBots treat this entity as an enemy
- Drops currency pack on death
- Plays sounds to a client when it gets damaged
By itself, it is static and does not perform anything. However, it is still of use in setting up a custom hitbox for any custom static NPC bosses
.
Keyvalues
- model ([todo internal name (i)]) <string>
- Filepath to the model this entity will use. Will use the model bounding box to determine its hitbox and collision
Inputs
- Enable
- Enables the entity.
- Disable
- Disables the entity.
- SetHealth <integer >
- Sets the entity's health to this value.
- SetMaxHealth <integer >
- Sets the entity's maximum health to this value.
- AddHealth <integer >
- Add this amount of health to the entity.
- RemoveHealth <integer >
- Subtract this amount of health from the entity.
- SetSpeed <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.
Trivia
- Initially, this entity was made for the ultimately scrapped PvE gamemode, Raid, and was to be featured more extensively with the mode's custom NPC bosses.