12345678910111213141516171819202122232425262728 |
- params["_target", "_shooter", "_projectile", "_position", "_velocity", "_selection", "_ammo", "_vector", "_radius", "_surfaceType", "_isDirect"];
- if (isNil{_ammo select 4}) exitWith {};
- if (!alive _target) exitWith {};
- private _ammoUsed = _ammo select 4;
- if (getNumber(configFile >> "CfgAmmo" >> _ammoUsed >> "JLTS_isEMPAmmo") == 1) then {[_target,_shooter,_ammoUsed,_projectile] call RD501_fnc_onHitEMP};
- if (getNumber(configFile >> "CfgAmmo" >> _ammoUsed >> "JLTS_isStunAmmo") == 1) then {[_target,_shooter,_ammoUsed] call JLTS_fnc_onHitStun};
|