mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
49b5a0ea86
* Cleanup frag component * Optimize fnc_addTrack * Add additional cleanup * Please work? * Add more cleanup * Fix script errors * Fix/optimize spalling * Add missing changes
23 lines
653 B
Plaintext
23 lines
653 B
Plaintext
//fnc_doExplosions.sqf
|
|
#include "script_component.hpp"
|
|
|
|
params ["_args", "_pfhID"];
|
|
_args params ["_explosions", "_index"];
|
|
|
|
for "_i" from _index to ((_index + 2) min (count _explosions)) do {
|
|
private _exp = _explosions select _i;
|
|
_exp params ["_refExp", "_bpos", "_hit", "_distance", "_indirectHitRange", "_depth"];
|
|
_refExp createVehicle (ASLtoATL _bpos);
|
|
// if (_hit >= 150 && _distance > _indirectHitRange) then {
|
|
// [_bpos, _refExp, _depth] call FUNC(doReflections);
|
|
// };
|
|
};
|
|
|
|
ADD(_index,2);
|
|
|
|
if (_index >= count _explosions) then {
|
|
[_pfhID] call CBA_fnc_removePerFrameHandler;
|
|
} else {
|
|
_args set [1, _index];
|
|
};
|