This commit is contained in:
s1lent 2019-04-09 21:56:22 +07:00
parent a31be1d18e
commit d67492482a
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -112,7 +112,7 @@ void CC4::PrimaryAttack()
{
TraceResult tr;
UTIL_TraceLine(m_pPlayer->pev->origin, m_pPlayer->pev->origin + Vector(0, 0, -8192), ignore_monsters, m_pPlayer->edict(), &tr);
onGround = tr.flFraction != 1.0;
onGround = (tr.flFraction != 1.0 && m_pPlayer->pev->velocity.z == 0.0f);
}
#endif