Skip to content

Commit

Permalink
Grenades - Add fire source to incendiary grenades (#8756)
Browse files Browse the repository at this point in the history
* add fire source to incendiary grenade

* improvide fire source condition

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
  • Loading branch information
LinkIsGrim and veteran29 authored Mar 9, 2022
1 parent 8d83982 commit f85ed21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/grenades/functions/fnc_incendiary.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ private _sound = objNull;

if (isServer) then {
_sound = createSoundSource ["Sound_Fire", _position, [], 0];
private _radius = 1.5 * getNumber (configOf _projectile >> "indirectHitRange");
private _intensity = getNumber (configOf _projectile >> "hit");
[QEGVAR(fire,addFireSource), [_projectile, _radius, _intensity, _projectile, {CBA_missionTime < _this}, CBA_missionTime + _timeToLive]] call CBA_fnc_serverEvent;
};

[{
Expand Down

0 comments on commit f85ed21

Please sign in to comment.