Fixed third person animations
This commit is contained in:
parent
ec524a26b5
commit
9c846412ba
4 changed files with 1 additions and 4 deletions
|
@ -5101,7 +5101,7 @@ float C_BaseAnimating::GetLastVisibleCycle( CStudioHdr *pStudioHdr, int iSequenc
|
||||||
//=========================================================
|
//=========================================================
|
||||||
void C_BaseAnimating::StudioFrameAdvance()
|
void C_BaseAnimating::StudioFrameAdvance()
|
||||||
{
|
{
|
||||||
if ( m_bClientSideAnimation )
|
if ( !m_bClientSideAnimation )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CStudioHdr *hdr = GetModelPtr();
|
CStudioHdr *hdr = GetModelPtr();
|
||||||
|
|
|
@ -110,7 +110,6 @@ bool C_LowViolenceHostageDeathModel::SetupLowViolenceModel( C_CHostage *pHostage
|
||||||
SetNextClientThink( CLIENT_THINK_ALWAYS );
|
SetNextClientThink( CLIENT_THINK_ALWAYS );
|
||||||
|
|
||||||
SetSequence( LookupSequence( "death1" ) );
|
SetSequence( LookupSequence( "death1" ) );
|
||||||
ForceClientSideAnimationOn();
|
|
||||||
|
|
||||||
if ( pHostage && !pHostage->IsDormant() )
|
if ( pHostage && !pHostage->IsDormant() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -385,7 +385,6 @@ void C_CSRagdoll::CreateLowViolenceRagdoll( void )
|
||||||
char str[512];
|
char str[512];
|
||||||
Q_snprintf( str, sizeof( str ), "death%d", iDeathAnim );
|
Q_snprintf( str, sizeof( str ), "death%d", iDeathAnim );
|
||||||
SetSequence( LookupSequence( str ) );
|
SetSequence( LookupSequence( str ) );
|
||||||
ForceClientSideAnimationOn();
|
|
||||||
|
|
||||||
Interp_Reset( GetVarMapping() );
|
Interp_Reset( GetVarMapping() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -419,7 +419,6 @@ void C_DODRagdoll::CreateLowViolenceRagdoll()
|
||||||
Q_snprintf( str, sizeof( str ), "death%d", iDeathAnim );
|
Q_snprintf( str, sizeof( str ), "death%d", iDeathAnim );
|
||||||
|
|
||||||
SetSequence( LookupSequence( str ) );
|
SetSequence( LookupSequence( str ) );
|
||||||
ForceClientSideAnimationOn();
|
|
||||||
|
|
||||||
SetNetworkOrigin( m_vecRagdollOrigin );
|
SetNetworkOrigin( m_vecRagdollOrigin );
|
||||||
SetAbsOrigin( m_vecRagdollOrigin );
|
SetAbsOrigin( m_vecRagdollOrigin );
|
||||||
|
|
Loading…
Reference in a new issue