CTFBaseBoss: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| No edit summary | No edit summary | ||
| Line 1: | Line 1: | ||
| == Overview == | == Overview == | ||
| The base class for "bosses" | The base class for "bosses" (currently only [[CTFTankBoss]] inherits from it). | ||
| Can be used to create custom NextBots with VScript | |||
| '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/tf/player_vs_environment/tf_base_boss.h /game/server/tf/player_vs_environment/tf_base_boss.h]''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/tf/player_vs_environment/tf_base_boss.h /game/server/tf/player_vs_environment/tf_base_boss.h]''' | ||
Latest revision as of 12:50, 17 September 2023
Overview
The base class for "bosses" (currently only CTFTankBoss inherits from it).
Can be used to create custom NextBots with VScript
Source location : /game/server/tf/player_vs_environment/tf_base_boss.h
Linked entity : base_boss
Class Structure
SendProps
| Name | Type | Description | 
|---|---|---|
| m_lastHealthPercentage | Float | The health percentage for this entity. This value can go above 1, meaning it has greater than 100% of it's initial health | 
Entity DataMaps
| Name | Type | Description | 
|---|---|---|
| CTFBaseBossBossThink | ||
| InputAddHealth | ||
| InputDisable | ||
| InputEnable | ||
| InputRemoveHealth | ||
| InputSetHealth | ||
| InputSetMaxHealth | ||
| InputSetSpeed | ||
| m_initialHealth | Integer | The initial health this entity spawned with | 
| m_modelString | ||
| m_outputOnHealthBelow10Percent | ||
| m_outputOnHealthBelow20Percent | ||
| m_outputOnHealthBelow30Percent | ||
| m_outputOnHealthBelow40Percent | ||
| m_outputOnHealthBelow50Percent | ||
| m_outputOnHealthBelow60Percent | ||
| m_outputOnHealthBelow70Percent | ||
| m_outputOnHealthBelow80Percent | ||
| m_outputOnHealthBelow90Percent | ||
| m_outputOnKilled | ||
| m_speed | Integer | The speed of this entity | 
| m_startDisabled | Boolean | Whether or not this entity spawns disabled |