From 455c53a084689db186abd0862f99c624e76cf871 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Tue, 12 Jan 2016 13:09:41 -0300 Subject: [PATCH] Nerf the amount of backblast received by the firer via reflection. Fix #2890. --- addons/overpressure/functions/fnc_fireLauncherBackblast.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/overpressure/functions/fnc_fireLauncherBackblast.sqf b/addons/overpressure/functions/fnc_fireLauncherBackblast.sqf index 02da9e9564..4641e36eb8 100644 --- a/addons/overpressure/functions/fnc_fireLauncherBackblast.sqf +++ b/addons/overpressure/functions/fnc_fireLauncherBackblast.sqf @@ -48,7 +48,7 @@ _affected = (ASLtoAGL _position) nearEntities ["CAManBase", _backblastRange]; // Damage to the firer private "_distance"; -_distance = [_position, _direction, _backblastRange, _firer] call FUNC(getDistance); +_distance = 2 * ([_position, _direction, _backblastRange, _firer] call FUNC(getDistance)); TRACE_1("Distance",_distance); @@ -95,7 +95,7 @@ if (_distance < _backblastRange) then { ] call EFUNC(common,addLineToDebugDraw); [ _position, - _position vectorAdd (_direction vectorMultiply (_distance min _backblastRange)), + _position vectorAdd (_direction vectorMultiply ((_distance/2) min _backblastRange)), [1,0,0,1] ] call EFUNC(common,addLineToDebugDraw); #endif