CBaseObject: Difference between revisions
No edit summary |
No edit summary |
||
Line 82: | Line 82: | ||
|'''m_fObjectFlags''' | |'''m_fObjectFlags''' | ||
|Integer | |Integer | ||
| | |Bit flags for this object | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
! colspan="1" |Values | ! colspan="1" |Values | ||
Line 106: | Line 106: | ||
|'''m_hBuiltOnEntity''' | |'''m_hBuiltOnEntity''' | ||
|Integer | |Integer | ||
| | |The building which this sapper object is sapping / targeting. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Usage | |||
|- | |||
| | |||
The sapper does not have to actually be applied to a building for this to have a value, along with the sapper being applied, a spy can hover over a building with their sapper and this value will fill with the handle for that building. | |||
|} | |||
|- | |- | ||
|'''m_bDisabled''' | |'''m_bDisabled''' |
Revision as of 23:33, 12 November 2022
Overview
The base class for place-able objects.
Source location : /game/shared/tf/baseobject_shared.h
Class Structure
SendProps
Name | Type | Description | ||
---|---|---|---|---|
m_iHealth | Integer | The current health of this object | ||
m_iMaxHealth | Integer | The maximum health this object can have in it's current state | ||
m_bHasSapper | Boolean | Whether or not this object has a sapper on it | ||
m_iObjectType | Integer | What type of object this entity is
| ||
m_bBuilding | Boolean | Whether or not this object is currently under construction | ||
m_bPlacing | Boolean | Whether or not this object is staged to be constructed / placed.
| ||
m_bCarried | Boolean | Whether or not an engineer is carrying this building after placing it | ||
m_bCarryDeploy | Boolean | |||
m_bMiniBuilding | Boolean | Whether or not this object is a mini building.
| ||
m_flPercentageConstructed | Float | The percentage value denoting how close this object is to finishing construction. (0 - 1, 1 being completely constructed) | ||
m_fObjectFlags | Integer | Bit flags for this object
| ||
m_hBuiltOnEntity | Integer | The building which this sapper object is sapping / targeting.
| ||
m_bDisabled | Boolean | |||
m_hBuilder | Integer | Building owner player, take credits for actions performed by building such as sentry kills | ||
m_vecBuildMaxs | Vector | |||
m_vecBuildMins | Vector | |||
m_iDesiredBuildRotations | Integer | |||
m_bServerOverridePlacement | Boolean | |||
m_iUpgradeLevel | Integer | |||
m_iUpgradeMetal | Integer | |||
m_iUpgradeMetalRequired | Integer | |||
m_iHighestUpgradeLevel | Integer | Current level, can be set to change sentry level with animation | ||
m_iObjectMode | Integer | |||
m_bDisposableBuilding | Boolean | |||
m_bWasMapPlaced | Boolean | |||
m_bPlasmaDisable | Boolean |
Entity DataMaps
Name | Type | Description |
---|---|---|
CBaseObjectUpgradeThink | ||
InputAddHealth | ||
InputDisable | ||
InputEnable | ||
InputHide | ||
InputRemoveHealth | ||
InputSetBuilder | ||
InputSetHealth | ||
InputSetSolidToPlayer | ||
InputShow | ||
m_OnBecomingDisabled | ||
m_OnBecomingReenabled | ||
m_OnDamaged | ||
m_OnDestroyed | ||
m_OnObjectHealthChanged | ||
m_OnRepaired | ||
m_SolidToPlayers | ||
m_nDefaultUpgradeLevel |