#770 - Hopefully fix LOS check on flashbang

This commit is contained in:
PabstMirror 2015-04-27 16:07:31 -05:00
parent 0991c29d00
commit 7e0fa18ce7
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class CfgAmmo {
SmokeShellSoundHit3[] = {"A3\Sounds_F\weapons\smokeshell\smoke_3",1.25893,1,100};
SmokeShellSoundLoop1[] = {"A3\Sounds_F\weapons\smokeshell\smoke_loop1",0.125893,1,70};
SmokeShellSoundLoop2[] = {"A3\Sounds_F\weapons\smokeshell\smoke_loop2",0.125893,1,70};
timeToLive = 60;
timeToLive = 6;
fuseDistance = 2.3;
model = PATHTOF(models\ACE_m84_thrown.p3d);
};

View File

@ -56,7 +56,7 @@ _affected = _grenade nearEntities ["CAManBase", 20];
};
} forEach [[0,0,0], [0,0,0.2], [0.1, 0.1, 0.1], [-0.1, -0.1, 0.1]];
TRACE_1("Line of sight count (out of 4)",_losCount);
if (_losCount == 0) then {
if (_losCount <= 1) then {
_strength = _strength / 10;
};