mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
b489750d5b
* Optimizations with private, params, and isEqualType * Fixed tab being used instead of space * Fixed tabs inserted by notepad++ * More usage of new private syntax and params - changed a few checks for an array being empty to `_arr isEqualTo []` rather than `count _arr == 0` - added more uses of `private` on the same line as the variable is declared - added more uses of params to assign variables passed as parameters - removed unnecessary parentheses - removed several unnecessary variable declarations with private array syntax * clean up and formatting
21 lines
656 B
Plaintext
21 lines
656 B
Plaintext
//fnc_doExplosions.sqf
|
|
#include "script_component.hpp"
|
|
|
|
params ["_args"];
|
|
_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);
|
|
// };
|
|
};
|
|
_index = _index + 2;
|
|
if(_index >= (count _explosions)) then {
|
|
[(_this select 1)] call CBA_fnc_removePerFrameHandler;
|
|
} else {
|
|
_params set[1, _index];
|
|
};
|