- Dota 2
- server
- CBaseEntity
- CBaseModelEntity
- Inherits
- CBaseEntityCEntityInstance
- Derived classes
- CBaseAnimGraphCBaseAnimatingActivityCBaseClientUIEntityCBaseToggleCBeamCBreakableCDynamicLightCEntityBlocker
- Used by fields
- ActiveModelConfig_tm_AssociatedEntitiesCAI_Expresserm_pOuterCChoreoComponentm_hOwnerCDestructiblePartsComponentm_hOwnerCGameChoreoServicesm_hOwnerCInfoOffscreenPanoramaTexturem_TargetEntitiesCInfoOffscreenPanoramaTexturem_AdditionalTargetEntitiesCSceneEntitym_hActorList
- Network
- Network classClass id 6 of 3276, sent in 12 bits
- Also in
- clientCounter-Strike 2differsDeadlockdiffersHalf-Life: Alyxdiffers
Fields
NameTypeOffset
type alias CDestructiblePartsSystemComponent*
on change OnRenderAttributesChanged
uint32[1]
on change OnDisabledHitgroupsChanged
MKV3TransferSaveOpsForField: "GetHitgroupDisableListSaveRestoreOps"
basemodelentityspawnable
Keyvalues
Inputs
NamePulseDescription
Alpha(param: int)
—
Color(color: color_rgb)
Set the render color (R G B).
DestructibleHitGroupDestroy(nHitGroup: enum<HitGroup_t>, nDamageLevel: int)
Destroy a destructible hit group. Damage level of -1 means all damage levels, otherwise specify the last one you want to blow up.
—
GetAliveDestructibleHitGroups() → (retval: array<enum<HitGroup_t>>)
Returns the destructible hit groups that still have a damage level standing.
GetDestructibleHitGroupDamageLevel(nHitGroup: enum<HitGroup_t>) → (retval: int)
The last damage level destroyed, numbered from 0 like DestructibleHitGroupDestroy; -1 if none is destroyed yet. Warns and returns -1 if the hit group is not destructible.
GetDestructibleHitGroupDamageLevelCount(nHitGroup: enum<HitGroup_t>) → (retval: int)
How many damage levels the hit group has; loop from 0 until this to visit each level. Warns and returns 0 if the hit group is not destructible.
GetJointLimitAngles(pJointName: string) → (retval: bool, MinAngle: float, MaxAngle: float)
Returns the joint limit angles.
GetUndamagedDestructibleHitGroups() → (retval: array<enum<HitGroup_t>>)
Returns the destructible hit groups that are at full health.
Ignite()
—
IgniteHitboxFireScale(param: float)
—
IgniteLifetime(param: float)
—
IgniteNumHitboxFires(param: int)
—
IsDestructibleHitGroupAlive(nHitGroup: enum<HitGroup_t>) → (retval: bool)
True if the hit group still has a damage level standing. Warns and returns false if the hit group is not destructible.
IsDestructibleHitGroupUndamaged(nHitGroup: enum<HitGroup_t>) → (retval: bool)
True if the hit group is at full health. Warns and returns false if the hit group is not destructible.
SetBodyGroupValue(pBodyGroupName: string, iValue: int)
Change the active choice for the named bodygroup to the specified value
SetJointLimitAngles(pJointName: string, flMinAngle: float, flMaxAngle: float)
Sets the joint limit angles. Only valid for prismatic and revolute joints.
SetJointLimitEnabled(pJointName: string, bEnabled: bool)
Enables/disables the joint limit. Only valid for prismatic and revolute joints.
SetRenderAttribute(pValue: string)
—
SetRenderAttribute4Floats(pAttributeName: string, flX: float, flY: float, flZ: float, flW: float)
Set the specified render attribute value
SetRenderAttributeFloat(pAttributeName: string, flValue: float)
Set the specified render attribute value
SetRenderAttributeVector(pAttributeName: string, vValue: vec3)
Set the specified render attribute value
Skin(param: int)
—
fademaxdist(param: float)
—
fademindist(param: float)
—
Outputs
NameDescription
OnDestructibleHitGroupDamageLevelChanged(nHitGroup: enum<HitGroup_t>, nDamageLevel: int, nDamageLevelsRemaining: int, nPrevDamageLevel: int)
Called when the damage level of destructible part for a particular hit group has been changed.
OnIgnite()
—