mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 09:39:16 +01:00
Fix falling damage
This commit is contained in:
parent
bbbe9b2632
commit
953e4fc4ff
@ -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 New Issue
Block a user