2015-01-11 18:24:19 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-27 20:04:35 +00:00
|
|
|
private ["_initialData", "_hpData", "_round", "_hpRound", "_hpDirect"];
|
2015-01-11 18:24:19 +00:00
|
|
|
//player sideChat format["f: %1 c: %2", (_this select 0), (count GVAR(spallHPData))];
|
2015-04-27 20:04:35 +00:00
|
|
|
|
|
|
|
if ((_this select 0) <= (count GVAR(spallHPData))) then {
|
2015-04-06 16:22:43 +00:00
|
|
|
_initialData = GVAR(spallHPData) select (_this select 0);
|
2015-04-27 20:04:35 +00:00
|
|
|
if (!isNil "_initialData") then {
|
2015-04-06 16:22:43 +00:00
|
|
|
_hpRound = ((_this select 1) select 0) select 2;
|
|
|
|
_round = _initialData select 3;
|
|
|
|
_hpDirect = ((_this select 1) select 0) select 10;
|
2015-04-27 20:04:35 +00:00
|
|
|
if (_hpDirect && {_round == _hpRound}) then {
|
2015-04-06 16:22:43 +00:00
|
|
|
{
|
|
|
|
_hpData = _x;
|
|
|
|
_round = _initialData select 3;
|
|
|
|
// diag_log text format["HPDUMP-------------------------------------"];
|
|
|
|
// {
|
|
|
|
// _hp = _x;
|
|
|
|
// diag_log text format["%1 --", _forEachIndex];
|
|
|
|
// {
|
|
|
|
// diag_log text format["%1: %2", _forEachIndex, _x];
|
|
|
|
// } forEach _hp;
|
|
|
|
// } forEach (_this select 1);
|
2015-07-25 08:20:03 +00:00
|
|
|
[DFUNC(doSpall), [_this, _forEachIndex]] call EFUNC(common,execNextFrame);
|
2015-04-06 16:22:43 +00:00
|
|
|
// player sideChat "WEEE";
|
|
|
|
} forEach (_this select 1);
|
|
|
|
};
|
|
|
|
};
|
2015-04-27 20:04:35 +00:00
|
|
|
};
|