Removed some spawns

This commit is contained in:
Thomas Kooi 2015-01-22 23:47:06 +01:00
parent dce0b61d57
commit 80f90751cd
3 changed files with 29 additions and 34 deletions

View File

@ -73,7 +73,6 @@ if (count _attributes > 1) then {
[_target] call EFUNC(common,setDead);
};
// TODO use PFH instead
[_target,_wearOff,_var] spawn {
sleep ((_this select 1) + (round(random(30))));
_amountDecreased = 0;

View File

@ -10,38 +10,35 @@
#include "script_component.hpp"
[] spawn {
_log = [GVAR(INTERACTION_TARGET)] call FUNC(getActivityLog);
_counter = 0;
lbclear 214;
{
//[_caller,_moment,_activity,_type]
lbadd[214, _x select 1]; // moment
lbadd[214, _x select 0]; // name, caller
//lbadd[214, _x select 2]; // activity
lbSetData [214,_counter,_x select 2];
_log = [GVAR(INTERACTION_TARGET)] call FUNC(getActivityLog);
_counter = 0;
lbclear 214;
{
//[_caller,_moment,_activity,_type]
lbadd[214, _x select 1]; // moment
lbadd[214, _x select 0]; // name, caller
//lbadd[214, _x select 2]; // activity
lbSetData [214,_counter,_x select 2];
_counter = _counter + 1;
}foreach _log;
if (count _log < 1) then {
lbadd[214, "No Activity recorded.."];
lbadd[214, ""];
};
_counter = _counter + 1;
}foreach _log;
if (count _log < 1) then {
lbadd[214, "No Activity recorded.."];
lbadd[214, ""];
};
_log = [GVAR(INTERACTION_TARGET)] call FUNC(getQuickViewLog);
_counter = 0;
lbclear 215;
{
_log = [GVAR(INTERACTION_TARGET)] call FUNC(getQuickViewLog);
_counter = 0;
lbclear 215;
{
//[_caller,_moment,_activity,_type]
lbadd[215, _x select 1]; // moment
lbadd[215, _x select 0]; // name, caller
lbSetData [215,_counter,_x select 2];
_counter = _counter + 1;
}foreach _log;
if (count _log < 1) then {
lbadd[215, "No Data recorded.."];
lbadd[215, ""];
};
};
//[_caller,_moment,_activity,_type]
lbadd[215, _x select 1]; // moment
lbadd[215, _x select 0]; // name, caller
lbSetData [215,_counter,_x select 2];
_counter = _counter + 1;
}foreach _log;
if (count _log < 1) then {
lbadd[215, "No Data recorded.."];
lbadd[215, ""];
};

View File

@ -66,7 +66,6 @@ _displayBodyPartText = switch (_bodyPartText) do {
lbadd[213,format[localize "STR_ACE_UI_SELECTED_BODY_PART",_displayBodyPartText]];
lbSetData [213, _numberOf, ""];
lbSetColor [213, _numberOf, [0.27, 0.40, 0.26, 1]];
//[] spawn FUNC(updateActivityLog);
_numberOf = _numberOf + 1;
if (GVAR(setting_allowAirwayInjuries)) then {