2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: ACE-Team
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_frag_fnc_doExplosions
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-05-30 16:37:03 +00:00
|
|
|
//fnc_doExplosions.sqf
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-10-26 22:16:31 +00:00
|
|
|
params ["_args", "_pfhID"];
|
2016-09-04 14:44:22 +00:00
|
|
|
_args params ["_explosions", "_index"];
|
|
|
|
|
2016-10-26 22:16:31 +00:00
|
|
|
for "_i" from _index to ((_index + 2) min (count _explosions)) do {
|
2016-09-04 14:44:22 +00:00
|
|
|
private _exp = _explosions select _i;
|
|
|
|
_exp params ["_refExp", "_bpos", "_hit", "_distance", "_indirectHitRange", "_depth"];
|
2016-05-30 16:37:03 +00:00
|
|
|
_refExp createVehicle (ASLtoATL _bpos);
|
2016-10-26 22:16:31 +00:00
|
|
|
// if (_hit >= 150 && _distance > _indirectHitRange) then {
|
2016-05-30 16:37:03 +00:00
|
|
|
// [_bpos, _refExp, _depth] call FUNC(doReflections);
|
|
|
|
// };
|
|
|
|
};
|
2016-10-26 22:16:31 +00:00
|
|
|
|
|
|
|
ADD(_index,2);
|
|
|
|
|
|
|
|
if (_index >= count _explosions) then {
|
|
|
|
[_pfhID] call CBA_fnc_removePerFrameHandler;
|
2016-05-30 16:37:03 +00:00
|
|
|
} else {
|
2016-10-26 22:16:31 +00:00
|
|
|
_args set [1, _index];
|
2016-05-30 16:37:03 +00:00
|
|
|
};
|