From f2566afc73d9cb0019fe2b3fd2b68dae9bd0f8e7 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Fri, 19 Feb 2016 15:22:24 -0300 Subject: [PATCH] Another 5m of effect --- addons/grenades/functions/fnc_flashbangExplosionEH.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf index ac2e450734..f24e6c72e5 100644 --- a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf +++ b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf @@ -46,7 +46,7 @@ private _affected = (ASLtoAGL _grenadePosASL) nearEntities ["CAManBase", 20]; _affected = _affected - [ACE_player]; { if (local _x && {alive _x}) then { - private _strength = 1 - (((getPosASL _x) vectorDistance _grenadePosASL) min 15) / 15; + private _strength = 1 - (((getPosASL _x) vectorDistance _grenadePosASL) min 20) / 20; TRACE_3("FlashBangEffect Start",_x,((getPosASL _x) vectorDistance _grenadePosASL),_strength); @@ -71,14 +71,14 @@ _affected = _affected - [ACE_player]; }; } count _affected; -// Affect local player, independently of distance (all effects except light finish at 15m) +// Affect local player, independently of distance if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then { // Do effects for player // is there line of sight to the grenade? private _eyePos = eyePos ACE_player; //PositionASL _grenadePosASL set [2, (_grenadePosASL select 2) + 0.2]; // compensate for grenade glitching into ground - private _strength = 1 - ((_eyePos vectorDistance _grenadePosASL) min 15) / 15; + private _strength = 1 - ((_eyePos vectorDistance _grenadePosASL) min 20) / 20; // Check for line of sight (check 4 points in case grenade is stuck in an object or underground) private _losCoefficient = 1;