Merge pull request #5971 from JoramD0/incenTweak

Tweaked effective area of incendiary grenades
This commit is contained in:
commy2 2017-12-31 13:40:37 +01:00 committed by GitHub
commit 7d7d37409e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,8 @@
#define ORIENTATION 5.4
#define EXPANSION 1
#define DESTRUCTION_RADIUS 1.8
params ["_projectile", "_timeToLive", "_center"];
if (isNull _projectile) exitWith {TRACE_1("null",_projectile);};
@ -187,7 +189,7 @@ if (isServer) then {
// --- inflame fireplace, barrels etc.
_x inflame true;
};
} forEach (_position nearObjects EFFECT_SIZE);
} forEach (_position nearObjects DESTRUCTION_RADIUS);
// --- damage local vehicle
private _vehicle = _position nearestObject "Car";