Entity systemClasses
CBaseModelEntity
Schema class CBaseModelEntity, derived from CBaseEntity.
Generated from the game's schema. Header: source2mod/schema/entity/classes/CBaseModelEntity.h
Inherits CBaseEntity
Fields
| Field | Type |
|---|---|
m_CRenderComponent | CRenderComponent* |
m_CHitboxComponent | CHitboxComponent |
m_pChoreoComponent | CChoreoComponent* |
m_nDestructiblePartInitialStateDestructed0 | HitGroup_t |
m_nDestructiblePartInitialStateDestructed1 | HitGroup_t |
m_nDestructiblePartInitialStateDestructed2 | HitGroup_t |
m_nDestructiblePartInitialStateDestructed3 | HitGroup_t |
m_nDestructiblePartInitialStateDestructed4 | HitGroup_t |
m_nDestructiblePartInitialStateDestructed0_PartIndex | int32_t |
m_nDestructiblePartInitialStateDestructed1_PartIndex | int32_t |
m_nDestructiblePartInitialStateDestructed2_PartIndex | int32_t |
m_nDestructiblePartInitialStateDestructed3_PartIndex | int32_t |
m_nDestructiblePartInitialStateDestructed4_PartIndex | int32_t |
m_bDestructiblePartInitialStateDestructed0_GenerateBreakpieces | bool |
m_bDestructiblePartInitialStateDestructed1_GenerateBreakpieces | bool |
m_bDestructiblePartInitialStateDestructed2_GenerateBreakpieces | bool |
m_bDestructiblePartInitialStateDestructed3_GenerateBreakpieces | bool |
m_bDestructiblePartInitialStateDestructed4_GenerateBreakpieces | bool |
m_pDestructiblePartsSystemComponent | CDestructiblePartsComponent* |
m_flDissolveStartTime | float |
m_OnIgnite | CEntityIOOutput |
m_nRenderMode | RenderMode_t |
m_nRenderFX | RenderFx_t |
m_bAllowFadeInView | bool |
m_clrRender | Color |
m_vecRenderAttributes | CUtlVector<EntityRenderAttribute_t> |
m_bRenderToCubemaps | bool |
m_bExpandRenderBoundsToIncludeCloth | bool |
m_bNoInterpolate | bool |
m_Collision | CCollisionProperty |
m_Glow | CGlowProperty |
m_flGlowBackfaceMult | float |
m_fadeMinDist | float |
m_fadeMaxDist | float |
m_flFadeScale | float |
m_flShadowStrength | float |
m_nObjectCulling | uint8_t |
m_bodyGroupTotalRequestCount | uint32_t |
m_bodyGroupRequests | CUtlVector<CBaseModelEntity__BodyGroupRequest_t> |
m_vecViewOffset | CNetworkViewOffsetVector |
m_bvDisabledHitGroups | uint32_t |
Schema fields are accessors: read with entity->m_field(), write with entity->m_field = value (the write marks the field for networking).
Methods
GetModelName
CUtlSymbolLarge GetModelName();Get model name.
GetEyePosition
Vector GetEyePosition();Get eye position.
SetModel
void SetModel(const char* pszModel, HookChain eChain = HookChain::Run);Set entity model.
| Parameter | Type | Default |
|---|---|---|
pszModel | const char* | |
eChain | HookChain | HookChain::Run |
SetBodyGroup
void SetBodyGroup(const char* pszName, int nValue);Switch a bodygroup on the model.
| Parameter | Type |
|---|---|
pszName | const char* |
nValue | int |