Nerf the amount of backblast received by the firer via reflection. Fix #2890.

This commit is contained in:
esteldunedain 2016-01-12 13:09:41 -03:00
parent 8cbf31a375
commit 455c53a084

View File

@ -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