CDecalInstance
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 264 bytes (0x108)Alignment: 8 bytesModule: serverBinary: !GlobalTypes
Relationships
Inherits from: nothing; this is a root class.
Inheritance tree
- CDecalInstance
Relationship diagram (3 edges)
classDiagram
CDecalInstance *-- InfoForResourceTypeIMaterial2
CDecalInstance --> CBaseEntity
CDecalInstance *-- GameTime_tMemory layout
28 fields, 28 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.
CDecalInstance
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x0 | m_sDecalGroup | CGlobalSymbol | ||
0x8 | m_hMaterial | CStrongHandle< InfoForResourceTypeIMaterial2 > | ||
0x10 | m_sSequenceName | CUtlStringToken | ||
0x14 | m_hEntity | CHandle< CBaseEntity > | ||
0x18 | m_nBoneIndex | int32 | ||
0x1c | m_nTriangleIndex | int32 | ||
0x20 | m_vPositionLS | Vector | ||
0x2c | m_vPositionOS | Vector | ||
0x38 | m_vNormalLS | Vector | ||
0x44 | m_vNormalOS | Vector | ||
0x50 | m_vSAxisLS | Vector | ||
0x5c | m_nFlags | DecalFlags_t | ||
0x60 | m_Color | Color | ||
0x64 | m_flWidth | float32 | ||
0x68 | m_flHeight | float32 | ||
0x6c | m_flDepth | float32 | ||
0x70 | m_mTransform | matrix3x4_t | ||
0xa0 | m_mLocalToTriangle | matrix3x4_t | ||
0xd0 | m_flAnimationScale | float32 | ||
0xd4 | m_flAnimationStartTime | float32 | ||
0xd8 | m_flPlaceTime | GameTime_t | ||
0xdc | m_flFadeStartTime | float32 | ||
0xe0 | m_flFadeDuration | float32 | ||
0xe4 | m_flLightingOriginOffset | float32 | ||
0xf8 | m_flBoundingRadiusSqr | float32 | ||
0xfc | m_nSequenceIndex | int16 | MNotSaved | |
0xfe | m_bIsAdjacent | bool | MNotSaved | |
0xff | m_bDoDecalLightmapping | bool |
KV3 class defaults
{
"m_sDecalGroup": "",
"m_hMaterial": "",
"m_sSequenceName": "",
"m_hEntity": null,
"m_nBoneIndex": -1,
"m_nTriangleIndex": -1,
"m_vPositionLS":
[
0.000000,
0.000000,
0.000000
],
"m_vPositionOS":
[
0.000000,
0.000000,
0.000000
],
"m_vNormalLS":
[
0.000000,
0.000000,
0.000000
],
"m_vNormalOS":
[
0.000000,
0.000000,
0.000000
],
"m_vSAxisLS":
[
340282346638528859811704183484516925440.000000,
340282346638528859811704183484516925440.000000,
340282346638528859811704183484516925440.000000
],
"m_nFlags": "",
"m_Color":
[
0,
0,
0,
0
],
"m_flWidth": 0.000000,
"m_flHeight": 0.000000,
"m_flDepth": 0.000000,
"m_mTransform":
[
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
0.000000
],
"m_mLocalToTriangle":
[
1.000000,
0.000000,
0.000000,
0.000000,
0.000000,
1.000000,
0.000000,
0.000000,
0.000000,
0.000000,
1.000000,
0.000000
],
"m_flAnimationScale": 0.000000,
"m_flAnimationStartTime": 0.000000,
"m_flPlaceTime": null,
"m_flFadeStartTime": 0.000000,
"m_flFadeDuration": 0.000000,
"m_flLightingOriginOffset": 0.000000,
"m_flBoundingRadiusSqr": 0.000000,
"m_bDoDecalLightmapping": false
}