Minor formatting cleanup

This commit is contained in:
ebaydayz
2016-03-21 17:58:23 -04:00
parent 286f405e67
commit e2e6e79394
76 changed files with 319 additions and 330 deletions

View File

@@ -1,6 +1,6 @@
private ["_bottletext","_tin1text","_tin2text","_tintext","_hasbottleitem","_hastinitem","_qty","_dis","_sfx"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_22") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_22","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_bottletext = getText (configFile >> "CfgMagazines" >> "ItemWaterBottle" >> "displayName");

View File

@@ -20,4 +20,4 @@ uiSleep 3;
// allow menu again
s_player_callzombies = -1;
// cutText [(localize "STR_EPOCH_ACTIONS_1"), "PLAIN DOWN"];
// cutText [localize "STR_EPOCH_ACTIONS_1","PLAIN DOWN"];

View File

@@ -1,6 +1,6 @@
private ["_rawmeat","_cookedmeat","_meat","_meatcooked","_text","_qty","_dis","_sfx"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_23") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_23","PLAIN DOWN"];};
DZE_ActionInProgress = true;
//diag_log ("Cook Enabled");

View File

@@ -4,7 +4,7 @@ _handle = _array select 0;
_type = _array select 1;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {cutText [(localize "str_player_21") , "PLAIN DOWN"]};
if (_onLadder) exitWith {cutText [localize "str_player_21","PLAIN DOWN"]};
player playActionNow "PutDown";

View File

