L L4D2node

CBaseAnimating

24 own methods · 53 inherited · extends CBaseEntity

Animating models

Methods

callable on a CBaseAnimating script handle
Script Function Returns Parameters Description
FindBodygroupByName int cstring Find a bodygroup id by name
GetAttachmentAngles (ScriptGetAttachmentAngles) QAngle int Get the attachement id's angles as a p,y,r vector
GetAttachmentBone int int Get the named attachement's parent bone index
GetAttachmentOrigin (ScriptGetAttachmentOrigin) Vector int Get the attachement id's origin vector
GetBodygroup int int Get a bodygroup by id
GetBodygroupName cstring int Get the bodygroup id's name
GetBodygroupPartName cstring int, int Get name by group and part
GetBoneAngles (ScriptGetBoneAngles) QAngle int Get the bone id's angles as a p,y,r vector
GetBoneOrigin (ScriptGetBoneOrigin) Vector int Get the bone id's origin vector
GetModelScale float none none
GetSequence int none Get the current sequence id
GetSequenceActivityName cstring int Get the activity name for a sequence by id
GetSequenceDuration (ScriptGetSequenceDuration) float int Get a sequence duration by id
GetSequenceName cstring int Get a sequence name by id
IsSequenceFinished bool none Ask whether the main sequence is done playing
LookupActivity int cstring Get the named activity index
LookupAttachment int cstring Get the named attachement id
LookupBone int cstring Get the named bone index
LookupSequence int cstring Looks up a sequence by sequence name or activity name
ResetSequence void int Reset a sequence by id. If the id is different than the current sequence, switch to the new sequence
SetBodygroup void int, int Sets a bodygroup
SetModelScale void float, float (scale, change_duration) Changes a model's scale over time
SetPoseParameter (ScriptSetPoseParameter) float int, float (id, value) Sets a pose parameter value
SetSequence void int Set a sequence by id

Inherited methods

reachable up the C++ base chain
Script Function Returns Parameters Description / from
__KeyValueFromInt (KeyValueFromInt) bool cstring, float @ ↑ CBaseEntity
__KeyValueFromString (KeyValueFromString) bool cstring, cstring @ ↑ CBaseEntity
__KeyValueFromVector (KeyValueFromVector) bool cstring, Vector @ ↑ CBaseEntity
ApplyAbsVelocityImpulse void Vector Apply a Velocity Impulse ↑ CBaseEntity
ApplyLocalAngularVelocityImpulse void Vector Apply an Ang Velocity Impulse ↑ CBaseEntity
ConnectOutput (ConnectOutputToScript) void cstring, cstring Adds an I/O connection that will call the named function when the specified output fires ↑ CBaseEntity
DisconnectOutput (DisconnectOutputFromScript) void cstring, cstring Removes a connected script function from an I/O event. ↑ CBaseEntity
FirstMoveChild (ScriptFirstMoveChild) hscript none none ↑ CBaseEntity
GetAngles (GetAbsAngles) QAngle none none ↑ CBaseEntity
GetBaseVelocity Vector none Get Base? velocity ↑ CBaseEntity
GetCenter (ScriptGetWorldSpaceCenter) Vector none Get world space center of object - absolute coords ↑ CBaseEntity
GetClassname cstring none none ↑ CBaseEntity
GetContext (GetContextForScript) unknown(0x21) cstring GetContext( name ): looks up a context and returns it if available. May return string, float, or null (if the context isn't found) ↑ CBaseEntity
GetEntityHandle (ScriptGetEHandle) unknown(0x1e) none Get the entity as an EHANDLE ↑ CBaseEntity
GetEntityIndex (entindex) int none none ↑ CBaseEntity
GetForwardVector (ScriptGetForward) Vector none Get the forward vector of the entity ↑ CBaseEntity
GetHealth int none none ↑ CBaseEntity
GetLocalAngles QAngle none none ↑ CBaseEntity
GetLocalAngularVelocity QAngle none Maybe local angvel ↑ CBaseEntity
GetLocalOrigin Vector none none ↑ CBaseEntity
GetLocalVelocity Vector none Get Entity relative velocity ↑ CBaseEntity
GetMaxHealth int none none ↑ CBaseEntity
GetModelName (ScriptGetModelName) cstring none none ↑ CBaseEntity
GetMoveParent (ScriptGetMoveParent) hscript none If in hierarchy, retrieves the entity's parent ↑ CBaseEntity
GetName (GetEntityNameAsCStr) cstring none none ↑ CBaseEntity
GetOrigin (GetAbsOrigin) Vector none none ↑ CBaseEntity
GetOwnerEntity (ScriptGetOwnerEntity) hscript none Get the owner entity, if there is one ↑ CBaseEntity
GetPreTemplateName cstring none Get the entity name stripped of template unique decoration ↑ CBaseEntity
GetRootMoveParent (ScriptGetRootMoveParent) hscript none If in hierarchy, walks up the hierarchy to find the root parent ↑ CBaseEntity
GetScriptScope hscript none Retrieve the script-side data associated with an entity ↑ CBaseEntity
GetVelocity (GetAbsVelocity) Vector none none ↑ CBaseEntity
IsPlayer bool none none ↑ CBaseEntity
Kill (ScriptInputKill) void none none ↑ CBaseEntity
NextMovePeer (ScriptNextMovePeer) hscript none none ↑ CBaseEntity
OverrideFriction void float, float Takes duration, value for a temporary override ↑ CBaseEntity
PrecacheModel (ScriptPrecacheModel) int cstring none ↑ CBaseEntity
PrecacheScriptSound (Script_PrecacheScriptSound) void cstring none ↑ CBaseEntity
SetAngles (SetAbsAngles) void QAngle none ↑ CBaseEntity
SetContext (AddContextForScript) void cstring, cstring, float SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set -1 to mean 'forever'). ↑ CBaseEntity
SetContextNum (AddContextForScriptNumeric) void cstring, float, float SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set -1 to mean 'forever'). ↑ CBaseEntity
SetForwardVector (ScriptSetForward) void Vector Set the orientation of the entity to have this forward vector ↑ CBaseEntity
SetFriction void float Set PLAYER friction, ignored for objects ↑ CBaseEntity
SetGravity void float Set PLAYER gravity, ignored for objects ↑ CBaseEntity
SetHealth void int none ↑ CBaseEntity
SetLocalAngles void QAngle none ↑ CBaseEntity
SetLocalOrigin void Vector none ↑ CBaseEntity
SetMaxHealth void int none ↑ CBaseEntity
SetModel void cstring Set a model for this entity ↑ CBaseEntity
SetOrigin (ScriptSetOrigin) void Vector none ↑ CBaseEntity
SetVelocity (SetAbsVelocity) void Vector none ↑ CBaseEntity
TakeDamage (ScriptTakeDamage) void float, int, hscript (flDamage, nDamageType, hAttacker) ↑ CBaseEntity
TakeDamageEx (ScriptTakeDamageEx) void hscript, hscript, hscript, Vector, Vector, float, int (hInflictor, hAttacker, hWeapon, vecDamageForce, vecDamagePosition, flDamage, nDamageType) ↑ CBaseEntity
ValidateScriptScope bool none Ensure that an entity's script scope has been created ↑ CBaseEntity