source-2-wiki

Unofficial Source 2 Wiki

View on GitHub

CBaseModelEntity

Methods

SetMaterialGroupHash

void SetMaterialGroupHash(unsigned nHash)
SetMaterialGroupHash( uint32 ): Set the material group hash of this entity.

SetSingleMeshGroup

void SetSingleMeshGroup(string pMeshGroupName)
SetSingleMeshGroup( string ): Set a single mesh group for this entity.

SetRenderMode

void SetRenderMode(int nMode)
SetRenderMode( int ): Sets the render mode of the entity.

SetSize

void SetSize(Vector mins, Vector maxs)


SetMaterialGroupMask

void SetMaterialGroupMask(uint64 nMeshGroupMask)
SetMaterialGroupMask( uint64 ): Set the mesh group mask of this entity.

SetSkin

void SetSkin(int iSkin)
Set skin (int).

GetMaterialGroupMask

uint64 GetMaterialGroupMask()
GetMaterialGroupMask(): Get the mesh group mask of this entity.

SetModel

void SetModel(string pModelName)


SetBodygroupByName

void SetBodygroupByName(string pName, int iValue)
Sets a bodygroup by name.

GetRenderColor

Vector GetRenderColor()
GetRenderColor(): Get the render color of the entity.

SetLightGroup

void SetLightGroup(string pLightGroup)
SetLightGroup( string ): Sets the light group of the entity.

SetMaterialGroup

void SetMaterialGroup(string pMaterialGroup)
SetMaterialGroup( string ): Set the material group of this entity.

SetRenderColor

void SetRenderColor(int r, int g, int b)
SetRenderColor( r, g, b ): Sets the render color of the entity.

GetMaterialGroupHash

unsigned GetMaterialGroupHash()
GetMaterialGroupHash(): Get the material group hash of this entity.

GetRenderAlpha

int GetRenderAlpha()
GetRenderAlpha(): Get the alpha modulation of this entity.

SetRenderAlpha

void SetRenderAlpha(int nAlpha)
SetRenderAlpha( int ): Set the alpha modulation of this entity.

SetBodygroup

void SetBodygroup(int iGroup, int iValue)
Sets a bodygroup.