From efa9cf4709c72e0bed84b082db8d67098fcd0b71 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Wed, 10 Jun 2015 12:21:06 +0200 Subject: [PATCH] Fix handleDamage caching return value Should never return nil. Instead, return a 0 as it's expecting new damage. this may fix the random vanilla damage kicking in. --- addons/medical/functions/fnc_handleDamage_caching.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical/functions/fnc_handleDamage_caching.sqf b/addons/medical/functions/fnc_handleDamage_caching.sqf index 95d750843d..13a0ca94d0 100644 --- a/addons/medical/functions/fnc_handleDamage_caching.sqf +++ b/addons/medical/functions/fnc_handleDamage_caching.sqf @@ -50,7 +50,7 @@ if (((velocity _unit) select 2 < -5) && {(vehicle _unit == _unit)}) then { _unit setVariable [QGVAR(isFalling), True]; }; -if (_unit getVariable [QGVAR(isFalling), false] && {!(_selectionName in ["", "leg_l", "leg_r"])}) exitWith {}; +if (_unit getVariable [QGVAR(isFalling), false] && {!(_selectionName in ["", "leg_l", "leg_r"])}) exitWith {0}; if (_unit getVariable [QGVAR(isFalling), false]) then { _newDamage = _newDamage * 0.7; };