> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "CDestructiblePart_DamageLevel"
navbar: dynamic
asidebar: hide
---
# CDestructiblePart\_DamageLevel

Schema class in module `server`.

## Summary

- Kind: `class`
- Module: `server`
- Size: `72 (0x48)`
- Size bytes: `72`
- Parent: `value.DeclaredClass`
- Inherited fields: `0`
- Product: Counter-Strike 2

## Inheritance

- [value.DeclaredClass](/cs2/api_reference/engine/value#valuedeclaredclass) (class)

## Own Fields

| Field | Type | Offset | Bits | Default | Metadata |
| --- | --- | --- | --- | --- | --- |
| `m_sName` | [string](/cs2/api_reference/lua/base#string) | 0 (0x00) | - | - | `MPropertyDescription`: "Name for this damage level.  Presently only used for debugging/display - one day may be used in code to allow destroying by name." |
| `m_sBreakablePieceName` | [string](/cs2/api_reference/lua/base#string) | 8 (0x08) | - | - | `MPropertyStartGroup`: "+Model Setup"<br />`MPropertyDescription`: "Name of the breakable to trigger breaking on when health reaches zero."<br />`MPropertyAttributeEditor`: "ModelDocPicker( MODELDOC\_PICK\_TYPE\_BREAKPIECE )" |
| `m_nBodyGroupValue` | [number](/cs2/api_reference/lua/base#number) | 16 (0x10) | - | - | `MPropertyDescription`: "Value to set for the body group when the damage level is broken." |
| `m_nHealth` | [value.FixedArray](/cs2/api_reference/engine/value#valuefixedarray)&lt;[number](/cs2/api_reference/lua/base#number), 4&gt; | 20 (0x14) | - | - | `MPropertyStartGroup`: "+Damage"<br />`MPropertyDescription`: "Total health of this damage level. When it reaches 0, the damage level is 'broken' using the breakable prop system."<br />`MPropertySuppressExpr`: "m\_nDamagePassthroughType == InvincibleAbsorb \|\| m\_nDamagePassthroughType == InvinciblePassthrough" |
| `m_flCriticalDamagePercent` | [number](/cs2/api_reference/lua/base#number) | 36 (0x24) | - | - | `MPropertyDescription`: "% chance (0-1) of dealing 'critical' damage, which destroys this damage level, regardless of damage pass through type." |
| `m_nDamagePassthroughType` | [EDestructiblePartDamagePassThroughType](/cs2/dumped_data/schema/server/EDestructiblePartDamagePassThroughType) | 40 (0x28) | - | - | `MPropertyDescription`: "How damage to this damage level is handled." |
| `m_nDestructionDeathBehavior` | [DestructiblePartDestructionDeathBehavior\_t](/cs2/dumped_data/schema/server/DestructiblePartDestructionDeathBehavior_t) | 44 (0x2C) | - | - | `MPropertyStartGroup`: "+Death"<br />`MPropertyDescription`: "Should the entity die when this damage level is destroyed?" |
| `m_sCustomDeathHandshake` | [string](/cs2/api_reference/lua/base#string) | 48 (0x30) | - | - | `MPropertyDescription`: "Custom death handshake to set when this damage level is destroyed."<br />`MPropertySuppressExpr`: "m\_nDestructionDeathBehavior == eDoNotKill" |
| `m_bShouldDestroyOnDeath` | [boolean](/cs2/api_reference/lua/base#boolean) | 56 (0x38) | - | - | `MPropertyDescription`: "Whether the damage level should be destroyed when the entity dies." |
| `m_flDeathDestroyTime` | [value.FixedArray](/cs2/api_reference/engine/value#valuefixedarray)&lt;[number](/cs2/api_reference/lua/base#number), 2&gt; | 60 (0x3C) | - | - | `MPropertyDescription`: "Time after death the damage level should be destroyed"<br />`MPropertySuppressExpr`: "m\_bShouldDestroyOnDeath == false" |

## Referenced By

| Name | Field | Module | Relation |
| --- | --- | --- | --- |
| [CDestructiblePart](/cs2/dumped_data/schema/server/CDestructiblePart) | `m_DamageLevels` | server | - |

