CBaseAnimating: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
|'''m_nSkin'''
|'''m_nSkin'''
|Integer
|Integer
|The skin for this entity's model. For players, see: [[CTFPlayer]].m_nForcedSkin
|The skin for this entity's model. (For players, see: [[CTFPlayer]].m_nForcedSkin)
|-
|-
|'''m_nBody'''
|'''m_nBody'''
Line 150: Line 150:
|'''m_nSequence'''
|'''m_nSequence'''
|Integer
|Integer
|The animation sequence this entity's model is playing. (Player animation sequences are located in their viewmodel.m_nSequence)
|The animation sequence this entity's model is playing. (For player viewmodel anims, see [[CBasePlayer]].m_hViewModel.m_nSequence)
|-
|-
|'''m_flPlaybackRate'''
|'''m_flPlaybackRate'''
|Float
|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.
|-
|-
| colspan="3" style="padding: 0; margin: 0;" |
| colspan="3" style="padding: 0; margin: 0;" |

Revision as of 18:07, 7 October 2023

Overview

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

SendProps

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
m_nHitboxSet Integer
m_flModelScale Float The scale of this entity's model.
m_flPoseParameter
000 Float
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
001 Float
002 Float
003 Float
m_bClientSideAnimation Boolean
m_bClientSideFrameReset Boolean
m_nNewSequenceParity Integer
m_nResetEventsParity Integer
m_nMuzzleFlashParity Integer
m_hLightingOrigin Integer
m_hLightingOriginRelative Integer
serveranimdata
m_flCycle Float
m_fadeMinDist Float
m_fadeMaxDist Float
m_flFadeScale Float

Entity DataMaps

CBaseAnimating
Name Type Description
InputBecomeRagdoll
InputIgnite
InputIgniteHitboxFireScale
InputIgniteLifetime
InputIgniteNumHitboxFires
InputSetLightingOrigin
InputSetLightingOriginRelative
InputSetModel
InputSetModelScale
InputSetCycle
InputSetPlaybackRate
m_OnIgnite
m_bClientSideAnimation
m_bClientSideFrameReset
m_bSequenceFinished
m_bSequenceLoops
m_fBoneCacheFlags
m_fadeMaxDist
m_fadeMinDist
m_flCycle
m_flDissolveStartTime
m_flEncodedController
m_flFadeScale
m_flGroundSpeed
m_flLastEventCheck
m_flModelScale
m_flPlaybackRate
m_flPoseParameter
m_hLightingOrigin
m_hLightingOriginRelative
m_iIKCounter
m_iszLightingOrigin
m_iszLightingOriginRelative
m_nBody
m_nHitboxSet
m_nMuzzleFlashParity
m_nNewSequenceParity
m_nResetEventsParity
m_nSequence
m_nSkin
m_pIk