diff --git a/addons/repair/functions/fnc_setDamage.sqf b/addons/repair/functions/fnc_setDamage.sqf index ba51c22c0df..13549ca54d1 100644 --- a/addons/repair/functions/fnc_setDamage.sqf +++ b/addons/repair/functions/fnc_setDamage.sqf @@ -6,6 +6,7 @@ * Arguments: * 0: Local Vehicle to Damage * 1: Total Damage + # 2: Use destruction effects * * Return Value: * None @@ -16,7 +17,7 @@ * Public: No */ -params ["_vehicle", "_damage"]; +params ["_vehicle", "_damage", ["_useEffects", false]]; TRACE_2("params",_vehicle,_damage); // can't execute all commands if the vehicle isn't local. exit here. @@ -31,7 +32,7 @@ if (_damageDisabled) then { _vehicle allowDamage true; }; -_vehicle setDamage _damage; +_vehicle setDamage [_damage, _useEffects]; // restore original hitpoint damage values { diff --git a/addons/repair/functions/fnc_setHitPointDamage.sqf b/addons/repair/functions/fnc_setHitPointDamage.sqf index 1bb98e702ea..197918ffe31 100644 --- a/addons/repair/functions/fnc_setHitPointDamage.sqf +++ b/addons/repair/functions/fnc_setHitPointDamage.sqf @@ -8,7 +8,7 @@ * 0: Local Vehicle to Damage * 1: Selected hitpoint INDEX * 2: Total Damage - * 3: Skip destruction effects + * 3: Use destruction effects * * Return Value: * None @@ -19,7 +19,7 @@ * Public: No */ -params ["_vehicle", "_hitPointIndex", "_hitPointDamage", ["_useEffects", true]]; +params ["_vehicle", "_hitPointIndex", "_hitPointDamage", ["_useEffects", false]]; TRACE_4("params",_vehicle,typeOf _vehicle,_hitPointIndex,_hitPointDamage); // can't execute all commands if the vehicle isn't local. exit here.