CPropPhysicsPaintable
GetPaint
Get the current paint type applied to the prop. Returns a value from the *_POWER enum.
GetPaintedSkin
Get the skin used when the prop is painted.
GetUnPaintedSkin
Get the skin used when the prop is not painted.
Inherited from CBaseAnimating
FindBodygroupByName
Find a bodygroup given its name, -1 if the bodygroup does not exist.
GetAttachmentAngles
Get world angles as a p,y,r vector for the specified attachment id.
GetAttachmentOrigin
Get world position for the specified attachement id.
GetBodygroup
Gets the current part of a bodygroup group.
GetBodygroupCount
Gets the number of parts in a bodygroup group.
GetBodygroupName
Returns the name of the bodygroup.
GetBodygroupPartName
Returns the bodygroup part name.
GetBoneCount
Returns the number of bones.
GetBonePosition
Returns the world origin of the bone.
GetBoneRotation
Returns the world rotation of the bone.
GetNumBodyGroups
Returns the number of bodygroup groups.
GetObjectScaleLevel
The scale size of the entity.
GetPlaybackRate
Returns the current playback rate
GetPoseParameter
Returns pose parameter value based on index.
GetPoseParameterMax
Returns the max value of the pose parameter.
GetPoseParameterMin
Returns the min value of the pose parameter.
GetSequence
Returns the current sequence.
GetSequenceActivityName
Returns the name of the sequence's activity.
GetSequenceCount
Returns the number of available sequences.
GetSequenceCycleRate
Gets the sequence cycle rate for the specified sequence.
GetSequenceDuration
Gets the sequence duration for the specified sequence.
GetSequenceName
Returns the name of the sequence, if it's valid.
GetSkin
Gets the current model skin index.
IsActivityFinished
Is the current activity finished?
IsSequenceFinished
Is the current sequence finished?
IsSequenceLooped
Returns if the specified sequence is looped or not.
IsValidSequence
Checks if the specified sequence is valid.
LookupActivity
Looks up an activity based on name.
LookupAttachment
Get the named attachement id, or -1 if not found.
LookupPoseParameter
Lookup a pose parameter based on its name. Returns -1 if not found
SetBodygroup
Changes a bodygroup group to a different part.
SetPlaybackRate
Sets the current playback rate
SetPoseParameter
Set pose parameter value based on index.
SetSequence
Sets the current sequence.
SetSkin
Sets the current model skin index.
sequence
Looks up a sequence based on name.
Inherited from CBaseEntity
ConnectOutput
Adds an I/O connection that will call the named function in this entity's scope when the specified output fires.
Destroy
Kill this entity.
DisconnectOutput
Removes the output created by ConnectOutput().
EmitSound
Plays a sound from this entity.
EyeAngles
Get eye pitch, yaw, roll as a vector.
EyeLocalAngles
Get eye local pitch, yaw, roll as a vector.
EyePosition
Get vector to eye position - absolute coords.
FirstMoveChild
Returns an arbitary 'first' child for this entity, or null if this entity has no children. Use NextMovePeer() to iterate through children.
GetAngles
Get entity pitch, yaw, roll as a vector.
GetAngularVelocity
Get the local angular velocity - returns a vector of pitch,yaw,roll.
GetBoundingMaxs
Get a vector containing max bounds in local scope.
GetBoundingMaxsOriented
Get a vector containing max bounds, centered on object, taking the object's orientation into account.
GetBoundingMins
Get a vector containing min bounds in local scape.
GetBoundingMinsOriented
Get a vector containing min bounds, centered on object, taking the object's orientation into account.
GetCenter
Get vector to center of object - absolute coords.
GetClassname
Get the classname for this entity.
GetCollisionGroup
Get the collision group, which will be a COLLISION_GROUP_* constant.
GetElasticity
Get the current elasticity value for this entity.
GetForwardVector
Get the forward vector of the entity.
GetFriction
Get the current friction for this entity.
GetGravity
Get the current gravity for this entity, vertically.
GetHealth
Return the current health of this entity.
GetKeyValueBool
Get a KeyValue on this entity as a bool.
GetKeyValueFloat
Get a KeyValue on this entity as a float.
GetKeyValueInt
Get a KeyValue on this entity as an integer.
GetKeyValueString
Get a KeyValue on this entity as a string.
GetLeftVector
Get the left vector of the entity.
GetMaxHealth
Return the current maximum health of this entity.
GetModelKeyValues
Returns access to the $keyvalues definition for this entity's model.
GetModelName
Returns the name of the model this entity is set to. For brush entities, this will be in the form '*123'.
GetMoveCollide
Returns the current move collision mode, which will be a MOVECOLLIDE_* constant.
GetMoveParent
If in hierarchy, retrieves the entity's parent.
GetMoveType
Returns the current move type, which will be a MOVETYPE_* constant.
GetName
Get the targetname of this entity.
GetNamespace
Get the namespace for this entity's classname.
GetOrigin
Get the absolute position of this entity.
GetOwner
Gets this entity's owner.
GetPreTemplateName
Get the targetname stripped of template unique decoration like name&0123.
GetRootMoveParent
If in hierarchy, walks up the hierarchy to find the root parent.
GetScriptId
Retrieve the unique identifier used to refer to the entity within the scripting system.
GetScriptScope
Retrieve the script-side data associated with an entity, or null if not created.
GetSoundDuration
Returns float duration of the sound. The optional actor model is used to resolve $gender variables.
GetTeam
Get this entity's team number.
GetUpVector
Get the up vector of the entity.
GetVelocity
Return this entity's absolute linear velocity.
IsBSPModel
Returns if this entity is a BSP model or not (i.e. func_brush).
IsFloating
Returns if this entity is floating in water or not.
NextMovePeer
Returns the 'next' sibling for this entity, or null if all siblings were returned. Calling this repeatedly on FirstMoveChild() will give all children in turn.
PrecacheModel
Ensure this model is loaded for later use. Should be called inside the Precache() method.
PrecacheScriptSound
Ensure this sound is loaded for later use. Should be called inside the Precache() method.
PrecacheSoundScript
Precache a game sound or raw sound for later playing.
SetAbsOrigin
Set the absolute position of this entity.
SetAngles
Set entity pitch, yaw, roll.
SetAngularVelocity
Set the local angular velocity. The move type must be set for this to have effect.
SetCollisionGroup
Sets the collision group to one of the COLLISION_GROUP_* constants.
SetElasticity
Set the elasticity value for this entity.
SetForwardVector
Set the orientation of the entity to have this forward vector.
SetFriction
Set the friction for this entity.
SetGravity
Sets gravity on this entity. Only affects gravity along Z axis
SetHealth
Set the health for this entity. Zero will cause instant death.
SetMaxHealth
Set the maximum health for this entity.
SetModel
Change the model used for the entity. The model must be precached manually.
SetMoveCollide
Set the move collision mode to one of the MOVECOLLIDE_* constants, determining how this entity reacts to collisions.
SetMoveType
Set the move type to one of the MOVETYPE_* constants, which determines how this entity is moved by velocity values.
SetOrigin
Teleport the entity to the specified position.
SetOwner
Set this entity's owner. Owners are used for things like projectiles.
SetParent
Sets the parent entity.
SetParentWithAttachment
Sets the parent entity with an attachment index.
SetSize
Set the bounding box size for this entity.
SetTeam
Assign this entity to a different team.
SetVelocity
Set this entity's absolute linear velocity. The move type must be set for this to have effect.
Spawn
Spawns the entity
StopSound
Stops a sound on this entity.
Teleport
Teleport the entity to a new position with angles.
ValidateScriptScope
Ensure that an entity's script scope has been created.
entindex
Returns the index for this entity. This is unique among live entities, but could change during save/load.