mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix forEach capitalization
This commit is contained in:
parent
a8228f60c2
commit
b3950bd7f0
@ -23,7 +23,7 @@ _vehicle = [_player] call FUNC(findNearestVehicle);
|
||||
if (isNull _vehicle || _vehicle isKindOf "Cargo_Base_F") then {
|
||||
{
|
||||
if ([_object, _x] call FUNC(canLoadItemIn)) exitWith {_vehicle = _x};
|
||||
} foreach (nearestObjects [_player, ["Cargo_base_F", "Land_PaperBox_closed_F"], MAX_LOAD_DISTANCE]);
|
||||
} forEach (nearestObjects [_player, ["Cargo_base_F", "Land_PaperBox_closed_F"], MAX_LOAD_DISTANCE]);
|
||||
};
|
||||
|
||||
if (isNull _vehicle) exitWith {false};
|
||||
|
@ -73,11 +73,11 @@ _refresh = {
|
||||
_ctrl = (findDisplay 46) ctrlCreate ["RscPicture", _forEachIndex + 19000];
|
||||
|
||||
_position = switch (_setting) do {
|
||||
case TOP_RIGHT_DOWN: {[X_POS_ICONS, Y_POS_ICONS + (_foreachIndex * DIFFERENCE_ICONS), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_RIGHT_LEFT: {[X_POS_ICONS_SECOND - ((_foreachIndex+3) * DIFFERENCE_ICONS), Y_POS_ICONS_SECOND - (ICON_WIDTH / 2), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_LEFT_DOWN: {[LEFT_SIDE + (0.5 * ICON_WIDTH), Y_POS_ICONS + (_foreachIndex * DIFFERENCE_ICONS), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_LEFT_RIGHT: {[LEFT_SIDE + (0.5 * ICON_WIDTH) - ((_foreachIndex+3) * DIFFERENCE_ICONS), Y_POS_ICONS_SECOND, ICON_WIDTH, ICON_WIDTH]};
|
||||
default {[X_POS_ICONS, Y_POS_ICONS + (_foreachIndex * DIFFERENCE_ICONS), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_RIGHT_DOWN: {[X_POS_ICONS, Y_POS_ICONS + (_forEachIndex * DIFFERENCE_ICONS), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_RIGHT_LEFT: {[X_POS_ICONS_SECOND - ((_forEachIndex+3) * DIFFERENCE_ICONS), Y_POS_ICONS_SECOND - (ICON_WIDTH / 2), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_LEFT_DOWN: {[LEFT_SIDE + (0.5 * ICON_WIDTH), Y_POS_ICONS + (_forEachIndex * DIFFERENCE_ICONS), ICON_WIDTH, ICON_WIDTH]};
|
||||
case TOP_LEFT_RIGHT: {[LEFT_SIDE + (0.5 * ICON_WIDTH) - ((_forEachIndex+3) * DIFFERENCE_ICONS), Y_POS_ICONS_SECOND, ICON_WIDTH, ICON_WIDTH]};
|
||||
default {[X_POS_ICONS, Y_POS_ICONS + (_forEachIndex * DIFFERENCE_ICONS), ICON_WIDTH, ICON_WIDTH]};
|
||||
};
|
||||
|
||||
_ctrl ctrlSetPosition _position;
|
||||
|
@ -23,9 +23,9 @@ if (typeName _text != "TEXT") then {
|
||||
if (count _text > 0) then {
|
||||
{
|
||||
if (typeName _x == "STRING" && {isLocalized _x}) then {
|
||||
_text set [_foreachIndex, localize _x];
|
||||
_text set [_forEachIndex, localize _x];
|
||||
};
|
||||
}foreach _text;
|
||||
}forEach _text;
|
||||
_text = format _text;
|
||||
};
|
||||
};
|
||||
|
@ -92,7 +92,7 @@ _bottomPosY = (_ctrlBcgCommonPos select 1) + _ctrlTextPosH + (_marginY * 2) + _b
|
||||
_xPos set [1, _bottomPosY];
|
||||
_x ctrlSetPosition _xPos;
|
||||
_x ctrlCommit 0;
|
||||
} foreach [
|
||||
} forEach [
|
||||
_ctrlBackgroundButtonOK,
|
||||
_ctrlBackgroundButtonMiddle,
|
||||
_ctrlBackgroundButtonCancel,
|
||||
|
@ -60,4 +60,4 @@ TRACE_1("Reading missionConfigFile params",_paramsArray);
|
||||
// Update the variable globaly and Force
|
||||
[_settingName, _settingValue, true, true] call FUNC(setSetting);
|
||||
};
|
||||
} foreach _paramsArray;
|
||||
} forEach _paramsArray;
|
||||
|
@ -25,7 +25,7 @@ _elements = [];
|
||||
|
||||
{
|
||||
_theElement = toArray (_x select _elementN);
|
||||
_indexes pushBack _foreachIndex;
|
||||
_indexes pushBack _forEachIndex;
|
||||
_elements pushBack _theElement;
|
||||
} forEach _array;
|
||||
|
||||
|
@ -57,7 +57,7 @@ if (_mode == 0) then {
|
||||
if (count _no > 0) exitWith {
|
||||
_found = true; //diag_log "found";
|
||||
};
|
||||
} foreach _wireCheckPosAr;
|
||||
} forEach _wireCheckPosAr;
|
||||
// Double coil found!
|
||||
if (_found) then {
|
||||
_mode = 1;
|
||||
|
@ -29,7 +29,7 @@ if ((_code) == "") exitWith {
|
||||
};
|
||||
{
|
||||
if ((_x select 0) == _name) exitWith {
|
||||
_speedDial set [_foreachindex, _this];
|
||||
_speedDial set [_forEachindex, _this];
|
||||
_found = true;
|
||||
};
|
||||
} forEach _speedDial;
|
||||
|
@ -116,7 +116,7 @@ _angle = _centerAngle - _angleSpan / 2;
|
||||
private ["_offset","_newPos"];
|
||||
_newPos = if (GVAR(UseListMenu)) then {
|
||||
[(_sPos select 0) + _scaleX,
|
||||
(_sPos select 1) + _scaleY * (_foreachindex - _numChildren/2 + 0.5)];
|
||||
(_sPos select 1) + _scaleY * (_forEachindex - _numChildren/2 + 0.5)];
|
||||
} else {
|
||||
[(_sPos select 0) - _scaleX * (cos _angle),
|
||||
(_sPos select 1) + _scaleY * (sin _angle)];
|
||||
|
@ -23,7 +23,7 @@ private ["_outputData"];
|
||||
_outputData = [] call FUNC(generateOutputData);
|
||||
|
||||
{
|
||||
ctrlSetText [_x , _outputData select _foreachindex];
|
||||
ctrlSetText [_x , _outputData select _forEachindex];
|
||||
} forEach [74100, 74200, 74201, 74300, 74301, 74302, 74303, 74304, 74305, 74400, 74401, 74500, 74600, 74601, 74602, 74603, 74604, 74605];
|
||||
|
||||
if (GVAR(referenceHeadingMenu) == 1) then {
|
||||
|
@ -34,10 +34,10 @@ if (count _log >= 8) then {
|
||||
_newLog = [];
|
||||
{
|
||||
// ensure the first element will not be added
|
||||
if (_foreachIndex > 0) then {
|
||||
if (_forEachIndex > 0) then {
|
||||
_newLog pushBack _x;
|
||||
};
|
||||
} foreach _log;
|
||||
} forEach _log;
|
||||
_log = _newLog;
|
||||
};
|
||||
_log pushBack [_message, _moment, _type, _arguments];
|
||||
|
@ -27,15 +27,15 @@ _amount = 1;
|
||||
{
|
||||
if ((_x select 0) == _newItem) exitWith {
|
||||
private "_info";
|
||||
_info = _log select _foreachIndex;
|
||||
_info = _log select _forEachIndex;
|
||||
_info set [1,(_info select 1) + 1];
|
||||
_info set [2, ACE_gameTime];
|
||||
_log set [_foreachIndex, _info];
|
||||
_log set [_forEachIndex, _info];
|
||||
|
||||
_amount = (_info select 1);
|
||||
_inList = true;
|
||||
};
|
||||
} foreach _log;
|
||||
} forEach _log;
|
||||
|
||||
if (!_inList) then {
|
||||
_log pushBack [_newItem, 1, ACE_gameTime];
|
||||
|
@ -20,5 +20,5 @@ if (typeName _this == typeName []) then {
|
||||
if (typeName _x == typeName {}) then {
|
||||
GVAR(unconsciousConditions) pushBack _x;
|
||||
};
|
||||
} foreach _this;
|
||||
} forEach _this;
|
||||
};
|
||||
|
@ -96,6 +96,6 @@ _medVeh = {([_caller] call FUNC(isInMedicalVehicle)) || ([_target] call FUNC(isI
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach _locations;
|
||||
} forEach _locations;
|
||||
|
||||
_return;
|
||||
|
@ -83,8 +83,8 @@ _createdLitter = [];
|
||||
if (typeName _x == "STRING") then {
|
||||
[_target, _x] call _createLitter;
|
||||
};
|
||||
} foreach _litterOptions;
|
||||
} forEach _litterOptions;
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach _litter;
|
||||
} forEach _litter;
|
||||
|
@ -80,7 +80,7 @@ if (_show) then {
|
||||
if !(isNil "_value") then {
|
||||
_totalIvVolume = _totalIvVolume + (_target getvariable [_x, 0]);
|
||||
};
|
||||
} foreach GVAR(IVBags);
|
||||
} forEach GVAR(IVBags);
|
||||
if (_totalIvVolume >= 1) then {
|
||||
_genericMessages pushBack [format[localize LSTRING(receivingIvVolume), floor _totalIvVolume], [1, 1, 1, 1]];
|
||||
};
|
||||
@ -108,7 +108,7 @@ if (_show) then {
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
||||
_bandagedwounds = _target getvariable [QGVAR(bandagedWounds), []];
|
||||
{
|
||||
@ -129,7 +129,7 @@ if (_show) then {
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach _bandagedwounds;
|
||||
} forEach _bandagedwounds;
|
||||
} else {
|
||||
_damaged = [true, true, true, true, true, true];
|
||||
{
|
||||
@ -175,23 +175,23 @@ if (_show) then {
|
||||
//_blue = _green;
|
||||
};
|
||||
};
|
||||
(_display displayCtrl (_availableSelections select _foreachIndex)) ctrlSetTextColor [_red, _green, _blue, 1.0];
|
||||
} foreach _selectionBloodLoss;
|
||||
(_display displayCtrl (_availableSelections select _forEachIndex)) ctrlSetTextColor [_red, _green, _blue, 1.0];
|
||||
} forEach _selectionBloodLoss;
|
||||
|
||||
_lbCtrl = (_display displayCtrl 200);
|
||||
lbClear _lbCtrl;
|
||||
{
|
||||
_x params ["_add", "_color"];
|
||||
_lbCtrl lbAdd _add;
|
||||
_lbCtrl lbSetColor [_foreachIndex, _color];
|
||||
} foreach _genericMessages;
|
||||
_lbCtrl lbSetColor [_forEachIndex, _color];
|
||||
} forEach _genericMessages;
|
||||
|
||||
_amountOfGeneric = count _genericMessages;
|
||||
{
|
||||
_x params ["_add", "_color"];
|
||||
_lbCtrl lbAdd _add;
|
||||
_lbCtrl lbSetColor [_foreachIndex + _amountOfGeneric, _color];
|
||||
} foreach _allInjuryTexts;
|
||||
_lbCtrl lbSetColor [_forEachIndex + _amountOfGeneric, _color];
|
||||
} forEach _allInjuryTexts;
|
||||
if (count _allInjuryTexts == 0) then {
|
||||
_lbCtrl lbAdd (localize LSTRING(NoInjuriesBodypart));
|
||||
};
|
||||
@ -210,12 +210,12 @@ if (_show) then {
|
||||
|
||||
{
|
||||
if (typeName _x == "STRING" && {isLocalized _x}) then {
|
||||
_arguments set [_foreachIndex, localize _x];
|
||||
_arguments set [_forEachIndex, localize _x];
|
||||
};
|
||||
} foreach _arguments;
|
||||
} forEach _arguments;
|
||||
_message = format([_message] + _arguments);
|
||||
_logCtrl lbAdd format["%1 %2", _moment, _message];
|
||||
} foreach _logs;
|
||||
} forEach _logs;
|
||||
|
||||
_triageStatus = [_target] call FUNC(getTriageStatus);
|
||||
(_display displayCtrl 303) ctrlSetText (_triageStatus select 0);
|
||||
|
@ -55,14 +55,14 @@ if (_show) then {
|
||||
};
|
||||
};
|
||||
_triageCardTexts pushBack format["%1x - %2", _amount, _message];
|
||||
} foreach _log;
|
||||
} forEach _log;
|
||||
|
||||
if (count _triageCardTexts == 0) then {
|
||||
_lbCtrl lbAdd (localize LSTRING(TriageCard_NoEntry));
|
||||
};
|
||||
{
|
||||
_lbCtrl lbAdd _x;
|
||||
} foreach _triageCardTexts;
|
||||
} forEach _triageCardTexts;
|
||||
|
||||
_triageStatus = [_target] call FUNC(getTriageStatus);
|
||||
|
||||
|
@ -33,12 +33,12 @@ if (GVAR(level) >= 2) then {
|
||||
|
||||
// (((BLOODLOSS_SMALL_WOUNDS * (_x select 0))) + ((BLOODLOSS_MEDIUM_WOUNDS * (_x select 1))) + ((BLOODLOSS_LARGE_WOUNDS * (_x select 2))) * (_cardiacOutput / DEFAULT_CARDIAC_OUTPUT));
|
||||
};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
||||
_internalWounds = _unit getvariable [QGVAR(internalWounds), []];
|
||||
{
|
||||
_totalBloodLoss = _totalBloodLoss + ((_x select 4) * (_x select 3));
|
||||
} foreach _internalWounds;
|
||||
} forEach _internalWounds;
|
||||
|
||||
// cap the blood loss to be no greater as the current cardiac output
|
||||
//(_totalBloodLoss min _cardiacOutput);
|
||||
|
@ -41,13 +41,13 @@ if (_bloodVolume < 100.0) then {
|
||||
_ivVolume = (_unit getvariable [_x, 0]) + IV_CHANGE_PER_SECOND;
|
||||
_unit setvariable [_x,_ivVolume];
|
||||
};
|
||||
} foreach GVAR(IVBags);
|
||||
} forEach GVAR(IVBags);
|
||||
} else {
|
||||
{
|
||||
if ((_unit getvariable [_x, 0]) > 0) then {
|
||||
_unit setvariable [_x, 0]; // lets get rid of exessive IV volume
|
||||
};
|
||||
} foreach GVAR(IVBags);
|
||||
} forEach GVAR(IVBags);
|
||||
};
|
||||
|
||||
_bloodVolumeChange;
|
||||
|
@ -35,18 +35,18 @@ if (!(_unit getvariable [QGVAR(inCardiacArrest),false])) then {
|
||||
|
||||
if ( (_time - 1) <= 0) then {
|
||||
_time = 0;
|
||||
_adjustment set [_foreachIndex, ObjNull];
|
||||
_adjustment set [_forEachIndex, ObjNull];
|
||||
[_unit] call _callBack;
|
||||
} else {
|
||||
_time = _time - 1;
|
||||
_adjustment set [_foreachIndex, [_values - _change, _time]];
|
||||
_adjustment set [_forEachIndex, [_values - _change, _time]];
|
||||
};
|
||||
} else {
|
||||
_adjustment set [_foreachIndex, ObjNull];
|
||||
_adjustment set [_forEachIndex, ObjNull];
|
||||
[_unit] call _callBack;
|
||||
};
|
||||
|
||||
} foreach _adjustment;
|
||||
} forEach _adjustment;
|
||||
_adjustment = _adjustment - [ObjNull];
|
||||
_unit setvariable [QGVAR(heartRateAdjustments), _adjustment];
|
||||
|
||||
|
@ -25,6 +25,6 @@ _return = false;
|
||||
if (typeName _x == typeName {} && {([_unit] call _x)}) exitWith {
|
||||
_return = true;
|
||||
};
|
||||
} foreach GVAR(unconsciousConditions);
|
||||
} forEach GVAR(unconsciousConditions);
|
||||
|
||||
_return
|
||||
|
@ -60,11 +60,11 @@ _bandagedInjury = [];
|
||||
_exist = true;
|
||||
_existingInjury = _x;
|
||||
_existingInjury set [3, (_existingInjury select 3) + _impact];
|
||||
_bandagedWounds set [_foreachIndex, _existingInjury];
|
||||
_bandagedWounds set [_forEachIndex, _existingInjury];
|
||||
|
||||
_bandagedInjury = _existingInjury;
|
||||
};
|
||||
} foreach _bandagedWounds;
|
||||
} forEach _bandagedWounds;
|
||||
|
||||
if !(_exist) then {
|
||||
// [ID, classID, bodypart, percentage treated, bloodloss rate]
|
||||
@ -97,9 +97,9 @@ if (random(1) <= _reopeningChance) then {
|
||||
_exist = true;
|
||||
_existingInjury = _x;
|
||||
_existingInjury set [3, ((_existingInjury select 3) - _impact) max 0];
|
||||
_bandagedWounds set [_foreachIndex, _existingInjury];
|
||||
_bandagedWounds set [_forEachIndex, _existingInjury];
|
||||
};
|
||||
} foreach _bandagedWounds;
|
||||
} forEach _bandagedWounds;
|
||||
|
||||
if (_exist) then {
|
||||
_target setvariable [QGVAR(bandagedWounds), _bandagedWounds, true];
|
||||
|
@ -52,7 +52,7 @@ if(!GVAR(litterPFHRunning) && {GVAR(litterCleanUpDelay) > 0}) then {
|
||||
{
|
||||
deleteVehicle _x;
|
||||
} forEach _objects;
|
||||
GVAR(allCreatedLitter) set[_foreachIndex, objNull];
|
||||
GVAR(allCreatedLitter) set[_forEachIndex, objNull];
|
||||
};
|
||||
} forEach GVAR(allCreatedLitter);
|
||||
GVAR(allCreatedLitter) = GVAR(allCreatedLitter) - [objNull];
|
||||
|
@ -29,7 +29,7 @@ TRACE_4("ACE_DEBUG: HandleDamage BASIC",_unit, _damageBodyParts,_cache_params,_c
|
||||
if (_part < 0) exitWith {};
|
||||
|
||||
private ["_newDamage", "_pain"];
|
||||
_newDamage = (_cache_damages select _foreachIndex);
|
||||
_newDamage = (_cache_damages select _forEachIndex);
|
||||
_damageBodyParts set [_part, (_damageBodyParts select _part) + _newDamage];
|
||||
_unit setvariable [QGVAR(bodyPartStatus), _damageBodyParts];
|
||||
|
||||
@ -43,7 +43,7 @@ TRACE_4("ACE_DEBUG: HandleDamage BASIC",_unit, _damageBodyParts,_cache_params,_c
|
||||
_pain = _pain + (_newDamage / 4) * (1 - (_unit getVariable [QGVAR(morphine), 0]));
|
||||
_unit setVariable [QGVAR(pain), _pain min 1, true];
|
||||
};
|
||||
}foreach _cache_params;
|
||||
}forEach _cache_params;
|
||||
|
||||
// We broadcast the value across the net here, in order to avoid broadcasting it multiple times earlier in the above code block
|
||||
_target setvariable [QGVAR(bodyPartStatus), _damageBodyParts, true];
|
||||
@ -56,5 +56,5 @@ _target setHitPointDamage ["hitHands", (_handsDamageR + _handsDamageL) min 0.95]
|
||||
_target setHitPointDamage ["hitLegs", (_legsDamageR + _legsDamageL) min 0.95];
|
||||
|
||||
{
|
||||
_target setHitPointDamage [_x, (_damageBodyParts select _foreachIndex) min 0.95];
|
||||
}foreach GVAR(HITPOINTS);
|
||||
_target setHitPointDamage [_x, (_damageBodyParts select _forEachIndex) min 0.95];
|
||||
}forEach GVAR(HITPOINTS);
|
||||
|
@ -85,9 +85,9 @@ if (diag_frameno > (_unit getVariable [QGVAR(frameNo_damageCaching), -3]) + 2) t
|
||||
_cache_params = _unit getVariable [QGVAR(cachedHandleDamageParams), []];
|
||||
_cache_damages = _unit getVariable QGVAR(cachedDamages);
|
||||
{
|
||||
_params = _x + [_cache_damages select _foreachIndex];
|
||||
_params = _x + [_cache_damages select _forEachIndex];
|
||||
_params call FUNC(handleDamage_advanced);
|
||||
} foreach _cache_params;
|
||||
} forEach _cache_params;
|
||||
[_unit] call FUNC(handleDamage_advancedSetDamage);
|
||||
};
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
|
@ -38,9 +38,9 @@ _foundIndex = -1;
|
||||
{
|
||||
// Check if we have an id of the given class on the given bodypart already
|
||||
if (_x select 1 == _toAddClassID && {_x select 2 == _bodyPartNToAdd}) exitWith {
|
||||
_foundIndex = _foreachIndex;
|
||||
_foundIndex = _forEachIndex;
|
||||
};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
||||
if (_foundIndex < 0) then {
|
||||
// Since it is a new injury, we will have to add it to the open wounds array to store it
|
||||
@ -50,7 +50,7 @@ _foundIndex = -1;
|
||||
_injury = _openWounds select _foundIndex;
|
||||
_injury set [3, (_injury select 3) + 1];
|
||||
};
|
||||
} foreach _woundsCreated;
|
||||
} forEach _woundsCreated;
|
||||
|
||||
_unit setvariable [QGVAR(openWounds), _openWounds, true];
|
||||
|
||||
|
@ -59,7 +59,7 @@ _allPossibleInjuries = [];
|
||||
|
||||
// Find the wound which has the highest minimal damage, so we can use this later on for adding the correct injuries
|
||||
if (_minDamage > _highestPossibleDamage) then {
|
||||
_highestPossibleSpot = _foreachIndex;
|
||||
_highestPossibleSpot = _forEachIndex;
|
||||
_highestPossibleDamage = _minDamage;
|
||||
};
|
||||
|
||||
@ -67,7 +67,7 @@ _allPossibleInjuries = [];
|
||||
_allPossibleInjuries pushBack _x;
|
||||
};
|
||||
};
|
||||
} foreach _allInjuriesForDamageType;
|
||||
} forEach _allInjuriesForDamageType;
|
||||
|
||||
// No possible wounds available for this damage type or damage amount.
|
||||
if (_highestPossibleSpot < 0) exitWith {};
|
||||
@ -93,9 +93,9 @@ _woundsCreated = [];
|
||||
{
|
||||
// Check if we have an id of the given class on the given bodypart already
|
||||
if (_x select 1 == _toAddClassID && {_x select 2 == _bodyPartNToAdd}) exitWith {
|
||||
_foundIndex = _foreachIndex;
|
||||
_foundIndex = _forEachIndex;
|
||||
};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
};
|
||||
|
||||
_injury = [];
|
||||
@ -120,7 +120,7 @@ _woundsCreated = [];
|
||||
_painToAdd = _painToAdd + (_toAddInjury select 3);
|
||||
};
|
||||
};
|
||||
} foreach (_injuryTypeInfo select 0); // foreach damage thresholds
|
||||
} forEach (_injuryTypeInfo select 0); // forEach damage thresholds
|
||||
|
||||
_unit setvariable [QGVAR(openWounds), _openWounds, true];
|
||||
|
||||
|
@ -187,6 +187,6 @@ if (GVAR(level) >= 2) then {
|
||||
if !(isNil "_value") then {
|
||||
_unit setvariable [_x,(_unit getvariable [_x, 0]), true];
|
||||
};
|
||||
} foreach GVAR(IVBags);
|
||||
} forEach GVAR(IVBags);
|
||||
};
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ if ((vehicle _medic != _medic) && {[vehicle _medic] call FUNC(isMedicalVehicle)}
|
||||
if ([_medic, _x] call FUNC(canAccessMedicalEquipment) && {([_x, _item] call EFUNC(common,hasItem))}) exitWith {
|
||||
_return = true;
|
||||
};
|
||||
} foreach _crew;
|
||||
} forEach _crew;
|
||||
};
|
||||
|
||||
_return
|
||||
|
@ -27,6 +27,6 @@ _return = true;
|
||||
if (typeName _x == "STRING" && {!([_medic, _patient, _x] call FUNC(hasItem))}) exitWith {
|
||||
_return = false;
|
||||
};
|
||||
}foreach _items;
|
||||
}forEach _items;
|
||||
|
||||
_return
|
||||
|
@ -71,13 +71,13 @@ private ["_allUsedMedication", "_logs"];
|
||||
_allUsedMedication = _unit getVariable [QGVAR(allUsedMedication), []];
|
||||
{
|
||||
_unit setvariable [_x select 0, nil];
|
||||
} foreach _allUsedMedication;
|
||||
} forEach _allUsedMedication;
|
||||
_unit setVariable [QGVAR(allUsedMedication), [], true];
|
||||
|
||||
_logs = _unit getvariable [QGVAR(allLogs), []];
|
||||
{
|
||||
_unit setvariable [_x, nil];
|
||||
} foreach _logs;
|
||||
} forEach _logs;
|
||||
_unit setvariable [QGVAR(allLogs), [], true];
|
||||
|
||||
// items
|
||||
|
@ -42,13 +42,13 @@ _objects = (lineIntersectsWith [_unit modelToWorldVisual [0, 0, (_eyePos select
|
||||
if (((typeOf _x) in _medicalFacility) || (_x getVariable [QGVAR(isMedicalFacility),false])) exitWith {
|
||||
_isInBuilding = true;
|
||||
};
|
||||
} foreach _objects;
|
||||
} forEach _objects;
|
||||
if (!_isInBuilding) then {
|
||||
_objects = position _unit nearObjects 7.5;
|
||||
{
|
||||
if (((typeOf _x) in _medicalFacility) || (_x getVariable [QGVAR(isMedicalFacility),false])) exitWith {
|
||||
_isInBuilding = true;
|
||||
};
|
||||
} foreach _objects;
|
||||
} forEach _objects;
|
||||
};
|
||||
_isInBuilding;
|
||||
|
@ -25,6 +25,6 @@ _openWounds = _unit getvariable [QGVAR(openWounds), []];
|
||||
{
|
||||
// total bleeding ratio * percentage of injury left
|
||||
_totalBloodLoss = _totalBloodLoss + ((_x select 4) * (_x select 3));
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
||||
(_totalBloodLoss == 0);
|
||||
|
@ -38,4 +38,4 @@ _openWounds = _target getvariable [QGVAR(openWounds), []];
|
||||
if (_amountOf > 0 && {(_selectionN == _selectionX)} && {_x4 > 0}) exitWith {
|
||||
_actionData set [2, QUOTE(PATHTOF(UI\icons\medical_crossRed.paa))];
|
||||
};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
@ -24,7 +24,7 @@ if (!isNull _logic) then {
|
||||
if (local _x) then {
|
||||
_x setvariable[QGVAR(isMedicalFacility), true, true];
|
||||
};
|
||||
} foreach _objects;
|
||||
} forEach _objects;
|
||||
};
|
||||
|
||||
true;
|
||||
|
@ -29,12 +29,12 @@ _allUsedMedication = _target getvariable [QGVAR(allUsedMedication), []];
|
||||
if !(_className in _allMedsFromClassname) then {
|
||||
_allMedsFromClassname pushBack _className;
|
||||
_x set [1, _allMedsFromClassname];
|
||||
_allUsedMedication set [_foreachIndex, _x];
|
||||
_allUsedMedication set [_forEachIndex, _x];
|
||||
_target setvariable [QGVAR(allUsedMedication), _allUsedMedication];
|
||||
};
|
||||
_foundEntry = true;
|
||||
};
|
||||
} foreach _allUsedMedication;
|
||||
} forEach _allUsedMedication;
|
||||
|
||||
if (!_foundEntry) then {
|
||||
_allUsedMedication pushBack [_variable, [_className]];
|
||||
@ -55,8 +55,8 @@ _hasOverDosed = 0;
|
||||
if ({_x == _med} count _classNamesUsed > _limit) then {
|
||||
_hasOverDosed = _hasOverDosed + 1;
|
||||
};
|
||||
} foreach _allUsedMedication;
|
||||
} foreach _incompatabileMeds;
|
||||
} forEach _allUsedMedication;
|
||||
} forEach _incompatabileMeds;
|
||||
|
||||
if (_hasOverDosed > 0 && GVAR(enableOverdosing)) then {
|
||||
_medicationConfig = (configFile >> "ACE_Medical_Advanced" >> "Treatment" >> "Medication");
|
||||
|
@ -25,9 +25,9 @@ if (!local _unit) then {
|
||||
{
|
||||
if (_x select 0 == _injuryID) exitWith {
|
||||
_exists = true;
|
||||
_openWounds set [_foreachIndex, _injury];
|
||||
_openWounds set [_forEachIndex, _injury];
|
||||
};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
||||
if (!_exists) then {
|
||||
_openWounds pushBack _injury;
|
||||
|
@ -20,5 +20,5 @@ if (local _unit && !(local _originOfrequest)) then {
|
||||
_openWounds = _unit getvariable [QGVAR(openWounds), []];
|
||||
{
|
||||
["medical_propagateWound", [_originOfrequest], [_unit, _x]] call EFUNC(common,targetEvent);
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
};
|
||||
|
@ -109,7 +109,7 @@ _selectionSpecific = getNumber(_damageTypesConfig >> "selectionSpecific");
|
||||
if (_type in (_x select 5)) then {
|
||||
_woundTypes pushBack _x;
|
||||
};
|
||||
} foreach _allWoundClasses;
|
||||
} forEach _allWoundClasses;
|
||||
_typeThresholds = _thresholds;
|
||||
_selectionSpecificType = _selectionSpecific;
|
||||
if (isClass(_damageTypesConfig >> _x)) then {
|
||||
@ -129,11 +129,11 @@ _selectionSpecific = getNumber(_damageTypesConfig >> "selectionSpecific");
|
||||
_minDamageThresholds = _minDamageThresholds + ":";
|
||||
_amountThresholds = _amountThresholds + ":";
|
||||
};
|
||||
} foreach _typeThresholds;
|
||||
} forEach _typeThresholds;
|
||||
|
||||
"ace_medical" callExtension format ["addDamageType,%1,%2,%3,%4,%5", _type, GVAR(minLethalDamages) select _foreachIndex, _minDamageThresholds, _amountThresholds, _selectionSpecificType];
|
||||
"ace_medical" callExtension format ["addDamageType,%1,%2,%3,%4,%5", _type, GVAR(minLethalDamages) select _forEachIndex, _minDamageThresholds, _amountThresholds, _selectionSpecificType];
|
||||
|
||||
} foreach _allFoundDamageTypes;
|
||||
} forEach _allFoundDamageTypes;
|
||||
|
||||
|
||||
// Extension loading
|
||||
@ -151,7 +151,7 @@ _selectionSpecific = getNumber(_damageTypesConfig >> "selectionSpecific");
|
||||
if (_forEachIndex < (count _selections) - 1) then {
|
||||
_allowedSelections = _allowedSelections + ":";
|
||||
};
|
||||
} foreach _selections;
|
||||
} forEach _selections;
|
||||
|
||||
_causes = "";
|
||||
|
||||
@ -160,11 +160,11 @@ _selectionSpecific = getNumber(_damageTypesConfig >> "selectionSpecific");
|
||||
if (_forEachIndex < (count _causesArray) - 1) then {
|
||||
_causes = _causes + ":";
|
||||
};
|
||||
} foreach _causesArray;
|
||||
} forEach _causesArray;
|
||||
_classDisplayName = _x select 6;
|
||||
|
||||
"ace_medical" callExtension format["addInjuryType,%1,%2,%3,%4,%5,%6,%7,%8,%9", _classID, _className, _allowedSelections, _bloodLoss, _pain, _minDamage, _maxDamage, _causes, _classDisplayName];
|
||||
|
||||
} foreach _allWoundClasses;
|
||||
} forEach _allWoundClasses;
|
||||
|
||||
"ace_medical" callExtension "ConfigComplete";
|
||||
|
@ -108,7 +108,7 @@ if ("All" in _locations) then {
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach _locations;
|
||||
} forEach _locations;
|
||||
};
|
||||
|
||||
if !(_return) exitWith {false};
|
||||
|
@ -31,6 +31,6 @@ if !([_target] call FUNC(hasMedicalEnabled)) exitWith {
|
||||
if (_x != "") then {
|
||||
[_target, _x] call FUNC(addToTriageCard);
|
||||
};
|
||||
}foreach _items;*/
|
||||
}forEach _items;*/
|
||||
|
||||
true;
|
||||
|
@ -60,7 +60,7 @@ _exit = false;
|
||||
TRACE_2("Wound classes: ", _specificClass, _classID);
|
||||
if (_specificClass == _classID) exitWith {
|
||||
_effectivenessFound = _woundEffectivenss;
|
||||
_mostEffectiveSpot = _foreachIndex;
|
||||
_mostEffectiveSpot = _forEachIndex;
|
||||
_mostEffectiveInjury = _x;
|
||||
_exit = true;
|
||||
};
|
||||
@ -68,12 +68,12 @@ _exit = false;
|
||||
// Check if this is the currently most effective found.
|
||||
if (_woundEffectivenss * ((_x select 4) * (_x select 3)) > _effectivenessFound * ((_mostEffectiveInjury select 4) * (_mostEffectiveInjury select 3))) then {
|
||||
_effectivenessFound = _woundEffectivenss;
|
||||
_mostEffectiveSpot = _foreachIndex;
|
||||
_mostEffectiveSpot = _forEachIndex;
|
||||
_mostEffectiveInjury = _x;
|
||||
};
|
||||
};
|
||||
if (_exit) exitWith {};
|
||||
} foreach _openWounds;
|
||||
} forEach _openWounds;
|
||||
|
||||
if (_effectivenessFound == -1) exitWith {}; // Seems everything is patched up on this body part already..
|
||||
|
||||
|
@ -63,7 +63,7 @@ if (alive _target) exitWith {
|
||||
_allUsedMedication = _target getVariable [QGVAR(allUsedMedication), []];
|
||||
{
|
||||
_target setvariable [_x select 0, nil];
|
||||
} foreach _allUsedMedication;
|
||||
} forEach _allUsedMedication;
|
||||
|
||||
// Resetting damage
|
||||
_target setDamage 0;
|
||||
|
@ -27,7 +27,7 @@ params ["_caller", "_target", "_selectionName", "_className", "_items"];
|
||||
[_target, "activity", LSTRING(Activity_usedItem), [[_caller] call EFUNC(common,getName), getText (configFile >> "CfgWeapons" >> _x >> "displayName")]] call FUNC(addToLog);
|
||||
[_target, "activity_view", LSTRING(Activity_usedItem), [[_caller] call EFUNC(common,getName), getText (configFile >> "CfgWeapons" >> _x >> "displayName")]] call FUNC(addToLog);
|
||||
};
|
||||
} foreach _items;
|
||||
} forEach _items;
|
||||
|
||||
|
||||
true;
|
||||
|
@ -44,7 +44,7 @@ _target setHitPointDamage ["hitHands", (_handsDamageR + _handsDamageL) min 0.95]
|
||||
_target setHitPointDamage ["hitLegs", (_legsDamageR + _legsDamageL) min 0.95];
|
||||
|
||||
{
|
||||
_target setHitPointDamage [_x, (_damageBodyParts select _foreachIndex) min 0.95];
|
||||
}foreach GVAR(HITPOINTS);
|
||||
_target setHitPointDamage [_x, (_damageBodyParts select _forEachIndex) min 0.95];
|
||||
}forEach GVAR(HITPOINTS);
|
||||
|
||||
true;
|
||||
|
@ -55,7 +55,7 @@ if ((_weaponSelect params [["_previousWeapon", ""]]) && {(_previousWeapon != "")
|
||||
{
|
||||
_x params ["_unit", "_item"];
|
||||
_unit addItem _item;
|
||||
} foreach _usersOfItems;
|
||||
} forEach _usersOfItems;
|
||||
|
||||
// Record specific callback
|
||||
_config = (configFile >> "ACE_Medical_Actions" >> "Basic" >> _className);
|
||||
|
@ -41,7 +41,7 @@ if ([vehicle _medic] call FUNC(isMedicalVehicle) && {vehicle _medic != _medic})
|
||||
_return = [true, _x];
|
||||
[[_x, _item], QUOTE(EFUNC(common,useItem)), _x] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
|
||||
};
|
||||
} foreach _crew;
|
||||
} forEach _crew;
|
||||
};
|
||||
|
||||
_return
|
||||
|
@ -25,7 +25,7 @@ _itemsUsedBy = [];
|
||||
{
|
||||
_itemUsedInfo = [_medic, _patient, _x] call FUNC(useItem);
|
||||
if (_itemUsedInfo select 0) exitWith { _itemsUsedBy pushBack [(_itemUsedInfo select 1), _x]};
|
||||
} foreach _x;
|
||||
} forEach _x;
|
||||
};
|
||||
|
||||
// handle required item
|
||||
@ -33,6 +33,6 @@ _itemsUsedBy = [];
|
||||
_itemUsedInfo = [_medic, _patient, _x] call FUNC(useItem);
|
||||
if (_itemUsedInfo select 0) exitWith { _itemsUsedBy pushBack [(_itemUsedInfo select 1), _x]};
|
||||
};
|
||||
} foreach _items;
|
||||
} forEach _items;
|
||||
|
||||
[count _items == count _itemsUsedBy, _itemsUsedBy];
|
||||
|
@ -32,7 +32,7 @@ lbClear _logCtrl;
|
||||
|
||||
{
|
||||
if (typeName _x == "STRING" && {isLocalized _x}) then {
|
||||
_arguments set [_foreachIndex, localize _x];
|
||||
_arguments set [_forEachIndex, localize _x];
|
||||
};
|
||||
} forEach _arguments;
|
||||
|
||||
|
@ -32,7 +32,7 @@ lbClear _logCtrl;
|
||||
|
||||
{
|
||||
if (typeName _x == "STRING" && {isLocalized _x}) then {
|
||||
_arguments set [_foreachIndex, localize _x];
|
||||
_arguments set [_forEachIndex, localize _x];
|
||||
};
|
||||
} forEach _arguments;
|
||||
|
||||
|
@ -7,5 +7,5 @@
|
||||
if !(_x select 8 in GVAR(categories)) then {
|
||||
GVAR(categories) pushBack (_x select 8);
|
||||
};
|
||||
}foreach EGVAR(common,settings);
|
||||
}forEach EGVAR(common,settings);
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
@ -57,7 +57,7 @@ if ((_settingIndex >= 0) && {_settingIndex <= (count _collection)}) then {
|
||||
_settingsValue = [0, 1] select _settingsValue;
|
||||
} else {
|
||||
lbClear 400;
|
||||
{ lbAdd [400, _x]; } foreach _possibleValues;
|
||||
{ lbAdd [400, _x]; } forEach _possibleValues;
|
||||
};
|
||||
(_settingsMenu displayCtrl 400) lbSetCurSel _settingsValue;
|
||||
};
|
||||
|
@ -50,7 +50,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
_added = _ctrlList lnbAddRow [_settingName, _settingsText];
|
||||
_ctrlList lnbSetValue [[_added, 0], _forEachIndex];
|
||||
};
|
||||
}foreach GVAR(serverSideOptions);
|
||||
}forEach GVAR(serverSideOptions);
|
||||
};
|
||||
case (MENU_TAB_SERVER_COLORS): {
|
||||
{
|
||||
@ -70,7 +70,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
_ctrlList lnbSetColor [[_added, 1], (_x select 9)];
|
||||
_ctrlList lnbSetValue [[_added, 0], _forEachIndex];
|
||||
};
|
||||
}foreach GVAR(serverSideColors);
|
||||
}forEach GVAR(serverSideColors);
|
||||
};
|
||||
case (MENU_TAB_SERVER_VALUES): {
|
||||
{
|
||||
@ -87,7 +87,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
_added = _ctrlList lnbAddRow [_settingName, _settingsValue];
|
||||
_ctrlList lnbSetValue [[_added, 0], _forEachIndex];
|
||||
};
|
||||
}foreach GVAR(serverSideValues);
|
||||
}forEach GVAR(serverSideValues);
|
||||
};
|
||||
};
|
||||
if (_updateKeyView) then {
|
||||
|
@ -58,7 +58,7 @@ if ((_settingIndex >= 0) && {_settingIndex <= (count _collection)}) then {
|
||||
_settingsValue = [0, 1] select _settingsValue;
|
||||
} else {
|
||||
lbClear 400;
|
||||
{ lbAdd [400, _x]; } foreach _possibleValues;
|
||||
{ lbAdd [400, _x]; } forEach _possibleValues;
|
||||
};
|
||||
(_settingsMenu displayCtrl 400) lbSetCurSel _settingsValue;
|
||||
};
|
||||
|
@ -43,7 +43,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
_added = _ctrlList lnbAddRow [_settingName, _settingsText];
|
||||
_ctrlList lnbSetValue [[_added, 0], _forEachIndex];
|
||||
};
|
||||
} foreach GVAR(clientSideOptions);
|
||||
} forEach GVAR(clientSideOptions);
|
||||
};
|
||||
case (MENU_TAB_COLORS): {
|
||||
{
|
||||
@ -59,7 +59,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
_ctrlList lnbSetColor [[_added, 1], (_x select 9)];
|
||||
_ctrlList lnbSetValue [[_added, 0], _forEachIndex];
|
||||
};
|
||||
}foreach GVAR(clientSideColors);
|
||||
}forEach GVAR(clientSideColors);
|
||||
};
|
||||
};
|
||||
if (_updateKeyView) then {
|
||||
|
@ -25,7 +25,7 @@ _isEven = {
|
||||
if (_forEachIndex <= _index && {_x == 39}) then {
|
||||
_count = _count + 1;
|
||||
};
|
||||
}foreach _array;
|
||||
}forEach _array;
|
||||
|
||||
_count %2 == 0;
|
||||
};
|
||||
@ -35,9 +35,9 @@ _isEven = {
|
||||
_array = toArray _str;
|
||||
{
|
||||
if (_x == 34) then {
|
||||
_array set [_foreachIndex, 39];
|
||||
_array set [_forEachIndex, 39];
|
||||
};
|
||||
}foreach _array;
|
||||
}forEach _array;
|
||||
|
||||
_maxIndex = count _array;
|
||||
for "_i" from 0 to _maxIndex /* step +1 */ do {
|
||||
@ -52,8 +52,8 @@ for "_i" from 0 to _maxIndex /* step +1 */ do {
|
||||
|
||||
{
|
||||
if (_x == 34) then {
|
||||
_array set [_foreachIndex, 39];
|
||||
_array set [_forEachIndex, 39];
|
||||
};
|
||||
}foreach _array;
|
||||
}forEach _array;
|
||||
|
||||
toString _array;
|
||||
|
@ -38,7 +38,7 @@ switch (_type) do {
|
||||
} ;
|
||||
|
||||
};
|
||||
} foreach GVAR(clientSideOptions);
|
||||
} forEach GVAR(clientSideOptions);
|
||||
};
|
||||
case (MENU_TAB_COLORS): {
|
||||
{
|
||||
@ -46,7 +46,7 @@ switch (_type) do {
|
||||
_changed = true;
|
||||
_x set [9, _newValue];
|
||||
};
|
||||
} foreach GVAR(clientSideColors);
|
||||
} forEach GVAR(clientSideColors);
|
||||
};
|
||||
case (MENU_TAB_SERVER_OPTIONS): {
|
||||
{
|
||||
@ -62,7 +62,7 @@ switch (_type) do {
|
||||
} ;
|
||||
|
||||
};
|
||||
} foreach GVAR(serverSideOptions);
|
||||
} forEach GVAR(serverSideOptions);
|
||||
};
|
||||
case (MENU_TAB_SERVER_COLORS): {
|
||||
{
|
||||
@ -70,7 +70,7 @@ switch (_type) do {
|
||||
_changed = true;
|
||||
_x set [9, _newValue];
|
||||
};
|
||||
} foreach GVAR(serverSideColors);
|
||||
} forEach GVAR(serverSideColors);
|
||||
};
|
||||
case (MENU_TAB_SERVER_VALUES): {
|
||||
{
|
||||
@ -78,7 +78,7 @@ switch (_type) do {
|
||||
_changed = true;
|
||||
_x set [9, _newValue];
|
||||
};
|
||||
} foreach GVAR(serverSideValues);
|
||||
} forEach GVAR(serverSideValues);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -35,7 +35,7 @@ _newOptics = [_player] call FUNC(getOptics);
|
||||
{
|
||||
if (_newOptics select _forEachIndex != _x) then {
|
||||
// The optic for this weapon changed, set adjustment to zero
|
||||
if (!((_adjustment select _foreachindex) isEqualTo [0, 0, 0])) then {
|
||||
if (!((_adjustment select _forEachindex) isEqualTo [0, 0, 0])) then {
|
||||
_adjustment set [_forEachIndex, [0, 0, 0]];
|
||||
[ACE_player, QGVAR(Adjustment), _adjustment, 0.5] call EFUNC(common,setVariablePublic);
|
||||
};
|
||||
|
@ -21,4 +21,4 @@ if (!(_object getvariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitWith {}
|
||||
|
||||
{
|
||||
_x addCuratorEditableObjects [[_object], true];
|
||||
}foreach allCurators;
|
||||
}forEach allCurators;
|
||||
|
@ -86,7 +86,7 @@ if (_activated) then {
|
||||
_addonsList = [];
|
||||
{
|
||||
_addonsList = _addonsList + (unitaddons typeOf _x);
|
||||
} foreach (entities "all");
|
||||
} forEach (entities "all");
|
||||
removeallcuratoraddons _logic;
|
||||
_logic addcuratoraddons _addonsList;
|
||||
};
|
||||
@ -141,7 +141,7 @@ if (_activated) then {
|
||||
case (_ownerUID > 0): {
|
||||
{
|
||||
if (getplayeruid _x == _ownerVar) exitWith {_player = _x;};
|
||||
} foreach playableunits;
|
||||
} forEach playableunits;
|
||||
};
|
||||
default {
|
||||
_player = missionnamespace getvariable [_ownerVar,objnull];
|
||||
@ -155,7 +155,7 @@ if (_activated) then {
|
||||
//--- Add radio channels
|
||||
{
|
||||
_x radiochanneladd [_player];
|
||||
} foreach (_logic getvariable ["channels",[]]);
|
||||
} forEach (_logic getvariable ["channels",[]]);
|
||||
|
||||
// Added by ace_zeus to delay ascension message at mission start
|
||||
[{
|
||||
@ -168,7 +168,7 @@ if (_activated) then {
|
||||
if (isplayer _x) then {
|
||||
[["CuratorAssign",[_name,name _player]],"bis_fnc_showNotification",_x] call bis_fnc_mp;
|
||||
};
|
||||
} foreach (curatoreditableobjects _logic);
|
||||
} forEach (curatoreditableobjects _logic);
|
||||
};
|
||||
},[_logic,_player]] call EFUNC(common,execNextFrame);
|
||||
|
||||
@ -199,7 +199,7 @@ if (_activated) then {
|
||||
//--- Add radio channels
|
||||
{
|
||||
_x radiochannelremove [_player];
|
||||
} foreach (_logic getvariable ["channels",[]]);
|
||||
} forEach (_logic getvariable ["channels",[]]);
|
||||
|
||||
//--- Unassign
|
||||
waituntil {unassigncurator _logic; isnull (getassignedcuratorunit _logic) || isnull _logic};
|
||||
@ -216,10 +216,10 @@ if (_activated) then {
|
||||
if !(_x in _addons) then {_addons set [count _addons,_x];};
|
||||
{
|
||||
if !(_x in _addons) then {_addons set [count _addons,_x];};
|
||||
} foreach (unitaddons _x);
|
||||
} foreach _paramAddons;
|
||||
} forEach (unitaddons _x);
|
||||
} forEach _paramAddons;
|
||||
};
|
||||
} foreach (synchronizedobjects _logic);
|
||||
} forEach (synchronizedobjects _logic);
|
||||
_addons call bis_fnc_activateaddons;
|
||||
|
||||
// Added by ace_zeus to delay bird code
|
||||
|
@ -32,7 +32,7 @@ if (_activated) then {
|
||||
{
|
||||
_side = (getassignedcuratorunit _x) call bis_fnc_objectSide;
|
||||
_side revealmine _explosive;
|
||||
} foreach (objectcurators _logic);
|
||||
} forEach (objectcurators _logic);
|
||||
|
||||
if (GVAR(revealMines) > 1) then {
|
||||
//--- Mark minefields in the map
|
||||
|
@ -110,7 +110,7 @@ if (_activated) then {
|
||||
};
|
||||
};
|
||||
};
|
||||
} foreach _entities;
|
||||
} forEach _entities;
|
||||
};
|
||||
};
|
||||
if (count _hint > 0) then {
|
||||
|
Loading…
Reference in New Issue
Block a user