Don't use IKs for now

This commit is contained in:
Kamay Xutax 2024-08-27 22:17:54 +02:00
parent 70d7c82ff9
commit 273ac76745
2 changed files with 4 additions and 1 deletions

View file

@ -2901,7 +2901,7 @@ bool C_BaseAnimating::SetupBones( matrix3x4_t *pBoneToWorldOut, int nMaxBones, i
// only allocate an ik block if the npc can use it
// The flag is now completely ignored to match server bones!
// If it doesn't work well, blame models.
if ( !m_pIk && hdr->numikchains() > 0 /* && !(m_EntClientFlags & ENTCLIENTFLAG_DONTUSEIK) */ )
if ( !m_pIk && hdr->numikchains() > 0 && !(m_EntClientFlags & ENTCLIENTFLAG_DONTUSEIK) )
{
m_pIk = new CIKContext;
}

View file

@ -794,6 +794,9 @@ C_CSPlayer::C_CSPlayer() :
ListenForGameEvent( "bullet_hit_player" );
ListenForGameEvent( "bullet_player_hitboxes" );
ListenForGameEvent( "player_lag_hitboxes" );
/* don't use IKs for now as they're prone to bugs */
m_EntClientFlags |= ENTCLIENTFLAG_DONTUSEIK;
}