Fixed a bug after killing czbot by headshot, angles turn at 180 degrees. Part 2

This commit is contained in:
s1lent 2017-12-17 19:28:01 +07:00
parent adeb09a2a4
commit a27b8e26b6
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -2057,12 +2057,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Killed)(entvars_t *pevAttacker, int iGib)
break;
}
#ifdef REGAMEDLL_FIXES
pev->angles.y = UTIL_VecToAngles(pev->velocity).y;
#else
pev->angles.y = UTIL_VecToAngles(-pev->velocity).y;
#endif
pev->v_angle.y = pev->angles.y;
m_iThrowDirection = THROW_NONE;
@ -2587,8 +2582,10 @@ void EXT_FUNC CBasePlayer::__API_HOOK(SetAnimation)(PLAYER_ANIM playerAnim)
break;
case 3:
case 4:
#ifndef REGAMEDLL_FIXES
m_iThrowDirection = THROW_FORWARD;
break;
#endif
case 5:
case 6:
m_iThrowDirection = THROW_HITVEL;