CBaseObject: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
(documentation for some sendprops)
Line 65: Line 65:
|'''m_hBuiltOnEntity'''
|'''m_hBuiltOnEntity'''
|Integer
|Integer
|
|Building being sapped by sapper
|-
|-
|'''m_bDisabled'''
|'''m_bDisabled'''
Line 73: Line 73:
|'''m_hBuilder'''
|'''m_hBuilder'''
|Integer
|Integer
|
|Building owner player, take credits for actions performed by building such as sentry kills
|-
|-
|'''m_vecBuildMaxs'''
|'''m_vecBuildMaxs'''
Line 105: Line 105:
|'''m_iHighestUpgradeLevel'''
|'''m_iHighestUpgradeLevel'''
|Integer
|Integer
|
|Current level, can be set to change sentry level with animation
|-
|-
|'''m_iObjectMode'''
|'''m_iObjectMode'''

Revision as of 14:52, 9 June 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
m_iMaxHealth Integer
m_bHasSapper Boolean
m_iObjectType Integer
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