- Used by fields
- CDestructiblePartm_DamageLevels
- Also in
- Counter-Strike 2Dota 2
Fields
NameTypeOffset
MPropertyDescription: "Name for this damage level. Presently only used for debugging/display - one day may be used in code to allow destroying by name."
MPropertyDescription: "Name of the breakable to trigger breaking on when health reaches zero."
MPropertyAttributeEditor: "ModelDocPicker( MODELDOC_PICK_TYPE_BREAKPIECE )"
MPropertyStartGroup: "+Model Setup"
int32 = -1
MPropertyDescription: "Value to set for the body group when the damage level is broken."
CSkillInt = 1
MPropertyDescription: "Total health of this damage level. When it reaches 0, the damage level is 'broken' using the breakable prop system."
MPropertyStartGroup: "+Damage"
MPropertySuppressExpr: "m_nDamagePassthroughType == InvincibleAbsorb || m_nDamagePassthroughType == InvinciblePassthrough"
float32
MPropertyDescription: "% chance (0-1) of dealing 'critical' damage, which destroys this damage level, regardless of damage pass through type."
EDestructiblePartDamagePassThroughType = "Normal"
MPropertyDescription: "How damage to this damage level is handled."
DestructiblePartDestructionDeathBehavior_t = "eDoNotKill"
MPropertyDescription: "Should the entity die when this damage level is destroyed?"
MPropertyStartGroup: "+Death"
MPropertyDescription: "Custom death handshake to set when this damage level is destroyed."
MPropertySuppressExpr: "m_nDestructionDeathBehavior == eDoNotKill"
bool
MPropertyDescription: "Whether the damage level should be destroyed when the entity dies."
CRangeFloat = [0.1,1]
MPropertyDescription: "Time after death the damage level should be destroyed"
MPropertySuppressExpr: "m_bShouldDestroyOnDeath == false"