mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 06:07:56 +03:00
Removed some redundant singleplayer animation state code
This commit is contained in:
parent
1b1218f5fe
commit
045cc293f3
@ -497,10 +497,6 @@ void CSinglePlayerAnimState::ComputePoseParam_BodyYaw( void )
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void CSinglePlayerAnimState::ComputePoseParam_BodyLookYaw( void )
|
void CSinglePlayerAnimState::ComputePoseParam_BodyLookYaw( void )
|
||||||
{
|
{
|
||||||
QAngle absangles = GetOuter()->GetAbsAngles();
|
|
||||||
absangles.y = AngleNormalize( absangles.y );
|
|
||||||
m_angRender = absangles;
|
|
||||||
|
|
||||||
// See if we even have a blender for pitch
|
// See if we even have a blender for pitch
|
||||||
int upper_body_yaw = GetOuter()->LookupPoseParameter( "aim_yaw" );
|
int upper_body_yaw = GetOuter()->LookupPoseParameter( "aim_yaw" );
|
||||||
if ( upper_body_yaw < 0 )
|
if ( upper_body_yaw < 0 )
|
||||||
@ -619,11 +615,6 @@ void CSinglePlayerAnimState::ComputePoseParam_BodyLookYaw( void )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rotate entire body into position
|
|
||||||
absangles = GetOuter()->GetAbsAngles();
|
|
||||||
absangles.y = m_flCurrentFeetYaw;
|
|
||||||
m_angRender = absangles;
|
|
||||||
|
|
||||||
GetOuter()->SetPoseParameter( upper_body_yaw, clamp( m_flCurrentTorsoYaw, -60.0f, 60.0f ) );
|
GetOuter()->SetPoseParameter( upper_body_yaw, clamp( m_flCurrentTorsoYaw, -60.0f, 60.0f ) );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -652,10 +643,6 @@ void CSinglePlayerAnimState::ComputePoseParam_BodyPitch( CStudioHdr *pStudioHdr
|
|||||||
}
|
}
|
||||||
flPitch = clamp( flPitch, -90, 90 );
|
flPitch = clamp( flPitch, -90, 90 );
|
||||||
|
|
||||||
QAngle absangles = GetOuter()->GetAbsAngles();
|
|
||||||
absangles.x = 0.0f;
|
|
||||||
m_angRender = absangles;
|
|
||||||
|
|
||||||
// See if we have a blender for pitch
|
// See if we have a blender for pitch
|
||||||
GetOuter()->SetPoseParameter( pStudioHdr, "aim_pitch", flPitch );
|
GetOuter()->SetPoseParameter( pStudioHdr, "aim_pitch", flPitch );
|
||||||
|
|
||||||
@ -678,9 +665,5 @@ void CSinglePlayerAnimState::ComputePoseParam_HeadPitch( CStudioHdr *pStudioHdr
|
|||||||
}
|
}
|
||||||
flPitch = clamp( flPitch, -90, 90 );
|
flPitch = clamp( flPitch, -90, 90 );
|
||||||
|
|
||||||
QAngle absangles = GetOuter()->GetAbsAngles();
|
|
||||||
absangles.x = 0.0f;
|
|
||||||
m_angRender = absangles;
|
|
||||||
|
|
||||||
GetOuter()->SetPoseParameter( pStudioHdr, iHeadPitch, flPitch );
|
GetOuter()->SetPoseParameter( pStudioHdr, iHeadPitch, flPitch );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user