CBaseObject: Difference between revisions

From SigMod
Jump to navigation Jump to search
(documentation for some sendprops)
No edit summary
Line 21: Line 21:
|'''m_iHealth'''
|'''m_iHealth'''
|Integer
|Integer
|
|The current health of this object
|-
|-
|'''m_iMaxHealth'''
|'''m_iMaxHealth'''
|Integer
|Integer
|
|The maximum health this object can have in it's current state
|-
|-
|'''m_bHasSapper'''
|'''m_bHasSapper'''
|Boolean
|Boolean
|
|Whether or not this object has a sapper on it
|-
|-
|'''m_iObjectType'''
|'''m_iObjectType'''
|Integer
|Integer
|What type of object this entity is
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
! colspan="1" |Values
|-
|
|
* 0 - OBJ_DISPENSER
* 1 - OBJ_TELEPORTER
* 2 - OBJ_SENTRYGUN
* 3 - OBJ_ATTACHMENT_SAPPER
|}
|-
|-
|'''m_bBuilding'''
|'''m_bBuilding'''

Revision as of 21:59, 12 November 2022

Overview

The base class for place-able objects.

Source location : /game/shared/tf/baseobject_shared.h

Class Structure

SendProps

CBaseObject
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
Values
  • 0 - OBJ_DISPENSER
  • 1 - OBJ_TELEPORTER
  • 2 - OBJ_SENTRYGUN
  • 3 - OBJ_ATTACHMENT_SAPPER
m_bBuilding Boolean
m_bPlacing Boolean
m_bCarried Boolean
m_bCarryDeploy Boolean
m_bMiniBuilding Boolean
m_flPercentageConstructed Float
m_fObjectFlags Integer
m_hBuiltOnEntity Integer Building being sapped by sapper
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

CBaseObject
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