Attempt to fix #1465 and #1354

This commit is contained in:
ulteq 2015-06-09 15:46:00 +02:00
parent b61bd1fb75
commit d454a2ccfc

View File

@ -29,11 +29,15 @@ _newDamage = _this select 5;
// Most likely taking exessive fire damage. Lets exit.
if (isNull _sourceOfDamage && {_typeOfProjectile == ""} && {vehicle _unit == _unit} && {(_selectionName == "head" || isBurning _unit)}) exitwith {
[_unit] call FUNC(handleDamage_advancedSetDamage);
0
};
_typeOfDamage = [_typeOfProjectile] call FUNC(getTypeOfDamage);
_part = [_selectionName] call FUNC(selectionNameToNumber);
if (_part < 0) exitwith {};
if (_part < 0) exitwith {
[_unit] call FUNC(handleDamage_advancedSetDamage);
0
};
_hitPoints = ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"];
// Sorting out the damage