Type / to search schemas

CBaseModelEntity

basemodelentity2136 bytes (0x0858), align 8Source

Fields

NameTypeOffset
as CHitboxComponent::Storage_talias CHitboxComponentuser group CHitboxComponent
uint32[1]
MKV3TransferSaveOpsForField: "GetHitgroupDisableListSaveRestoreOps"

basemodelentityspawnable

Keyvalues

NameTypeField
network_quantized_vector
int32
procedural
procedural
procedural
procedural
procedural
float32
procedural

Inputs

NamePulseDescription
Alpha(param: int)
—
BreakJointByName(pJointName: string)
Destroy this joint by Name
ClearRenderAttribute(pAttributeName: string)
Clear the specified render attribute
Color(param: color_rgb)
—
DestructibleHitGroupDestroy(nHitGroup: enum<HitGroup_t>, nDamageLevel: int)
Destroy a destructible hit group. Damage level of -1 means all damage levels, otherwise specify the last one you want to blow up.
GetIntactDestructibleHitGroups() → (retval: array<enum<HitGroup_t>>)
Returns the destructible hitgroups that are still intact.
GetJointLimitAngles(pJointName: string) → (retval: bool, MinAngle: float, MaxAngle: float)
Returns the joint limit angles.
GetRenderAlpha() → (retval: int)
Get object render alpha (0-255)
GetRenderColor() → (retval: color_rgb)
Get object render color (Alpha is ignored)
—
IgniteHitboxFireScale(param: float)
—
IgniteLifetime(param: float)
—
—
IsDestructibleHitGroupIntact(nHitGroup: enum<HitGroup_t>) → (retval: bool)
True/False if hitgroup is intact. If hitgroup is not a destructible hitgroup you'll get a warning and it'll return false.
SetBodyGroupValue(pBodyGroupName: string, iValue: int)
Change the active choice for the named bodygroup to the specified value
SetJointLimitAngles(pJointName: string, flMinAngle: float, flMaxAngle: float)
Sets the joint limit angles. Only valid for prismatic and revolute joints.
SetJointLimitEnabled(pJointName: string, bEnabled: bool)
Enables/disables the joint limit. Only valid for prismatic and revolute joints.
SetMaterialGroup(pName: string)
Change the active materialgroup
SetModel(hModel: resource<vmdl>)
Change the current model
SetRenderAlpha(nAlpha: int)
Alpha 0-255
SetRenderAttribute(pValue: string)
—
SetRenderAttribute4Floats(pAttributeName: string, flX: float, flY: float, flZ: float, flW: float)
Set the specified render attribute value
SetRenderAttributeFloat(pAttributeName: string, flValue: float)
Set the specified render attribute value
SetRenderAttributeVector(pAttributeName: string, vValue: vec3)
Set the specified render attribute value
SetRenderColor(cColor: color_rgb)
Set object render color (Alpha is ignored)
Skin(param: int)
—
fademaxdist(param: float)
—
fademindist(param: float)
—

Outputs

NameDescription
OnDestructibleHitGroupDamageLevelChanged(nHitGroup: enum<HitGroup_t>, nDamageLevel: int, nDamageLevelsRemaining: int, nPrevDamageLevel: int)
Called when the damage level of destructible part for a particular hit group has been changed.