This commit is contained in:
voiper 2016-06-04 12:26:38 -07:00
parent cef4152407
commit 354e84e058

View File

@ -21,11 +21,8 @@ TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectil
private "_player";
_player = ACE_player;
//exit if it's a thrown weapon
if (_weapon == "Throw") exitWith {};
//If our vehicle didn't shoot, or we're not in NVG mode, exit
if ((currentVisionMode _player) != 1) exitWith {};
//If we're not in NVG mode, or it's a grenade, exit
if (((currentVisionMode _player) != 1) || {_weapon == "Throw"}) exitWith {};
private["_darkness", "_nvgBrightnessCoef", "_silencer", "_visibleFire", "_visibleFireCoef", "_visibleFireTime", "_visibleFireTimeCoef"];