CBaseAnimating

From SigMod
Jump to navigation Jump to search

Overview[edit | edit source]

All entities with models inherit from this class, even if they don't have any animations.

Source location : /game/server/baseanimating.h

VScript : Script_Functions#CBaseAnimating

Class Structure[edit | edit source]

SendProps[edit | edit source]

CBaseAnimating
Name Type Description
m_nForceBone Integer
m_vecForce Vector
m_nSkin Integer The skin for this entity's model. (For players, see: CTFPlayer.m_nForcedSkin)
m_nBody Integer The active Body Group
m_nHitboxSet Integer The active Hitbox Set.
m_flModelScale Float The scale of this entity's model.
m_flPoseParameter
000 Float Pose Parameters
001 Float
002 Float
003 Float
004 Float
005 Float
006 Float
007 Float
008 Float
009 Float
010 Float
011 Float
012 Float
013 Float
014 Float
015 Float
016 Float
017 Float
018 Float
019 Float
020 Float
021 Float
022 Float
023 Float
m_nSequence Integer The animation sequence this entity's model is playing. (For player viewmodel anims, see CBasePlayer.m_hViewModel.m_nSequence)
m_flPlaybackRate Float Modifier for how fast this animation will play. (Default: 1)

Changing this value will change the animation point to where it would have been if it were playing at the new playback rate the entire time.

m_flEncodedController
000 Float Bone controller setting (0..1)
001 Float
002 Float
003 Float
m_bClientSideAnimation Boolean Tells whether or not we're using client-side animation. (Useful for looping animation objects)
m_bClientSideFrameReset Boolean
m_nNewSequenceParity Integer
m_nResetEventsParity Integer
m_nMuzzleFlashParity Unsigned Char Incremented each time the entity is told to do a muzzle flash. The client picks up the change and draws the flash.
m_hLightingOrigin Handle An info_lighting or info_target from which to sample lighting (instead of the model's origin).
m_hLightingOriginRelative Handle Deprecated. The info_lighting_relative from which to sample lighting instead of the entity's origin. Use Lighting Origin instead.
serveranimdata
m_flCycle Float 0 - 1 How far along is the animation, 1 being finished. Changing this does nothing.
m_fadeMinDist Float Model distance fading. Point at which model is completely faded and ceases to be rendered.
m_fadeMaxDist Float Model distance fading. Point at which fading is inactive.
m_flFadeScale Float Model distance fading. Scale applied to m_fadeMinDist and m_fadeMaxDist.

Entity DataMaps[edit | edit source]

CBaseAnimating
Name Type Description
InputBecomeRagdoll Input (Void)
InputIgnite Input (Void)
InputIgniteHitboxFireScale Input (Void)
InputIgniteLifetime Input (Void)
InputIgniteNumHitboxFires Input (Void)
InputSetLightingOrigin Input (Void)
InputSetLightingOriginRelative Input (Void)
InputSetModel Input (Void)
InputSetModelScale Input (Void)
InputSetCycle Input (Void)
InputSetPlaybackRate Input (Void)
m_OnIgnite Output
m_bClientSideAnimation Boolean Tells whether or not we're using client-side animation. (Useful for looping animation objects)
m_bClientSideFrameReset Boolean
m_bSequenceFinished Boolean Flag set when StudioAdvanceFrame moves across a frame boundry
m_bSequenceLoops Boolean Does our sequence loop?
m_fBoneCacheFlags Unsigned short Used for bone cache state on model
m_fadeMaxDist Float Model distance fading. Point at which fading is inactive.
m_fadeMinDist Float Model distance fading. Point at which model is completely faded and ceases to be rendered.
m_flCycle Float 0 - 1 How far along is the animation, 1 being finished. Changing this does nothing.
m_flDissolveStartTime Float When did we start dissolving?
m_flEncodedController Array (Float) Bone controller setting (0..1)
m_flFadeScale Float Model distance fading. Scale applied to m_fadeMinDist and m_fadeMaxDist.
m_flGroundSpeed Float Computed linear movement rate for current sequence
m_flLastEventCheck Float Cycle index of when events were last checked
m_flModelScale Float The scale of this entity's model.
m_flPlaybackRate Float Modifier for how fast this animation will play. (Default: 1)

Changing this value will change the animation point to where it would have been if it were playing at the new playback rate the entire time.

m_flPoseParameter Array (Float) Pose Parameters
m_hLightingOrigin Handle An info_lighting or info_target from which to sample lighting (instead of the model's origin).
m_hLightingOriginRelative Handle Deprecated. The info_lighting_relative from which to sample lighting instead of the entity's origin. Use Lighting Origin instead.
m_iIKCounter Integer
m_iszLightingOrigin String Targetname for the m_hLightingOrigin entity.
m_iszLightingOriginRelative String Targetname for the m_hLightingOriginRelative entity.
m_nBody Integer The active Body Group
m_nHitboxSet Integer The active Hitbox Set
m_nMuzzleFlashParity Unsigned Char Incremented each time the entity is told to do a muzzle flash. The client picks up the change and draws the flash.
m_nNewSequenceParity Unsigned Char
m_nResetEventsParity Unsigned Char
m_nSequence Integer The animation sequence this entity's model is playing. (For player viewmodel anims, see CBasePlayer.m_hViewModel.m_nSequence)
m_nSkin Integer The skin for this entity's model. (For players, see: CTFPlayer.m_nForcedSkin)
m_pIk CIKContext