mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 22:29:03 +00:00
fix explosion
This commit is contained in:
parent
ed9c288db8
commit
613bb72eb7
1 changed files with 1 additions and 1 deletions
|
@ -2181,7 +2181,7 @@ CWorld::TriggerExplosionSectorList(CPtrList &list, const CVector &position, floa
|
||||||
if(!pEntity->GetIsStatic()) {
|
if(!pEntity->GetIsStatic()) {
|
||||||
float fDamageMultiplier = Min((fRadius - fMagnitude) * 2.0f / fRadius, 1.0f);
|
float fDamageMultiplier = Min((fRadius - fMagnitude) * 2.0f / fRadius, 1.0f);
|
||||||
CVector vecForceDir =
|
CVector vecForceDir =
|
||||||
vecDistance * (fPower * pEntity->m_fMass / 14000.0f * fDamageMultiplier /
|
vecDistance * (fPower * pEntity->m_fMass / 1400.0f * fDamageMultiplier /
|
||||||
Max(fMagnitude, 0.01f));
|
Max(fMagnitude, 0.01f));
|
||||||
vecForceDir.z = Max(vecForceDir.z, 0.0f);
|
vecForceDir.z = Max(vecForceDir.z, 0.0f);
|
||||||
if(pEntity == FindPlayerPed()) vecForceDir.z = Min(vecForceDir.z, 1.0f);
|
if(pEntity == FindPlayerPed()) vecForceDir.z = Min(vecForceDir.z, 1.0f);
|
||||||
|
|
Loading…
Reference in a new issue