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

FieldType
m_CRenderComponentCRenderComponent*
m_CHitboxComponentCHitboxComponent
m_pChoreoComponentCChoreoComponent*
m_nDestructiblePartInitialStateDestructed0HitGroup_t
m_nDestructiblePartInitialStateDestructed1HitGroup_t
m_nDestructiblePartInitialStateDestructed2HitGroup_t
m_nDestructiblePartInitialStateDestructed3HitGroup_t
m_nDestructiblePartInitialStateDestructed4HitGroup_t
m_nDestructiblePartInitialStateDestructed0_PartIndexint32_t
m_nDestructiblePartInitialStateDestructed1_PartIndexint32_t
m_nDestructiblePartInitialStateDestructed2_PartIndexint32_t
m_nDestructiblePartInitialStateDestructed3_PartIndexint32_t
m_nDestructiblePartInitialStateDestructed4_PartIndexint32_t
m_bDestructiblePartInitialStateDestructed0_GenerateBreakpiecesbool
m_bDestructiblePartInitialStateDestructed1_GenerateBreakpiecesbool
m_bDestructiblePartInitialStateDestructed2_GenerateBreakpiecesbool
m_bDestructiblePartInitialStateDestructed3_GenerateBreakpiecesbool
m_bDestructiblePartInitialStateDestructed4_GenerateBreakpiecesbool
m_pDestructiblePartsSystemComponentCDestructiblePartsComponent*
m_flDissolveStartTimefloat
m_OnIgniteCEntityIOOutput
m_nRenderModeRenderMode_t
m_nRenderFXRenderFx_t
m_bAllowFadeInViewbool
m_clrRenderColor
m_vecRenderAttributesCUtlVector<EntityRenderAttribute_t>
m_bRenderToCubemapsbool
m_bExpandRenderBoundsToIncludeClothbool
m_bNoInterpolatebool
m_CollisionCCollisionProperty
m_GlowCGlowProperty
m_flGlowBackfaceMultfloat
m_fadeMinDistfloat
m_fadeMaxDistfloat
m_flFadeScalefloat
m_flShadowStrengthfloat
m_nObjectCullinguint8_t
m_bodyGroupTotalRequestCountuint32_t
m_bodyGroupRequestsCUtlVector<CBaseModelEntity__BodyGroupRequest_t>
m_vecViewOffsetCNetworkViewOffsetVector
m_bvDisabledHitGroupsuint32_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.

ParameterTypeDefault
pszModelconst char*
eChainHookChainHookChain::Run

SetBodyGroup

void SetBodyGroup(const char* pszName, int nValue);

Switch a bodygroup on the model.

ParameterType
pszNameconst char*
nValueint

On this page