adjusted damage handling (adv medical)

This commit is contained in:
Glowbal 2015-04-27 16:42:12 +02:00
parent e4db44d73c
commit 450e324f7b

View File

@ -47,7 +47,7 @@ if (GVAR(level) >= 2) then {
};
_newDamage = _this call FUNC(handleDamage_caching);
if (_damageReturn > 0.9) then {
//if (_damageReturn > 0.9) then {
_typeOfDamage = [_projectile] call FUNC(getTypeOfDamage);
@ -63,7 +63,7 @@ if (GVAR(level) >= 2) then {
};
};
if ([_unit, [_selection] call FUNC(selectionNameToNumber), _newDamage] call FUNC(determineIfFatal)) then {
if ((_minLethalDamage <= _newDamage) && {[_unit, [_selection] call FUNC(selectionNameToNumber), _newDamage] call FUNC(determineIfFatal)}) then {
if ([_unit] call FUNC(setDead)) then {
_damageReturn = 1;
} else {
@ -72,7 +72,7 @@ if (GVAR(level) >= 2) then {
} else {
_damageReturn = _damageReturn min 0.89;
};
};
//};
};
[_unit] call FUNC(addToInjuredCollection);