Skip to content

Commit

Permalink
Merge pull request #3106 from acemod/explEvents
Browse files Browse the repository at this point in the history
Explosive events, fix #3104
  • Loading branch information
thojkooi committed Feb 4, 2016
2 parents 35333cb + 977bda8 commit e0946c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions addons/explosives/functions/fnc_defuseExplosive.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ TRACE_2("params",_unit,_explosive);
if (GVAR(ExplodeOnDefuse) && {(random 1.0) < (getNumber (ConfigFile >> "CfgAmmo" >> typeOf _explosive >> "ACE_explodeOnDefuse"))}) exitWith {
TRACE_1("exploding on defuse",_explosive);
[_unit, -1, [_explosive, 1], true] call FUNC(detonateExplosive);
[QGVAR(explodeOnDefuse), [_explosive, _unit]] call EFUNC(common,globalEvent);
};

_unit action ["Deactivate", _unit, _explosive];
[QGVAR(defuse), [_explosive, _unit]] call EFUNC(common,globalEvent);
4 changes: 2 additions & 2 deletions addons/explosives/functions/fnc_placeExplosive.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if (isText(_triggerConfig >> "onPlace") && {[_unit,_explosive,_magazineClass,_tr

_pitch = getNumber (_magazineTrigger >> "pitch");

//Globaly set the position angle:
[QGVAR(place), [_explosive, _dir, _pitch]] call EFUNC(common,globalEvent);
//Globaly set the position and angle:
[QGVAR(place), [_explosive, _dir, _pitch, _unit]] call EFUNC(common,globalEvent);

_explosive

0 comments on commit e0946c3

Please sign in to comment.