mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 06:03:02 +00:00
add source-sdk-2013
This commit is contained in:
@@ -56,10 +56,7 @@ void DrawBones( matrix3x4_t const* pBones, int nNumBones, ragdoll_t const* pRagd
|
||||
MatrixPosition( pBones[ iParentIndex ], from );
|
||||
MatrixPosition( pBones[ iBoneIndex ], to );
|
||||
|
||||
if ( debugoverlay )
|
||||
{
|
||||
debugoverlay->AddLineOverlay( from, to, nRed, nGreen, nBlue, true, 0.0f );
|
||||
}
|
||||
debugoverlay->AddLineOverlay( from, to, nRed, nGreen, nBlue, true, 0.0f );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -633,7 +630,7 @@ bool CReplayRagdollCache::GetFrame( C_BaseAnimating* pEntity, int nTick, bool* p
|
||||
if ( pNextFrame && replay_ragdoll_blending.GetInt() )
|
||||
{
|
||||
// Get blended Eular angles - NOTE: The Lerp() here actually calls Lerp<QAngle>() which converts to quats and back
|
||||
flInterpAmount = gpGlobals->interpolation_amount; Assert( flInterpAmount >= 0.0f && flInterpAmount <= 1.0f );
|
||||
float flInterpAmount = gpGlobals->interpolation_amount; Assert( flInterpAmount >= 0.0f && flInterpAmount <= 1.0f );
|
||||
AngleMatrix(
|
||||
(const QAngle &)Lerp( flInterpAmount, pFrame->pAngles [ objectIndex ], pNextFrame->pAngles [ objectIndex ] ),
|
||||
Lerp( flInterpAmount, pFrame->pPositions[ objectIndex ], pNextFrame->pPositions[ objectIndex ] ),
|
||||
|
||||
Reference in New Issue
Block a user