@@ -1,6 +1,6 @@
private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_isMedic","_abort","_canSize","_configVeh","_capacity","_nameText","_isOk","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle","_isVehicle","_configSrcVeh","_capacitySrc","_nameTextSrc","_isFillok","_curFuelSrc","_newFuelSrc","_vehicleSrc"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_24","PLAIN DOWN"]};
DZE_ActionInProgress = true;
_isVehicle = false;
@@ -147,6 +147,6 @@ if(_IsNearVehicle >= 1) then {
};
} else {
cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_27","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -1,6 +1,6 @@
private ["_vehicle","_started","_finished","_animState","_isMedic","_soundSource"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_24","PLAIN DOWN"]};
DZE_ActionInProgress = true;
player removeAction s_player_fillgen;
@@ -19,7 +19,7 @@ r_doLoop = true;
_started = false;
_finished = false;
cutText [(localize "str_epoch_player_25"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_25","PLAIN DOWN"];
[player,50,true,(getPosATL player)] spawn player_alertZombies;
@@ -46,7 +46,7 @@ if(!_finished) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_26") , "PLAIN DOWN"]
cutText [localize "str_epoch_player_26","PLAIN DOWN"];
};
if (_finished) then {
@@ -69,7 +69,7 @@ if (_finished) then {
_vehicle setVariable ["GeneratorSound", _soundSource,true];
cutText [(localize "str_epoch_player_28"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_28","PLAIN DOWN"];
};
} else {
@@ -82,7 +82,7 @@ if (_finished) then {
_vehicle setVariable ["GeneratorSound", _soundSource,true];
cutText [(localize "str_epoch_player_28"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_28","PLAIN DOWN"];
};
};

View File

@@ -1,6 +1,6 @@
private ["_item", "_type", "_hasHarvested", "_config", "_knifeArray", "_PlayerNear", "_isListed", "_activeKnife", "_text", "_dis", "_sfx", "_sharpnessRemaining"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_29") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_29","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_item = _this select 3;

View File

@@ -1,6 +1,6 @@
private ["_item", "_type", "_hasHarvested", "_config", "_knifeArray", "_PlayerNear", "_isListed", "_activeKnife", "_text", "_dis", "_sfx", "_sharpnessRemaining"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_29") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_29","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_item = _this select 3;

View File

@@ -1,7 +1,7 @@
private ["_vehicle","_removed"];
_vehicle = _this select 3;
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_32") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_32","PLAIN DOWN"];};
DZE_ActionInProgress = true;
{player removeAction _x} count s_player_lockunlock;s_player_lockunlock = [];
@@ -25,7 +25,7 @@ if (_removed == 1) then {
};
};
} else {
cutText [(localize "str_epoch_player_33") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_33","PLAIN DOWN"];
};
};

View File

@@ -1,6 +1,6 @@
private ["_qty","_started","_finished","_animState","_isMedic","_abort","_fillCounter","_dis","_sfx","_displayName","_fuelCans"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_34"), "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_34","PLAIN DOWN"];};
DZE_ActionInProgress = true;
player removeAction s_player_fillfuel;
@@ -65,7 +65,7 @@ _qty = count _fuelCans;
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_35") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_35","PLAIN DOWN"];
_abort = true;
};

View File

@@ -9,6 +9,6 @@ if((count PVDZE_plr_DeathBResult) > 0) then {
// load death message board ui
call EpochDeathBoardLoad;
} else {
cutText [(localize "str_epoch_player_36"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_36","PLAIN DOWN"];
PVDZE_plr_DeathBResult = nil;
};

View File

@@ -11,6 +11,6 @@ if((count PVDZE_plr_DeathBResult) > 0) then {
// load death message board ui
call EpochDeathBoardLoad;
} else {
cutText [(localize "str_epoch_player_36"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_36","PLAIN DOWN"];
PVDZE_plr_DeathBResult = nil;
};

View File

@@ -1,7 +1,7 @@
private["_vehicle"];
_vehicle = _this select 3;
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_37","PLAIN DOWN"];};
DZE_ActionInProgress = true;
{player removeAction _x} count s_player_lockunlock;s_player_lockunlock = [];

View File

@@ -1,7 +1,7 @@
//Code developed by Axe Cop - Massiv improvments && performance tunes by Skaronator
private ["_missing","_missingQty","_proceed","_itemIn","_countIn","_qty","_num_removed","_uniqueID","_removed","_removed_total","_tobe_removed_total","_obj","_objectID","_objectUID","_classname","_location","_dir","_objectCharacterID","_object","_temp_removed_array","_textMissing","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_itemText","_option"];
if (DZE_ActionInProgress) exitWith { cutText [(localize "STR_EPOCH_ACTIONS_2") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "STR_EPOCH_ACTIONS_2","PLAIN DOWN"];};
DZE_ActionInProgress = true;
player removeAction s_player_maintain_area;

View File

@@ -1,7 +1,7 @@
private ["_classname","_classnametmp","_require","_text","_ghost","_lockable","_requireplot","_isAllowedUnderGround","_offset","_isPole","_isLandFireDZ","_hasRequired","_hasrequireditem","_reason","_buildObject","_location1","_object","_objectHelper","_position","_controls","_cancel","_dir","_cnt","_pos","_distance","_buildables","_onLadder","_vehicle","_inVehicle","_abort","_needNear","_isNear","_needText","_findNearestPoles","_findNearestPole","_IsNearPlot","_canBuildOnPlot","_nearestPole","_ownerID","_friendlies","_missing","_checkMag","_enableGhost","_helperColor","_canDo","_objHDiff","_isOk","_zheightchanged","_zheightdirection","_rotate","_location2","_lastDir","_objectHelperDir","_objectHelperPos","_tmpbuilt","_limit","_proceed","_counter","_dis","_sfx","_started","_finished","_animState","_isMedic","_num_removed","_combinationDisplay","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_combination_1_Display"];
//Check if building already in progress, exit if so.
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_40","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_pos = [player] call FNC_GetPos;
@@ -30,10 +30,10 @@ DZE_cancelBuilding = false;
call gear_ui_init;
closeDialog 1;
if (dayz_isSwimming) exitWith {DZE_ActionInProgress = false;cutText [localize "str_player_26","PLAIN DOWN"];};
if (_inVehicle) exitWith {DZE_ActionInProgress = false;cutText [(localize "str_epoch_player_42"),"PLAIN DOWN"];};
if (_onLadder) exitWith {DZE_ActionInProgress = false;cutText [localize "str_player_21","PLAIN DOWN"];};
if (player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false;cutText [(localize "str_epoch_player_43"),"PLAIN DOWN"];};
if (dayz_isSwimming) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26","PLAIN DOWN"];};
if (_inVehicle) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_42","PLAIN DOWN"];};
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21","PLAIN DOWN"];};
if (player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_43","PLAIN DOWN"];};
DZE_buildItem = _this; //This is a magazine! It's global to allow access to it from outside functions
@@ -595,7 +595,7 @@ if (_hasrequireditem) then {
};
} else { //if magazine was not removed, cancel publish
deleteVehicle _tmpbuilt;
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_46","PLAIN DOWN"];
};
} else { //if player was interrupted, cancel publish and stop build animations
@@ -607,7 +607,7 @@ if (_hasrequireditem) then {
deleteVehicle _tmpbuilt;
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_46","PLAIN DOWN"];
};
} else { //cancel build if passed _cancel arg was true or building on roads/trader city

View File

@@ -3,7 +3,7 @@ disableSerialization;
_item = _this;
_config = configFile >> "cfgWeapons" >> _item;
_onBack = dayz_onBack in MeleeWeapons;
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_39") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_39","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;

View File

@@ -4,7 +4,7 @@
*/
private ["_location","_pos","_dir","_classname","_item","_hasrequireditem","_missing","_hastoolweapon","_cancel","_reason","_started","_finished","_animState","_isMedic","_dis","_sfx","_hasbuilditem","_tmpbuilt","_onLadder","_isWater","_require","_text","_offset","_IsNearPlot","_isOk","_location1","_location2","_counter","_limit","_proceed","_num_removed","_position","_object","_canBuildOnPlot","_friendlies","_nearestPole","_ownerID","_findNearestPoles","_findNearestPole","_distance","_classnametmp","_ghost","_isPole","_needText","_lockable","_zheightchanged","_rotate","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_combination_1_Display","_combinationDisplay","_zheightdirection","_abort","_isNear","_need","_needNear","_vehicle","_inVehicle","_requireplot","_objHDiff","_isLandFireDZ","_isTankTrap","_center","_buildables"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_40","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_pos = [player] call FNC_GetPos;
@@ -36,9 +36,9 @@ call gear_ui_init;
closeDialog 1;
if (_isWater) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26", "PLAIN DOWN"];};
if (_inVehicle) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_42"), "PLAIN DOWN"];};
if (_inVehicle) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_42","PLAIN DOWN"];};
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21", "PLAIN DOWN"];};
if (player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_43"), "PLAIN DOWN"];};
if (player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_43","PLAIN DOWN"];};
_item = _this;
@@ -215,7 +215,7 @@ if (_hasrequireditem) then {
_position = getPosATL _object;
cutText [(localize "str_epoch_player_45"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_45","PLAIN DOWN"];
_objHDiff = 0;
@@ -541,7 +541,7 @@ if (_hasrequireditem) then {
};
} else {
deleteVehicle _tmpbuilt;
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_46","PLAIN DOWN"];
};
} else {
@@ -553,7 +553,7 @@ if (_hasrequireditem) then {
deleteVehicle _tmpbuilt;
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_46","PLAIN DOWN"];
};
} else {

View File

@@ -4,7 +4,7 @@
*/
private ["_location","_dir","_classname","_text","_object","_objectID","_objectUID","_newclassname","_refund","_obj","_upgrade","_objectCharacterID","_canBuildOnPlot","_friendlies","_nearestPole","_ownerID","_distance","_needText","_findNearestPoles","_findNearestPole","_IsNearPlot","_i","_invResult","_itemOut","_countOut","_abortInvAdd","_addedItems"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_48") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_48","PLAIN DOWN"];};
DZE_ActionInProgress = true;
player removeAction s_player_downgrade_build;
@@ -60,7 +60,7 @@ _obj = _this select 3;
// Current charID
_objectCharacterID = _obj getVariable ["CharacterID","0"];
if(DZE_Lock_Door != _objectCharacterID) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_49") , "PLAIN DOWN"]; };
if (DZE_Lock_Door != _objectCharacterID) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_49","PLAIN DOWN"];};
// Find objectID
_objectID = _obj getVariable ["ObjectID","0"];
@@ -68,7 +68,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
// Find objectUID
_objectUID = _obj getVariable ["ObjectUID","0"];
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_upgrade_build = -1; cutText [(localize "str_epoch_player_50"), "PLAIN DOWN"];};
if (_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_upgrade_build = -1; cutText [localize "str_epoch_player_50","PLAIN DOWN"];};
// Get classname
_classname = typeOf _obj;
@@ -155,7 +155,7 @@ if ((count _upgrade) > 0) then {
};
} else {
cutText [(localize "str_epoch_player_51"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_51","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -4,7 +4,7 @@
*/
private ["_location","_dir","_classname","_missing","_text","_proceed","_num_removed","_object","_missingQty","_itemIn","_countIn","_qty","_removed","_removed_total","_tobe_removed_total","_objectID","_objectUID","_temp_removed_array","_textMissing","_requirements","_obj","_upgrade","_objectCharacterID"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_52","PLAIN DOWN"];};
DZE_ActionInProgress = true;
player removeAction s_player_maint_build;
@@ -19,7 +19,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
// Find objectUID
_objectUID = _obj getVariable ["ObjectUID","0"];
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_maint_build = -1; cutText [(localize "str_epoch_player_50"), "PLAIN DOWN"];};
if (_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_maint_build = -1; cutText [localize "str_epoch_player_50","PLAIN DOWN"];};
// Get classname
_classname = typeOf _obj;

View File

@@ -1,30 +1,30 @@
private ["_item","_config","_pos","_onLadder","_create","_started","_finished","_animState","_isMedic","_num_removed","_text","_haskey","_hastoolweapon","_isNear","_hasTinBar"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_56") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_56","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_item = _this;
_config = configFile >> "cfgWeapons" >> _item;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_player_21") , "PLAIN DOWN"]};
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21","PLAIN DOWN"]};
_text = getText (_config >> "displayName");
_haskey = _this in weapons player;
if (!_haskey) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_30"),_text] , "PLAIN DOWN"]};
_hastoolweapon = "ItemKeyKit" in weapons player;
if (!_hastoolweapon) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_57") , "PLAIN DOWN"]};
if (!_hastoolweapon) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_57","PLAIN DOWN"]};
_pos = [player] call FNC_GetPos;
_isNear = {inflamed _x} count (_pos nearObjects 3);
if(_isNear == 0) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_58") , "PLAIN DOWN"]};
if (_isNear == 0) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_58","PLAIN DOWN"]};
call gear_ui_init;
// require one tin bar per key
_hasTinBar = "ItemTinBar" in magazines player;
if(!_hasTinBar) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_59") , "PLAIN DOWN"]};
if (!_hasTinBar) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_59","PLAIN DOWN"]};
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
@@ -62,7 +62,7 @@ if(_finished) then {
_create = _item;
_create call player_addDuplicateTool;
} else {
cutText [(localize "str_epoch_player_61") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_61","PLAIN DOWN"];
};
} else {
r_interrupt = false;
@@ -70,6 +70,6 @@ if(_finished) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_61") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_61","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -22,7 +22,7 @@ class ItemActions
*/
private ["_tradeComplete","_onLadder","_canDo","_selectedRecipeOutput","_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_itemOut","_countOut","_started","_finished","_animState","_isMedic","_removed","_tobe_removed_total","_textCreate","_textMissing","_selectedRecipeInput","_selectedRecipeInputStrict","_num_removed","_removed_total","_temp_removed_array","_abort","_waterLevel","_waterLevel_lowest","_reason","_isNear","_missingTools","_hastoolweapon","_selectedRecipeTools","_distance","_crafting","_needNear","_item","_baseClass","_num_removed_weapons","_outputWeapons","_inputWeapons","_randomOutput","_craft_doLoop","_selectedWeapon","_selectedMag","_sfx"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_63") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_63","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// This is used to find correct recipe based what itemaction was click allows multiple recipes per item.
@@ -119,7 +119,7 @@ if (_canDo) then {
// If all parts proceed
if (_proceed) then {
cutText [(localize "str_epoch_player_62"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_62","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
@@ -262,7 +262,7 @@ if (_canDo) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_64"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_64","PLAIN DOWN"];
_craft_doLoop = false;
};
@@ -278,6 +278,6 @@ if (_canDo) then {
};
};
} else {
cutText [(localize "str_epoch_player_64"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_64","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -5,7 +5,7 @@
*/
private ["_isOk","_i","_objName","_started","_finished","_animState","_isMedic","_proceed","_itemOut","_countOut","_tree","_trees","_findNearestTree","_index","_invResult","_treesOutput","_text"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_72") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_72","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// allowed trees list move this later
@@ -122,12 +122,12 @@ if (count(_findNearestTree) >= 1) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_73"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_73","PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_74"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_74","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -1,18 +1,18 @@
private ["_dir","_classname","_b0x1337","_location","_item","_config","_create_raw","_create","_qty","_type","_hasCrate","_hasTool"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_75") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_75","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_hasTool = "ItemCrowbar" in items player;
if(!_hasTool) exitWith {
cutText [(localize "str_epoch_player_76"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_76","PLAIN DOWN"];
DZE_ActionInProgress = false;
};
_item = _this;
_hasCrate = _item in magazines player;
if (!_hasCrate) exitWith {
cutText [(localize "str_epoch_player_77"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_77","PLAIN DOWN"];
DZE_ActionInProgress = false;
};
@@ -63,6 +63,6 @@ player reveal _b0x1337;
player action ["Gear", _b0x1337];
cutText [(localize "str_epoch_player_78"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_78","PLAIN DOWN"];
DZE_ActionInProgress = false;

View File

@@ -4,7 +4,7 @@
*/
private ["_location","_dir","_classname","_missing","_text","_proceed","_num_removed","_object","_missingQty","_itemIn","_countIn","_qty","_removed","_removed_total","_tobe_removed_total","_objectID","_objectUID","_temp_removed_array","_textMissing","_newclassname","_requirements","_obj","_upgrade","_lockable","_combination_1","_combination_2","_combination_3","_combination","_objectCharacterID","_canBuildOnPlot","_friendlies","_nearestPole","_ownerID","_distance","_needText","_findNearestPoles","_findNearestPole","_IsNearPlot"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_52","PLAIN DOWN"];};
DZE_ActionInProgress = true;
player removeAction s_player_upgrade_build;
@@ -64,7 +64,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
// Find objectUID
_objectUID = _obj getVariable ["ObjectUID","0"];
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_upgrade_build = -1; cutText [(localize "str_epoch_player_50"), "PLAIN DOWN"];};
if (_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_upgrade_build = -1; cutText [localize "str_epoch_player_50","PLAIN DOWN"];};
// Get classname
_classname = typeOf _obj;
@@ -181,7 +181,7 @@ if ((count _upgrade) > 0) then {
};
} else {
cutText [(localize "str_epoch_player_82"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_82","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -6,14 +6,14 @@ private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_it
if (_this in DZE_RestrictSkins) exitWith { cutText [format[(localize "str_epoch_player_315"),_this], "PLAIN DOWN"] };
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_83"), "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_83","PLAIN DOWN"]};
DZE_ActionInProgress = true;
_item = _this;
call gear_ui_init;
r_action_count = 0; //reset for strange glitch
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_player_21"), "PLAIN DOWN"]};
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21","PLAIN DOWN"]};
_hasclothesitem = _this in magazines player;
_config = configFile >> "CfgMagazines";
@@ -21,11 +21,11 @@ _text = getText (_config >> _item >> "displayName");
if (!_hasclothesitem) exitWith { DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_text,"wear"] , "PLAIN DOWN"]};
if (vehicle player != player) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_85"), "PLAIN DOWN"]};
if (vehicle player != player) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_85","PLAIN DOWN"]};
//if (!isNull (unitBackpack player)) exitWith { DZE_ActionInProgress = false; cutText [(localize "STR_EPOCH_ACTIONS_9"), "PLAIN DOWN"] };
//if (!isNull (unitBackpack player)) exitWith {DZE_ActionInProgress = false; cutText [localize "STR_EPOCH_ACTIONS_9","PLAIN DOWN"]};
if ("CSGAS" in (magazines player)) exitWith { DZE_ActionInProgress = false; cutText [(localize "STR_EPOCH_ACTIONS_10"), "PLAIN DOWN"] };
if ("CSGAS" in (magazines player)) exitWith {DZE_ActionInProgress = false; cutText [localize "STR_EPOCH_ACTIONS_10","PLAIN DOWN"]};
_myModel = (typeOf player);
_itemNew = "Skin_" + _myModel;
@@ -52,7 +52,7 @@ if ( (isClass(_config >> _itemNew)) ) then {
};
} else {
cutText [(localize "str_epoch_player_86"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_86","PLAIN DOWN"];
};
};
};

View File

@@ -1,6 +1,6 @@
private["_vehicle","_canSize","_configVeh","_capacity","_nameType","_curFuel","_newFuel","_dis","_sfx","_fueling"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_24","PLAIN DOWN"]};
DZE_ActionInProgress = true;
_vehicle = cursorTarget;

View File

@@ -4,7 +4,7 @@ parameters: _obj
*/
private ["_activatingPlayer","_obj","_objectID","_objectUID","_started","_finished","_animState","_isMedic","_isOk","_proceed","_counter","_limit","_objType","_sfx","_dis","_itemOut","_countOut","_selectedRemoveOutput","_friendlies","_nearestPole","_ownerID","_refundpart","_isWreck","_findNearestPoles","_findNearestPole","_IsNearPlot","_brokenTool","_removeTool","_isDestructable","_isRemovable","_objOwnerID","_isOwnerOfObj","_preventRefund","_ipos","_item","_radius","_isWreckBuilding","_nameVehicle","_isModular"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_88") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_88","PLAIN DOWN"];};
DZE_ActionInProgress = true;
player removeAction s_player_deleteBuild;
@@ -17,8 +17,8 @@ _activatingPlayer = player;
_objOwnerID = _obj getVariable["CharacterID","0"];
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
if (_obj in DZE_DoorsLocked) exitWith { DZE_ActionInProgress = false; cutText [(localize "STR_EPOCH_ACTIONS_20"), "PLAIN DOWN"];};
if(_obj getVariable ["GeneratorRunning", false]) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_89"), "PLAIN DOWN"];};
if (_obj in DZE_DoorsLocked) exitWith {DZE_ActionInProgress = false; cutText [localize "STR_EPOCH_ACTIONS_20","PLAIN DOWN"];};
if (_obj getVariable ["GeneratorRunning", false]) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_89","PLAIN DOWN"];};
_objectID = _obj getVariable ["ObjectID","0"];
_objectUID = _obj getVariable ["ObjectUID","0"];
@@ -75,7 +75,7 @@ cutText [format[(localize "str_epoch_player_162"),_nameVehicle], "PLAIN DOWN"];
if (_isModular) then {
//allow previous cutText to show, then show this if modular.
cutText [(localize "STR_EPOCH_ACTIONS_21"), "PLAIN DOWN"];
cutText [localize "STR_EPOCH_ACTIONS_21","PLAIN DOWN"];
};
// Alert zombies once.
@@ -199,8 +199,8 @@ if (_proceed) then {
};
};
if((count _selectedRemoveOutput) <= 0) then {
cutText [(localize "str_epoch_player_90"), "PLAIN DOWN"];
if ((count _selectedRemoveOutput) <= 0) then {
cutText [localize "str_epoch_player_90","PLAIN DOWN"];
};
if (_ipos select 2 < 0) then {
@@ -236,7 +236,7 @@ if (_proceed) then {
player action ["Gear", _item];
};
} else {
cutText [(localize "str_epoch_player_91"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_91","PLAIN DOWN"];
};
} else {

View File

@@ -1,5 +1,5 @@
private["_id","_array","_vehicle","_part","_hitpoint","_type","_hasToolbox","_section","_nameType","_namePart","_damage","_selection","_dis","_sfx","_hitpoints","_allFixed"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_92") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_92","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_id = _this select 2;

View File

@@ -1,8 +1,6 @@
private ["_trader_data", "_dialog"];
if (DZE_ActionInProgress) exitWith {
cutText [(localize "str_epoch_player_97") , "PLAIN DOWN"];
};
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_97","PLAIN DOWN"];};
_trader_data = (_this select 3);

View File

@@ -1,6 +1,6 @@
private ["_vehicle","_started","_finished","_animState","_isMedic","_soundObject"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_99") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_99","PLAIN DOWN"]};
DZE_ActionInProgress = true;
player removeAction s_player_fillgen;
@@ -19,7 +19,7 @@ r_doLoop = true;
_started = false;
_finished = false;
cutText [(localize "str_epoch_player_100"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_100","PLAIN DOWN"];
[player,50,true,(getPosATL player)] spawn player_alertZombies;
@@ -46,7 +46,7 @@ if(!_finished) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_26") , "PLAIN DOWN"]
cutText [localize "str_epoch_player_26","PLAIN DOWN"];
};
if (_finished) then {
@@ -59,7 +59,7 @@ if (_finished) then {
// Stop generator
_vehicle setVariable ["GeneratorRunning", false,true];
cutText [(localize "str_epoch_player_101"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_101","PLAIN DOWN"];
};

View File

@@ -1,6 +1,6 @@
private ["_vehicle","_started","_finished","_animState","_isMedic","_abort","_configVeh","_nameText","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle","_towTruck","_towTruckSize","_allowedSize"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_96","PLAIN DOWN"]};
DZE_ActionInProgress = true;
player removeAction s_player_towing;
@@ -98,7 +98,7 @@ if(_IsNearVehicle >= 1) then {
} else {
cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_27","PLAIN DOWN"];
};
DZE_ActionInProgress = false;
s_player_towing = -1;

View File

@@ -1,6 +1,6 @@
private ["_vehicle","_started","_finished","_animState","_isMedic","_configVeh","_nameText","_towTruck","_inTow"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_96","PLAIN DOWN"]};
DZE_ActionInProgress = true;
player removeAction s_player_towing;
@@ -77,7 +77,7 @@ if(_inTow) then {
_towTruck setVariable ["DZEvehicleInTow", objNull, true];
};
} else {
cutText [(localize "str_epoch_player_102"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_102","PLAIN DOWN"];
};
DZE_ActionInProgress = false;
s_player_towing = -1;

View File

@@ -1,12 +1,8 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_canAfford","_trade_total","_total_currency","_return_change","_done"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
// [part_out,part_in, qty_out, qty_in, loc];
_activatingPlayer = player;
@@ -25,7 +21,7 @@ if(_buy_o_sell == "sell") then {
_bos = 1;
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -60,7 +56,7 @@ if (!_finished) exitWith {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
DZE_ActionInProgress = false;
};
@@ -221,7 +217,7 @@ if (_finished) then {
cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};
};

View File

@@ -1,12 +1,8 @@
private ["_veh","_location","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
// [part_out,part_in, qty_out, qty_in, loc];
_activatingPlayer = player;
@@ -31,7 +27,7 @@ if(_buy_o_sell == "buy") then {
if (_qty >= _qty_in) then {
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -66,7 +62,7 @@ if (_qty >= _qty_in) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {
@@ -175,7 +171,7 @@ if (_qty >= _qty_in) then {
cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};

View File

@@ -1,11 +1,11 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_canAfford","_trade_total","_total_currency","_return_change","_done"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
//if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_104","PLAIN DOWN"];};
// [part_out,part_in, qty_out, qty_in, loc];
@@ -25,7 +25,7 @@ if(_buy_o_sell == "sell") then {
_bos = 1;
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -60,7 +60,7 @@ if (!_finished) exitWith {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
DZE_ActionInProgress = false;
};
@@ -161,7 +161,7 @@ if (_finished) then {
cutText [format[(localize "STR_EPOCH_ACTIONS_11"),_qty_in,_textPartIn,_textPartOut], "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_107"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_107","PLAIN DOWN"];
};
} else {
@@ -206,7 +206,7 @@ if (_finished) then {
cutText [format[(localize "str_epoch_player_181"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};
};

View File

@@ -1,11 +1,11 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_okToSell","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
//if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_104","PLAIN DOWN"];};
// [part_out,part_in, qty_out, qty_in, loc];
@@ -32,7 +32,7 @@ if(_buy_o_sell == "buy") then {
if (_qty >= _qty_in) then {
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -67,7 +67,7 @@ if (_qty >= _qty_in) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {
@@ -141,7 +141,7 @@ if (_qty >= _qty_in) then {
player removeMagazine _keySelected;
};
} else {
cutText [(localize "str_epoch_player_107"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_107","PLAIN DOWN"];
};
} else {
@@ -168,7 +168,7 @@ if (_qty >= _qty_in) then {
cutText [format[(localize "str_epoch_player_181"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};

View File

@@ -1,11 +1,11 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_temp_keys","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_canAfford","_trade_total","_total_currency","_return_change","_done"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
//if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_104","PLAIN DOWN"];};
// [part_out,part_in, qty_out, qty_in, loc];
@@ -25,7 +25,7 @@ if(_buy_o_sell == "sell") then {
_bos = 1;
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -60,7 +60,7 @@ if (!_finished) exitWith {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
DZE_ActionInProgress = false;
};
@@ -161,7 +161,7 @@ if (_finished) then {
cutText [format[(localize "STR_EPOCH_ACTIONS_11"),_qty_in,_textPartIn,_textPartOut], "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_107"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_107","PLAIN DOWN"];
};
} else {
@@ -252,7 +252,7 @@ if (_finished) then {
cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};
};

View File

@@ -1,11 +1,11 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_canAfford","_trade_total","_total_currency","_return_change","_done"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
//if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_104","PLAIN DOWN"];};
// [part_out,part_in, qty_out, qty_in, loc];
@@ -25,7 +25,7 @@ if(_buy_o_sell == "sell") then {
_bos = 1;
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -60,7 +60,7 @@ if (!_finished) exitWith {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
DZE_ActionInProgress = false;
};
@@ -219,7 +219,7 @@ if (_finished) then {
cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};
};

View File

@@ -1,11 +1,11 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; };
//if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_104","PLAIN DOWN"];};
// [part_out,part_in, qty_out, qty_in, loc];
@@ -36,7 +36,7 @@ if(_buy_o_sell == "buy") then {
if (_qty >= _qty_in) then {
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -71,7 +71,7 @@ if (_qty >= _qty_in) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {
@@ -147,7 +147,7 @@ if (_qty >= _qty_in) then {
player removeMagazine _keySelected;
};
} else {
cutText [(localize "str_epoch_player_107"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_107","PLAIN DOWN"];
};
} else {
@@ -201,7 +201,7 @@ if (_qty >= _qty_in) then {
cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_245"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
};
};

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_bos","_bag","_class","_started","_finished","_animState","_isMedic","_num_removed","_needed","_activatingPlayer","_buy_o_sell","_textPartIn","_textPartOut","_traderID"];
// [part_out,part_in, qty_out, qty_in,];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_activatingPlayer = player;
@@ -22,7 +22,7 @@ if(_buy_o_sell == "sell") then {
_bos = 1;
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
// force animation
player playActionNow "Medic";
@@ -58,7 +58,7 @@ if (!_finished) exitWith {
player playActionNow "stop";
};
DZE_ActionInProgress = false;
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_bos","_bag","_class","_started","_finished","_animState","_isMedic","_num_removed","_needed","_activatingPlayer","_buy_o_sell","_textPartIn","_textPartOut","_traderID"];
// [part_out,part_in, qty_out, qty_in,];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_activatingPlayer = player;
@@ -30,7 +30,7 @@ if(_buy_o_sell == "buy") then {
if (_qty >= _qty_in) then {
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -65,7 +65,7 @@ if (_qty >= _qty_in) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_textPartIn","_textPartOut","_bos","_needed","_started","_finished","_animState","_isMedic","_total_parts_out","_abort","_removed","_activatingPlayer","_traderID","_done"];
// [part_out,part_in, qty_out, qty_in,];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"]};
DZE_ActionInProgress = true;
_activatingPlayer = player;
@@ -30,7 +30,7 @@ while {r_autoTrade} do {
// check if current magazine count is greater than 20
if ((count (magazines player)) > 20) exitWith { cutText [(localize "str_player_24"), "PLAIN DOWN"]; r_autoTrade = false};
if ((count (magazines player)) > 20) exitWith {cutText [localize "str_player_24","PLAIN DOWN"]; r_autoTrade = false};
_canAfford = false;
if(_bos == 1) then {
@@ -59,7 +59,7 @@ while {r_autoTrade} do {
r_autoTrade = false
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
@@ -98,7 +98,7 @@ while {r_autoTrade} do {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_textPartIn","_textPartOut","_bos","_needed","_started","_finished","_animState","_isMedic","_total_parts_out","_abort","_removed","_tradeCounter","_next_highest_bar","_third_highest_bar","_next_highest_conv","_third_highest_conv","_third_parts_out_raw","_third_parts_out","_remainder","_next_parts_out_raw","_next_parts_out","_activatingPlayer","_traderID","_total_trades"];
// [part_out,part_in, qty_out, qty_in,];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"] };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"]};
DZE_ActionInProgress = true;
_total_parts_out = 0;
@@ -88,7 +88,7 @@ for "_x" from 1 to _total_trades do {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_textPartIn","_textPartOut","_qty","_needed","_started","_finished","_animState","_isMedic","_abort","_removed","_tradeCounter","_total_trades","_humanityGain","_humanity"];
// [part_out,part_in, qty_out, qty_in,];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
//_activatingPlayer = [player] call FNC_GetPlayerUID;
@@ -73,7 +73,7 @@ for "_x" from 1 to _total_trades do {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
_qty = {_x == _part_in} count magazines player;

View File

@@ -1,6 +1,6 @@
private ["_buy","_metals_conversion","_cancel"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
{player removeAction _x} count s_player_parts;s_player_parts = [];

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_traderID","_bos","_needed","_activatingPlayer","_textPartIn","_textPartOut","_started","_finished","_animState","_isMedic","_removed"];
// [part_out,part_in, qty_out, qty_in,"buy"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_activatingPlayer = player;
@@ -73,7 +73,7 @@ if (_abort) exitWith {
DZE_ActionInProgress = false;
};
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
// force animation
player playActionNow "Medic";
@@ -109,7 +109,7 @@ if (!_finished) exitWith {
player playActionNow "stop";
};
DZE_ActionInProgress = false;
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {

View File

@@ -1,7 +1,7 @@
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_traderID","_bos","_needed","_activatingPlayer","_textPartIn","_textPartOut","_started","_finished","_animState","_isMedic","_removed"];
// [part_out,part_in, qty_out, qty_in,"buy"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
DZE_ActionInProgress = true;
_activatingPlayer = player;
@@ -26,7 +26,7 @@ if(_buy_o_sell == "buy") then {
if (_qty >= _qty_in) then {
cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
[1,1] call dayz_HungerThirst;
// force animation
@@ -66,7 +66,7 @@ if (_qty >= _qty_in) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
};
if (_finished) then {

View File

@@ -2,7 +2,7 @@ private["_vehicle","_key"];
_vehicle = (_this select 3) select 0;
_key = (_this select 3) select 1;
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_37","PLAIN DOWN"];};
DZE_ActionInProgress = true;
{player removeAction _x} count s_player_lockunlock;s_player_lockunlock = [];

View File

@@ -1,6 +1,6 @@
private ["_ok"];
if(DZE_ActionInProgress) exitWith { cutText [(localize "STR_EPOCH_PLAYER_21") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "STR_EPOCH_PLAYER_21","PLAIN DOWN"];};
DZE_ActionInProgress = true;
dayz_selectedVault = _this select 3;

View File

@@ -5,7 +5,7 @@
private ["_tent","_location","_isOk","_cancel","_location3","_location4","_location1","_location2","_counter","_pondPos","_isPond","_ppos","_hastentitem","_dir","_building","_isBuilding","_playerPos","_item","_offset_x","_offset_y","_offset_z","_offset_z_attach","_config","_text","_tmpvault","_vault_location","_objectsPond","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_removed"];
//check if can pitch here
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_108") , "PLAIN DOWN"]; };
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_108","PLAIN DOWN"];};
DZE_ActionInProgress = true;
//disableSerialization;
@@ -52,7 +52,7 @@ _counter = 0;
while {_isOk} do {
if(_counter == 0) then {
cutText [(localize "str_epoch_player_109"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_109","PLAIN DOWN"];
uiSleep 5;
_location1 = getPosATL player;
uiSleep 5;
@@ -60,7 +60,7 @@ while {_isOk} do {
if(_location1 distance _location2 < 0.1) exitWith {
cutText [(localize "str_epoch_player_109"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_109","PLAIN DOWN"];
_location3 = getPosATL player;
uiSleep 5;
_location4 = getPosATL player;
@@ -167,11 +167,11 @@ if(!_cancel) then {
};
} else {
cutText [(localize "str_epoch_player_110"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_110","PLAIN DOWN"];
};
} else {
cutText [(localize "str_epoch_player_111"), "PLAIN DOWN"];
cutText [localize "str_epoch_player_111","PLAIN DOWN"];
};
DZE_ActionInProgress = false;

View File

@@ -10,7 +10,7 @@ _pondPos = [];
_objectsWell = [];
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {cutText [(localize "str_player_21") , "PLAIN DOWN"]};
if (_onLadder) exitWith {cutText [localize "str_player_21","PLAIN DOWN"]};
_hasbottleitem = _this in magazines player;
@@ -63,8 +63,8 @@ if (_canFill) then {
cutText [format[(localize "str_player_01"),_qty], "PLAIN DOWN"];
} else {
cutText [(localize "str_player_02") , "PLAIN DOWN"];
cutText [localize "str_player_02","PLAIN DOWN"];
};
} else {
cutText [(localize "str_player_20") , "PLAIN DOWN"];
cutText [localize "str_player_20","PLAIN DOWN"];
};