mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
Strengthened NaN head angle brute force workaround
This commit is contained in:
parent
3c7d0f86b3
commit
1426eccc68
@ -1149,8 +1149,14 @@ void CAI_BaseActor::UpdateHeadControl( const Vector &vHeadTarget, float flHeadIn
|
|||||||
Warning( "================================================================================\n"
|
Warning( "================================================================================\n"
|
||||||
"!!!!! %s tried to set a NaN head angle (can happen when look targets have >1 importance) !!!!!\n"
|
"!!!!! %s tried to set a NaN head angle (can happen when look targets have >1 importance) !!!!!\n"
|
||||||
"================================================================================\n", GetDebugName() );
|
"================================================================================\n", GetDebugName() );
|
||||||
vTargetAngles.x = 0;
|
m_goalHeadCorrection.Init();
|
||||||
vTargetAngles.y = 0;
|
Set( m_FlexweightHeadRightLeft, 0.0f );
|
||||||
|
Set( m_FlexweightHeadUpDown, 0.0f );
|
||||||
|
Set( m_FlexweightHeadTilt, 0.0f );
|
||||||
|
Set( m_ParameterHeadYaw, 0.0f );
|
||||||
|
Set( m_ParameterHeadPitch, 0.0f );
|
||||||
|
Set( m_ParameterHeadRoll, 0.0f );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user