Merge pull request #3148 from acemod/nerfReflectedBackblast

Nerf the amount of backblast received by the firer via reflection
This commit is contained in:
Thomas Kooi 2016-01-12 18:03:39 +01:00
commit cd23228fbc

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