mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Fix hand-to-hand health damage reduction
This commit is contained in:
parent
39507e3f0f
commit
3744850545
@ -448,7 +448,7 @@ namespace MWClass
|
|||||||
if(object.isEmpty())
|
if(object.isEmpty())
|
||||||
{
|
{
|
||||||
if(ishealth)
|
if(ishealth)
|
||||||
damage /= getArmorRating(ptr);
|
damage /= std::min(1.0f + getArmorRating(ptr)/std::max(1.0f, damage), 4.0f);
|
||||||
sndMgr->playSound3D(ptr, "Hand To Hand Hit", 1.0f, 1.0f);
|
sndMgr->playSound3D(ptr, "Hand To Hand Hit", 1.0f, 1.0f);
|
||||||
}
|
}
|
||||||
else if(ishealth)
|
else if(ishealth)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user