mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 10:49:02 +00:00
Fix falling damage
This commit is contained in:
parent
bbbe9b2632
commit
953e4fc4ff
1 changed files with 1 additions and 1 deletions
|
@ -3009,7 +3009,7 @@ CPed::ProcessEntityCollision(CEntity *collidingEnt, CColPoint *collidingPoints)
|
|||
lowerSpeedLimit *= 1.5f;
|
||||
}
|
||||
CAnimBlendAssociation *fallAnim = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_FALL);
|
||||
if (!bWasStanding && speed > upperSpeedLimit && (!bPushedAlongByCar || m_vecMoveSpeed.z < lowerSpeedLimit)
|
||||
if (!bWasStanding && ((speed > upperSpeedLimit && !bPushedAlongByCar) || (m_vecMoveSpeed.z < lowerSpeedLimit))
|
||||
&& m_pCollidingEntity != collidingEnt) {
|
||||
|
||||
float damage = 100.0f * Max(speed - 0.25f, 0.0f);
|
||||
|
|
Loading…
Reference in a new issue