mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
small change
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
private ["_hasbottleitem","_hastinitem","_bottletext","_tin1text","_tin2text","_tintext","_qty","_dis","_sfx","_removed"];
|
private ["_hasbottleitem","_hastinitem","_bottletext","_tin1text","_tin2text","_tintext","_qty","_dis","_sfx","_removed"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_22") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_22") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_boil;
|
player removeAction s_player_boil;
|
||||||
s_player_boil = 1;
|
s_player_boil = 1;
|
||||||
@@ -19,8 +19,8 @@ _bottletext = getText (configFile >> "CfgMagazines" >> "ItemWaterbottle" >> "dis
|
|||||||
_tin1text = getText (configFile >> "CfgMagazines" >> "TrashTinCan" >> "displayName");
|
_tin1text = getText (configFile >> "CfgMagazines" >> "TrashTinCan" >> "displayName");
|
||||||
_tin2text = getText (configFile >> "CfgMagazines" >> "ItemSodaEmpty" >> "displayName");
|
_tin2text = getText (configFile >> "CfgMagazines" >> "ItemSodaEmpty" >> "displayName");
|
||||||
_tintext = format["%1 / %2",_tin1text,_tin2text];
|
_tintext = format["%1 / %2",_tin1text,_tin2text];
|
||||||
if (!_hasbottleitem) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_31"),_bottletext,"fill"] , "PLAIN DOWN"]};
|
if (!_hasbottleitem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_bottletext,"fill"] , "PLAIN DOWN"]};
|
||||||
if (!_hastinitem) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_31"),_tintext,"fill"] , "PLAIN DOWN"]};
|
if (!_hastinitem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_tintext,"fill"] , "PLAIN DOWN"]};
|
||||||
|
|
||||||
_removed = 0;
|
_removed = 0;
|
||||||
|
|
||||||
@@ -53,4 +53,4 @@ if (_hasbottleitem and _hastinitem) then {
|
|||||||
|
|
||||||
s_player_boil = -1;
|
s_player_boil = -1;
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_text","_rawmeat","_cookedmeat","_meat","_meatcooked","_qty","_started","_finished","_animState","_isMedic","_removed","_dis","_sfx","_textraw"];
|
private ["_text","_rawmeat","_cookedmeat","_meat","_meatcooked","_qty","_started","_finished","_animState","_isMedic","_removed","_dis","_sfx","_textraw"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_23") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_23") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// diag_log ("Cook Enabled");
|
// diag_log ("Cook Enabled");
|
||||||
player removeAction s_player_cook;
|
player removeAction s_player_cook;
|
||||||
@@ -77,4 +77,4 @@ _cookedmeat = meatcooked;
|
|||||||
} forEach _rawmeat;
|
} forEach _rawmeat;
|
||||||
|
|
||||||
s_player_cook = -1;
|
s_player_cook = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_isVehicle = false;
|
_isVehicle = false;
|
||||||
|
|
||||||
@@ -137,4 +137,4 @@ if(_IsNearVehicle >= 1) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_started","_finished","_animState","_isMedic","_soundSource"];
|
private ["_vehicle","_started","_finished","_animState","_isMedic","_soundSource"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_fillgen;
|
player removeAction s_player_fillgen;
|
||||||
s_player_fillgen = 1;
|
s_player_fillgen = 1;
|
||||||
@@ -87,5 +87,5 @@ if (_finished) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_fillgen = -1;
|
s_player_fillgen = -1;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_item","_hasKnife","_hasKnifeBlunt","_hasHarvested","_qty","_text","_string","_type","_started","_finished","_animState","_isMedic","_isListed","_config"];
|
private ["_item","_hasKnife","_hasKnifeBlunt","_hasHarvested","_qty","_text","_string","_type","_started","_finished","_animState","_isMedic","_isListed","_config"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_29") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_29") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_butcher;
|
player removeAction s_player_butcher;
|
||||||
s_player_butcher = 1;
|
s_player_butcher = 1;
|
||||||
@@ -83,4 +83,4 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
s_player_butcher = -1;
|
s_player_butcher = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_hasKnife","_qty","_item","_text","_string","_type","_started","_finished","_animState","_isMedic","_hasHarvested","_hasKnifeBlunt","_humanity"];
|
private ["_hasKnife","_qty","_item","_text","_string","_type","_started","_finished","_animState","_isMedic","_hasHarvested","_hasKnifeBlunt","_humanity"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_31") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_31") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_butcher;
|
player removeAction s_player_butcher;
|
||||||
s_player_butcher = 1;
|
s_player_butcher = 1;
|
||||||
@@ -85,4 +85,4 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
s_player_butcher = -1;
|
s_player_butcher = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
private ["_vehicle","_removed"];
|
private ["_vehicle","_removed"];
|
||||||
_vehicle = _this select 3;
|
_vehicle = _this select 3;
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_32") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_32") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
||||||
s_player_lockUnlock_crtl = 1;
|
s_player_lockUnlock_crtl = 1;
|
||||||
@@ -28,4 +28,4 @@ if (_removed == 1) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
s_player_lockUnlock_crtl = -1;
|
s_player_lockUnlock_crtl = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_qty","_started","_finished","_animState","_isMedic","_abort","_fillCounter","_dis","_sfx","_displayName","_fuelCans"];
|
private ["_qty","_started","_finished","_animState","_isMedic","_abort","_fillCounter","_dis","_sfx","_displayName","_fuelCans"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_34"), "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_34"), "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_fillfuel;
|
player removeAction s_player_fillfuel;
|
||||||
s_player_fillfuel = 1;
|
s_player_fillfuel = 1;
|
||||||
@@ -88,4 +88,4 @@ _qty = count _fuelCans;
|
|||||||
} forEach _fuelCans;
|
} forEach _fuelCans;
|
||||||
|
|
||||||
s_player_fillfuel = -1;
|
s_player_fillfuel = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
private["_vehicle"];
|
private["_vehicle"];
|
||||||
_vehicle = _this select 3;
|
_vehicle = _this select 3;
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
||||||
s_player_lockUnlock_crtl = 1;
|
s_player_lockUnlock_crtl = 1;
|
||||||
@@ -17,4 +17,4 @@ if(player distance _vehicle < 10) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
s_player_lockUnlock_crtl = -1;
|
s_player_lockUnlock_crtl = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
//Code developed by Axe Cop for use in DayZ Epoch Mod.
|
//Code developed by Axe Cop for use in DayZ Epoch Mod.
|
||||||
private ["_missing","_missingQty","_proceed","_itemIn","_countIn","_qty","_num_removed","_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"];
|
private ["_missing","_missingQty","_proceed","_itemIn","_countIn","_qty","_num_removed","_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 (TradeInprogress) exitWith { cutText ["Maintenance already in progress." , "PLAIN DOWN"]; };
|
if (DZE_ActionInProgress) exitWith { cutText ["Maintenance already in progress." , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_maintain_area;
|
player removeAction s_player_maintain_area;
|
||||||
s_player_maintain_area = 1;
|
s_player_maintain_area = 1;
|
||||||
@@ -134,6 +134,6 @@ switch _option do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_maintain_area = -1;
|
s_player_maintain_area = -1;
|
||||||
s_player_maintain_area_preview = -1;
|
s_player_maintain_area_preview = -1;
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
private ["_item","_config","_onLadder","_create","_isOk","_config2","_magType","_meleeNum","_muzzles","_wtype","_type","_hastoolweapon","_text"];
|
private ["_item","_config","_onLadder","_create","_isOk","_config2","_magType","_meleeNum","_muzzles","_wtype","_type","_hastoolweapon","_text"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_39") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_39") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_item = _this;
|
_item = _this;
|
||||||
_config = configFile >> "cfgWeapons" >> _item;
|
_config = configFile >> "cfgWeapons" >> _item;
|
||||||
|
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||||
if (_onLadder) exitWith {TradeInprogress = false; cutText [(localize "str_player_21") , "PLAIN DOWN"]};
|
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_player_21") , "PLAIN DOWN"]};
|
||||||
|
|
||||||
_hastoolweapon = _this in weapons player;
|
_hastoolweapon = _this in weapons player;
|
||||||
_text = getText (_config >> "displayName");
|
_text = getText (_config >> "displayName");
|
||||||
if (!_hastoolweapon) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_30"),_text] , "PLAIN DOWN"]};
|
if (!_hastoolweapon) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_30"),_text] , "PLAIN DOWN"]};
|
||||||
|
|
||||||
call gear_ui_init;
|
call gear_ui_init;
|
||||||
|
|
||||||
@@ -94,4 +94,4 @@ if (_isOk) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
*/
|
*/
|
||||||
private ["_location","_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","_objHupDiff","_needNear","_vehicle","_inVehicle","_previewCounter","_requireplot","_objHDiff","_isLandFireDZ","_isTankTrap"];
|
private ["_location","_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","_objHupDiff","_needNear","_vehicle","_inVehicle","_previewCounter","_requireplot","_objHDiff","_isLandFireDZ","_isTankTrap"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_40") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// disallow building if too many objects are found within 30m
|
// disallow building if too many objects are found within 30m
|
||||||
if((count ((position player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];};
|
if((count ((position player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];};
|
||||||
|
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||||
_isWater = dayz_isSwimming;
|
_isWater = dayz_isSwimming;
|
||||||
@@ -37,10 +37,10 @@ DZE_cancelBuilding = false;
|
|||||||
call gear_ui_init;
|
call gear_ui_init;
|
||||||
closeDialog 1;
|
closeDialog 1;
|
||||||
|
|
||||||
if (_isWater) exitWith {TradeInprogress = false; cutText [localize "str_player_26", "PLAIN DOWN"];};
|
if (_isWater) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26", "PLAIN DOWN"];};
|
||||||
if (_inVehicle) exitWith {TradeInprogress = 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 {TradeInprogress = false; cutText [localize "str_player_21", "PLAIN DOWN"];};
|
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21", "PLAIN DOWN"];};
|
||||||
if (player getVariable["combattimeout", 0] >= time) exitWith {TradeInprogress = 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;
|
_item = _this;
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >>
|
|||||||
|
|
||||||
if(_abort) exitWith {
|
if(_abort) exitWith {
|
||||||
cutText [format[(localize "str_epoch_player_135"),_reason,_distance], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_135"),_reason,_distance], "PLAIN DOWN"];
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create");
|
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create");
|
||||||
@@ -137,7 +137,7 @@ _findNearestPole = [];
|
|||||||
_IsNearPlot = count (_findNearestPole);
|
_IsNearPlot = count (_findNearestPole);
|
||||||
|
|
||||||
// If item is plot pole and another one exists within 45m
|
// If item is plot pole and another one exists within 45m
|
||||||
if(_isPole and _IsNearPlot > 0) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_44") , "PLAIN DOWN"]; };
|
if(_isPole and _IsNearPlot > 0) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_44") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
if(_IsNearPlot == 0) then {
|
if(_IsNearPlot == 0) then {
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// _message
|
// _message
|
||||||
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "STR_EPOCH_PLAYER_135"),_needText,_distance] , "PLAIN DOWN"]; };
|
if(!_canBuildOnPlot) exitWith { DZE_ActionInProgress = false; cutText [format[(localize "STR_EPOCH_PLAYER_135"),_needText,_distance] , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
_missing = "";
|
_missing = "";
|
||||||
_hasrequireditem = true;
|
_hasrequireditem = true;
|
||||||
@@ -187,9 +187,9 @@ _hasrequireditem = true;
|
|||||||
} forEach _require;
|
} forEach _require;
|
||||||
|
|
||||||
_hasbuilditem = _this in magazines player;
|
_hasbuilditem = _this in magazines player;
|
||||||
if (!_hasbuilditem) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_31"),_text,"build"] , "PLAIN DOWN"]; };
|
if (!_hasbuilditem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_text,"build"] , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
if (!_hasrequireditem) exitWith {TradeInprogress = false; cutText [format[(localize "str_epoch_player_137"),_missing] , "PLAIN DOWN"]; };
|
if (!_hasrequireditem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_137"),_missing] , "PLAIN DOWN"]; };
|
||||||
if (_hasrequireditem) then {
|
if (_hasrequireditem) then {
|
||||||
|
|
||||||
_location = [0,0,0];
|
_location = [0,0,0];
|
||||||
@@ -561,4 +561,4 @@ if (_hasrequireditem) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_48") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_48") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_downgrade_build;
|
player removeAction s_player_downgrade_build;
|
||||||
s_player_downgrade_build = 1;
|
s_player_downgrade_build = 1;
|
||||||
@@ -52,7 +52,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// exit if not allowed due to plot pole
|
// exit if not allowed due to plot pole
|
||||||
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "str_epoch_player_141"),_needText,_distance] , "PLAIN DOWN"]; };
|
if(!_canBuildOnPlot) exitWith { DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_141"),_needText,_distance] , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
// get cursortarget from addaction
|
// get cursortarget from addaction
|
||||||
_obj = _this select 3;
|
_obj = _this select 3;
|
||||||
@@ -60,7 +60,7 @@ _obj = _this select 3;
|
|||||||
// Current charID
|
// Current charID
|
||||||
_objectCharacterID = _obj getVariable ["CharacterID","0"];
|
_objectCharacterID = _obj getVariable ["CharacterID","0"];
|
||||||
|
|
||||||
if(DZE_Lock_Door != _objectCharacterID) exitWith { TradeInprogress = 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
|
// Find objectID
|
||||||
_objectID = _obj getVariable ["ObjectID","0"];
|
_objectID = _obj getVariable ["ObjectID","0"];
|
||||||
@@ -68,7 +68,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
|
|||||||
// Find objectUID
|
// Find objectUID
|
||||||
_objectUID = _obj getVariable ["ObjectUID","0"];
|
_objectUID = _obj getVariable ["ObjectUID","0"];
|
||||||
|
|
||||||
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = 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
|
// Get classname
|
||||||
_classname = typeOf _obj;
|
_classname = typeOf _obj;
|
||||||
@@ -151,5 +151,5 @@ if ((count _upgrade) > 0) then {
|
|||||||
cutText [(localize "str_epoch_player_51"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_51"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_downgrade_build = -1;
|
s_player_downgrade_build = -1;
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_maint_build;
|
player removeAction s_player_maint_build;
|
||||||
s_player_maint_build = 1;
|
s_player_maint_build = 1;
|
||||||
@@ -19,7 +19,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
|
|||||||
// Find objectUID
|
// Find objectUID
|
||||||
_objectUID = _obj getVariable ["ObjectUID","0"];
|
_objectUID = _obj getVariable ["ObjectUID","0"];
|
||||||
|
|
||||||
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = 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
|
// Get classname
|
||||||
_classname = typeOf _obj;
|
_classname = typeOf _obj;
|
||||||
@@ -117,5 +117,5 @@ if (_proceed) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_maint_build = -1;
|
s_player_maint_build = -1;
|
||||||
@@ -5,10 +5,10 @@
|
|||||||
*/
|
*/
|
||||||
private ["_isOk","_objName","_finished","_proceed","_counter","_itemOut","_countOut","_tree","_distance2d","_distance3d","_trees","_findNearestTree","_finishedTime","_item"];
|
private ["_isOk","_objName","_finished","_proceed","_counter","_itemOut","_countOut","_tree","_distance2d","_distance3d","_trees","_findNearestTree","_finishedTime","_item"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_53") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_53") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
if((currentWeapon player) != "MeleeHatchet") exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_54"), "PLAIN DOWN"]; };
|
if((currentWeapon player) != "MeleeHatchet") exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_54"), "PLAIN DOWN"]; };
|
||||||
|
|
||||||
// allowed trees list move this later
|
// allowed trees list move this later
|
||||||
_trees = DZE_trees;
|
_trees = DZE_trees;
|
||||||
@@ -134,4 +134,4 @@ if (count(_findNearestTree) >= 1) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [localize "str_player_23", "PLAIN DOWN"];
|
cutText [localize "str_player_23", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
private ["_item","_config","_onLadder","_create","_started","_finished","_animState","_isMedic","_qty","_box","_num_removed","_text","_haskey","_hastoolweapon","_isNear","_hasTinBar"];
|
private ["_item","_config","_onLadder","_create","_started","_finished","_animState","_isMedic","_qty","_box","_num_removed","_text","_haskey","_hastoolweapon","_isNear","_hasTinBar"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_56") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_56") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_item = _this;
|
_item = _this;
|
||||||
_config = configFile >> "cfgWeapons" >> _item;
|
_config = configFile >> "cfgWeapons" >> _item;
|
||||||
|
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||||
if (_onLadder) exitWith {TradeInprogress = 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");
|
_text = getText (_config >> "displayName");
|
||||||
_haskey = _this in weapons player;
|
_haskey = _this in weapons player;
|
||||||
if (!_haskey) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_30"),_text] , "PLAIN DOWN"]};
|
if (!_haskey) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_30"),_text] , "PLAIN DOWN"]};
|
||||||
|
|
||||||
_hastoolweapon = "ItemKeyKit" in weapons player;
|
_hastoolweapon = "ItemKeyKit" in weapons player;
|
||||||
if (!_hastoolweapon) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_57") , "PLAIN DOWN"]};
|
if (!_hastoolweapon) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_57") , "PLAIN DOWN"]};
|
||||||
|
|
||||||
_isNear = {inflamed _x} count (position player nearObjects 3);
|
_isNear = {inflamed _x} count (position player nearObjects 3);
|
||||||
if(_isNear == 0) exitWith {TradeInprogress = 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;
|
call gear_ui_init;
|
||||||
|
|
||||||
// require one tin bar per key
|
// require one tin bar per key
|
||||||
_hasTinBar = "ItemTinBar" in magazines player;
|
_hasTinBar = "ItemTinBar" in magazines player;
|
||||||
if(!_hasTinBar) exitWith {TradeInprogress = 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;
|
[1,1] call dayz_HungerThirst;
|
||||||
player playActionNow "Medic";
|
player playActionNow "Medic";
|
||||||
|
|
||||||
@@ -75,4 +75,4 @@ if(_finished) then {
|
|||||||
};
|
};
|
||||||
cutText [(localize "str_epoch_player_61") , "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_61") , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ 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","_num_removed","_removed_total","_temp_removed_array","_abort","_reason","_isNear","_missingTools","_hastoolweapon","_selectedRecipeTools","_distance","_crafting","_needNear","_item","_baseClass","_num_removed_weapons","_outputWeapons","_inputWeapons","_randomOutput","_craft_doLoop","_selectedWeapon","_selectedMag","_sfx"];
|
private ["_tradeComplete","_onLadder","_canDo","_selectedRecipeOutput","_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_itemOut","_countOut","_started","_finished","_animState","_isMedic","_removed","_tobe_removed_total","_textCreate","_textMissing","_selectedRecipeInput","_num_removed","_removed_total","_temp_removed_array","_abort","_reason","_isNear","_missingTools","_hastoolweapon","_selectedRecipeTools","_distance","_crafting","_needNear","_item","_baseClass","_num_removed_weapons","_outputWeapons","_inputWeapons","_randomOutput","_craft_doLoop","_selectedWeapon","_selectedMag","_sfx"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_63") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_63") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// This is used to find correct recipe based what itemaction was click allows multiple recipes per item.
|
// This is used to find correct recipe based what itemaction was click allows multiple recipes per item.
|
||||||
_crafting = _this select 0;
|
_crafting = _this select 0;
|
||||||
@@ -57,7 +57,7 @@ if("workshop" in _needNear) then {
|
|||||||
};
|
};
|
||||||
if(_abort) exitWith {
|
if(_abort) exitWith {
|
||||||
cutText [format[(localize "str_epoch_player_149"),_reason,_distance], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_149"),_reason,_distance], "PLAIN DOWN"];
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// diag_log format["Checking for fire: %1", _isFireNear];
|
// diag_log format["Checking for fire: %1", _isFireNear];
|
||||||
@@ -241,4 +241,4 @@ if (_canDo) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [(localize "str_epoch_player_64"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_64"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -5,19 +5,19 @@
|
|||||||
*/
|
*/
|
||||||
private ["_itemOut","_position","_isOk","_counter","_rnd","_item","_itemtodrop","_vehicle","_inVehicle"];
|
private ["_itemOut","_position","_isOk","_counter","_rnd","_item","_itemtodrop","_vehicle","_inVehicle"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_65") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_65") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
call gear_ui_init;
|
call gear_ui_init;
|
||||||
|
|
||||||
// find position 5m in front of player
|
// find position 5m in front of player
|
||||||
_position = player modeltoworld [0,5,0];
|
_position = player modeltoworld [0,5,0];
|
||||||
if(!(surfaceIsWater _position)) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_66") , "PLAIN DOWN"]; };
|
if(!(surfaceIsWater _position)) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_66") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
if((currentWeapon player) != "MeleeFishingPole") exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_67"), "PLAIN DOWN"]; };
|
if((currentWeapon player) != "MeleeFishingPole") exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_67"), "PLAIN DOWN"]; };
|
||||||
|
|
||||||
if(dayz_isSwimming) exitWith {TradeInprogress = false; cutText [localize "str_player_26", "PLAIN DOWN"]; };
|
if(dayz_isSwimming) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26", "PLAIN DOWN"]; };
|
||||||
if(player getVariable["combattimeout", 0] >= time) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_68"), "PLAIN DOWN"];};
|
if(player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_68"), "PLAIN DOWN"];};
|
||||||
|
|
||||||
_isOk = true;
|
_isOk = true;
|
||||||
_counter = 0;
|
_counter = 0;
|
||||||
@@ -81,4 +81,4 @@ while {_isOk} do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_isOk","_i","_objName","_started","_finished","_animState","_isMedic","_proceed","_itemOut","_countOut","_tree","_trees","_findNearestTree","_index","_invResult","_treesOutput","_text"];
|
private ["_isOk","_i","_objName","_started","_finished","_animState","_isMedic","_proceed","_itemOut","_countOut","_tree","_trees","_findNearestTree","_index","_invResult","_treesOutput","_text"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_72") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_72") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// allowed trees list move this later
|
// allowed trees list move this later
|
||||||
_trees = ["pumpkin.p3d","p_helianthus.p3d","p_fiberplant_ep1.p3d"];
|
_trees = ["pumpkin.p3d","p_helianthus.p3d","p_fiberplant_ep1.p3d"];
|
||||||
@@ -130,4 +130,4 @@ if (count(_findNearestTree) >= 1) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [(localize "str_epoch_player_74"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_74"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
private ["_dir","_classname","_box","_location","_item","_config","_create_raw","_create","_qty","_type","_hasCrate","_hasTool"];
|
private ["_dir","_classname","_box","_location","_item","_config","_create_raw","_create","_qty","_type","_hasCrate","_hasTool"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_75") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_75") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_hasTool = "ItemCrowbar" in items player;
|
_hasTool = "ItemCrowbar" in items player;
|
||||||
if(!_hasTool) exitWith {
|
if(!_hasTool) exitWith {
|
||||||
cutText [(localize "str_epoch_player_76"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_76"), "PLAIN DOWN"];
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
_item = _this;
|
_item = _this;
|
||||||
_hasCrate = _item in magazines player;
|
_hasCrate = _item in magazines player;
|
||||||
if (!_hasCrate) exitWith {
|
if (!_hasCrate) exitWith {
|
||||||
cutText [(localize "str_epoch_player_77"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_77"), "PLAIN DOWN"];
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
_config = configFile >> "CfgMagazines" >> _item;
|
_config = configFile >> "CfgMagazines" >> _item;
|
||||||
@@ -60,4 +60,4 @@ player action ["Gear", _box];
|
|||||||
|
|
||||||
cutText [(localize "str_epoch_player_78"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_78"), "PLAIN DOWN"];
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_isOk","_objName","_started","_finished","_animState","_isMedic","_proceed","_counter","_itemOut","_countOut","_rock","_distance2d","_rockBox","_rocks","_findNearestRock","_item","_rnd"];
|
private ["_isOk","_objName","_started","_finished","_animState","_isMedic","_proceed","_counter","_itemOut","_countOut","_rock","_distance2d","_rockBox","_rocks","_findNearestRock","_item","_rnd"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_79") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_79") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// allowed rocks list move this later
|
// allowed rocks list move this later
|
||||||
_rocks = ["r2_boulder2.p3d","r2_rock1.p3d","r2_rocktower.p3d","r2_boulder1.p3d"];
|
_rocks = ["r2_boulder2.p3d","r2_rock1.p3d","r2_rocktower.p3d","r2_boulder1.p3d"];
|
||||||
@@ -139,4 +139,4 @@ if (count(_findNearestRock) >= 1) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [localize "str_player_32", "PLAIN DOWN"];
|
cutText [localize "str_player_32", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_upgrade_build;
|
player removeAction s_player_upgrade_build;
|
||||||
s_player_upgrade_build = 1;
|
s_player_upgrade_build = 1;
|
||||||
@@ -53,7 +53,7 @@ if(_IsNearPlot == 0) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// exit if not allowed due to plot pole
|
// exit if not allowed due to plot pole
|
||||||
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "str_epoch_player_157"),_needText,_distance] , "PLAIN DOWN"]; };
|
if(!_canBuildOnPlot) exitWith { DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_157"),_needText,_distance] , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
// get cursortarget from addaction
|
// get cursortarget from addaction
|
||||||
_obj = _this select 3;
|
_obj = _this select 3;
|
||||||
@@ -64,7 +64,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
|
|||||||
// Find objectUID
|
// Find objectUID
|
||||||
_objectUID = _obj getVariable ["ObjectUID","0"];
|
_objectUID = _obj getVariable ["ObjectUID","0"];
|
||||||
|
|
||||||
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = 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
|
// Get classname
|
||||||
_classname = typeOf _obj;
|
_classname = typeOf _obj;
|
||||||
@@ -184,5 +184,5 @@ if ((count _upgrade) > 0) then {
|
|||||||
cutText [(localize "str_epoch_player_82"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_82"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_upgrade_build = -1;
|
s_player_upgrade_build = -1;
|
||||||
@@ -4,26 +4,26 @@ Added Female skin changes - DayZ Epoch - vbawol
|
|||||||
*/
|
*/
|
||||||
private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"];
|
private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_83") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_83") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// cannot change clothes when another player is nearby
|
// cannot change clothes when another player is nearby
|
||||||
_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
||||||
if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_84") , "PLAIN DOWN"]; };
|
if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_84") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
_item = _this;
|
_item = _this;
|
||||||
call gear_ui_init;
|
call gear_ui_init;
|
||||||
|
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||||
if (_onLadder) exitWith {TradeInprogress = 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;
|
_hasclothesitem = _this in magazines player;
|
||||||
_config = configFile >> "CfgMagazines";
|
_config = configFile >> "CfgMagazines";
|
||||||
_text = getText (_config >> _item >> "displayName");
|
_text = getText (_config >> _item >> "displayName");
|
||||||
|
|
||||||
if (!_hasclothesitem) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_31"),_text,"wear"] , "PLAIN DOWN"]};
|
if (!_hasclothesitem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_text,"wear"] , "PLAIN DOWN"]};
|
||||||
|
|
||||||
if (vehicle player != player) exitWith {TradeInprogress = 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"]};
|
||||||
|
|
||||||
_myModel = (typeOf player);
|
_myModel = (typeOf player);
|
||||||
_itemNew = "Skin_" + _myModel;
|
_itemNew = "Skin_" + _myModel;
|
||||||
@@ -54,4 +54,4 @@ if ( (isClass(_config >> _itemNew)) ) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_isMedic","_location1","_location2","_abort","_canName","_canSize","_configCan","_configVeh","_capacity","_nameText","_availableCans","_canText"];
|
private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_isMedic","_location1","_location2","_abort","_canName","_canSize","_configCan","_configVeh","_capacity","_nameText","_availableCans","_canText"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_24") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// Use target from addaction
|
// Use target from addaction
|
||||||
_vehicle = _this select 0;
|
_vehicle = _this select 0;
|
||||||
@@ -144,4 +144,4 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
|
|||||||
|
|
||||||
} forEach magazines player;
|
} forEach magazines player;
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -4,8 +4,8 @@ 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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_88") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_88") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_deleteBuild;
|
player removeAction s_player_deleteBuild;
|
||||||
s_player_deleteBuild = 1;
|
s_player_deleteBuild = 1;
|
||||||
@@ -17,7 +17,7 @@ _activatingPlayer = getPlayerUID player;
|
|||||||
_objOwnerID = _obj getVariable["CharacterID","0"];
|
_objOwnerID = _obj getVariable["CharacterID","0"];
|
||||||
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
|
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
|
||||||
|
|
||||||
if(_obj getVariable ["GeneratorRunning", false]) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_89"), "PLAIN DOWN"];};
|
if(_obj getVariable ["GeneratorRunning", false]) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_89"), "PLAIN DOWN"];};
|
||||||
|
|
||||||
_objectID = _obj getVariable ["ObjectID","0"];
|
_objectID = _obj getVariable ["ObjectID","0"];
|
||||||
_objectUID = _obj getVariable ["ObjectUID","0"];
|
_objectUID = _obj getVariable ["ObjectUID","0"];
|
||||||
@@ -231,5 +231,5 @@ if (_proceed) then {
|
|||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_deleteBuild = -1;
|
s_player_deleteBuild = -1;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_part","_hitpoint","_type","_selection","_array","_started","_finished","_animState","_isMedic","_num_removed","_damage","_dis","_sfx","_allFixed","_id","_hasToolbox","_section","_nameType","_namePart","_hitpoints"];
|
private ["_vehicle","_part","_hitpoint","_type","_selection","_array","_started","_finished","_animState","_isMedic","_num_removed","_damage","_dis","_sfx","_allFixed","_id","_hasToolbox","_section","_nameType","_namePart","_hitpoints"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_92") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_92") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_id = _this select 2;
|
_id = _this select 2;
|
||||||
_array = _this select 3;
|
_array = _this select 3;
|
||||||
@@ -125,4 +125,4 @@ if (_allFixed) then {
|
|||||||
|
|
||||||
s_player_repair_crtl = -1;
|
s_player_repair_crtl = -1;
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_part","_hitpoint","_type","_selection","_array","_started","_finished","_animState","_isMedic","_isOK","_brokenPart","_findPercent","_damage","_hasToolbox","_nameType","_namePart"];
|
private ["_vehicle","_part","_hitpoint","_type","_selection","_array","_started","_finished","_animState","_isMedic","_isOK","_brokenPart","_findPercent","_damage","_hasToolbox","_nameType","_namePart"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_94") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_94") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
//_id = _this select 2;
|
//_id = _this select 2;
|
||||||
_array = _this select 3;
|
_array = _this select 3;
|
||||||
@@ -118,4 +118,4 @@ if (_hasToolbox) then {
|
|||||||
dayz_myCursorTarget = objNull;
|
dayz_myCursorTarget = objNull;
|
||||||
s_player_repair_crtl = -1;
|
s_player_repair_crtl = -1;
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
private ["_trader_data", "_dialog"];
|
private ["_trader_data", "_dialog"];
|
||||||
|
|
||||||
if (TradeInprogress) exitWith {
|
if (DZE_ActionInProgress) exitWith {
|
||||||
cutText [(localize "str_epoch_player_97") , "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_97") , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_isMedic","_location1","_location2","_abort","_canNameEmpty","_canSizeEmpty","_canTypeEmpty","_canName","_canSize","_configCanEmpty","_configVeh","_capacity","_nameText","_availableCansEmpty"];
|
private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_isMedic","_location1","_location2","_abort","_canNameEmpty","_canSizeEmpty","_canTypeEmpty","_canName","_canSize","_configCanEmpty","_configVeh","_capacity","_nameText","_availableCansEmpty"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_98") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_98") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// Use target from addaction
|
// Use target from addaction
|
||||||
_vehicle = _this select 0;
|
_vehicle = _this select 0;
|
||||||
@@ -153,4 +153,4 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
|
|||||||
|
|
||||||
} forEach magazines player;
|
} forEach magazines player;
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_started","_finished","_animState","_isMedic","_soundObject"];
|
private ["_vehicle","_started","_finished","_animState","_isMedic","_soundObject"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_99") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_99") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_fillgen;
|
player removeAction s_player_fillgen;
|
||||||
s_player_fillgen = 1;
|
s_player_fillgen = 1;
|
||||||
@@ -63,5 +63,5 @@ if (_finished) then {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_fillgen = -1;
|
s_player_fillgen = -1;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_started","_finished","_animState","_isMedic","_abort","_configVeh","_nameText","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle","_towTruck","_towTruckSize","_allowedSize"];
|
private ["_vehicle","_started","_finished","_animState","_isMedic","_abort","_configVeh","_nameText","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle","_towTruck","_towTruckSize","_allowedSize"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_towing;
|
player removeAction s_player_towing;
|
||||||
s_player_towing = 1;
|
s_player_towing = 1;
|
||||||
@@ -100,5 +100,5 @@ if(_IsNearVehicle >= 1) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_27"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_towing = -1;
|
s_player_towing = -1;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_vehicle","_started","_finished","_animState","_isMedic","_configVeh","_nameText","_towTruck","_inTow"];
|
private ["_vehicle","_started","_finished","_animState","_isMedic","_configVeh","_nameText","_towTruck","_inTow"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_towing;
|
player removeAction s_player_towing;
|
||||||
s_player_towing = 1;
|
s_player_towing = 1;
|
||||||
@@ -79,5 +79,5 @@ if(_inTow) then {
|
|||||||
} else {
|
} else {
|
||||||
cutText [(localize "str_epoch_player_102"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_102"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_towing = -1;
|
s_player_towing = -1;
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// Test cannot lock while another player is nearby
|
// Test cannot lock while another player is nearby
|
||||||
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
||||||
//if(_playerNear) exitWith { TradeInprogress = 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];
|
// [part_out,part_in, qty_out, qty_in, loc];
|
||||||
|
|
||||||
@@ -198,4 +198,4 @@ if (_qty >= _qty_in) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// Test cannot lock while another player is nearby
|
// Test cannot lock while another player is nearby
|
||||||
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
||||||
//if(_playerNear) exitWith { TradeInprogress = 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];
|
// [part_out,part_in, qty_out, qty_in, loc];
|
||||||
|
|
||||||
@@ -191,4 +191,4 @@ if (_qty >= _qty_in) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -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"];
|
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(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// Test cannot lock while another player is nearby
|
// Test cannot lock while another player is nearby
|
||||||
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
|
||||||
//if(_playerNear) exitWith { TradeInprogress = 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];
|
// [part_out,part_in, qty_out, qty_in, loc];
|
||||||
|
|
||||||
@@ -227,4 +227,4 @@ if (_qty >= _qty_in) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
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"];
|
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,];
|
// [part_out,part_in, qty_out, qty_in,];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_activatingPlayer = player;
|
_activatingPlayer = player;
|
||||||
|
|
||||||
@@ -132,4 +132,4 @@ if (_qty >= _qty_in) then {
|
|||||||
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
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"];
|
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,];
|
// [part_out,part_in, qty_out, qty_in,];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"] };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"] };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_total_parts_out = 0;
|
_total_parts_out = 0;
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ _abort = false;
|
|||||||
if(_total_trades < 1) exitWith {
|
if(_total_trades < 1) exitWith {
|
||||||
_needed = _qty_in - _qty;
|
_needed = _qty_in - _qty;
|
||||||
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// perform number of total trades
|
// perform number of total trades
|
||||||
@@ -270,4 +270,4 @@ if(_total_parts_out >= 1) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
private ["_part_out","_part_in","_qty_out","_qty_in","_textPartIn","_textPartOut","_qty","_needed","_started","_finished","_animState","_isMedic","_abort","_removed","_tradeCounter","_total_trades","_humanityGain","_humanity"];
|
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,];
|
// [part_out,part_in, qty_out, qty_in,];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
//_activatingPlayer = getPlayerUID player;
|
//_activatingPlayer = getPlayerUID player;
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ _total_trades = floor (_qty / _qty_in);
|
|||||||
if(_total_trades < 1) exitWith {
|
if(_total_trades < 1) exitWith {
|
||||||
_needed = _qty_in - _qty;
|
_needed = _qty_in - _qty;
|
||||||
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
_abort = false;
|
_abort = false;
|
||||||
@@ -119,4 +119,4 @@ for "_x" from 1 to _total_trades do {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_buy","_metals_conversion","_cancel"];
|
private ["_buy","_metals_conversion","_cancel"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
{player removeAction _x} forEach s_player_parts;s_player_parts = [];
|
{player removeAction _x} forEach s_player_parts;s_player_parts = [];
|
||||||
s_player_parts_crtl = 1;
|
s_player_parts_crtl = 1;
|
||||||
@@ -35,4 +35,4 @@ _metals_conversion = [
|
|||||||
_cancel = player addAction ["Cancel", "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false, "",""];
|
_cancel = player addAction ["Cancel", "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false, "",""];
|
||||||
s_player_parts set [count s_player_parts,_cancel];
|
s_player_parts set [count s_player_parts,_cancel];
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_traderID","_bos","_needed","_activatingPlayer","_textPartIn","_textPartOut","_started","_finished","_animState","_isMedic","_removed"];
|
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"];
|
// [part_out,part_in, qty_out, qty_in,"buy"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_activatingPlayer = player;
|
_activatingPlayer = player;
|
||||||
|
|
||||||
@@ -122,4 +122,4 @@ if (_qty >= _qty_in) then {
|
|||||||
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -2,8 +2,8 @@ private["_vehicle","_key"];
|
|||||||
_vehicle = (_this select 3) select 0;
|
_vehicle = (_this select 3) select 0;
|
||||||
_key = (_this select 3) select 1;
|
_key = (_this select 3) select 1;
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
{player removeAction _x} forEach s_player_lockunlock;s_player_lockunlock = [];
|
||||||
s_player_lockUnlock_crtl = 1;
|
s_player_lockUnlock_crtl = 1;
|
||||||
@@ -20,4 +20,4 @@ if(player distance _vehicle < 10) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
s_player_lockUnlock_crtl = -1;
|
s_player_lockUnlock_crtl = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
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"];
|
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
|
//check if can pitch here
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_108") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_108") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
//disableSerialization;
|
//disableSerialization;
|
||||||
|
|
||||||
@@ -174,4 +174,4 @@ if(!_cancel) then {
|
|||||||
cutText [(localize "str_epoch_player_111"), "PLAIN DOWN"];
|
cutText [(localize "str_epoch_player_111"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -8,7 +8,7 @@ private ["_weaponName","_action","_turret","_weapons","_assignedRole","_action1"
|
|||||||
|
|
||||||
disableSerialization;
|
disableSerialization;
|
||||||
|
|
||||||
if (TradeInprogress) exitWith {}; // Do not allow if any script is running.
|
if (DZE_ActionInProgress) exitWith {}; // Do not allow if any script is running.
|
||||||
|
|
||||||
_menClose = cursorTarget;
|
_menClose = cursorTarget;
|
||||||
_hasPatient = alive _menClose;
|
_hasPatient = alive _menClose;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ scriptName "Functions\misc\fn_selfActions.sqf";
|
|||||||
************************************************************/
|
************************************************************/
|
||||||
private ["_isWreckBuilding","_temp_keys","_magazinesPlayer","_isPZombie","_vehicle","_inVehicle","_hasFuelE","_hasRawMeat","_hasKnife","_hasToolbox","_onLadder","_nearLight","_canPickLight","_canDo","_text","_isHarvested","_isVehicle","_isVehicletype","_isMan","_traderType","_ownerID","_isAnimal","_isDog","_isZombie","_isDestructable","_isTent","_isFuel","_isAlive","_Unlock","_lock","_buy","_dogHandle","_lieDown","_warn","_hastinitem","_allowedDistance","_menu","_menu1","_humanity_logic","_low_high","_cancel","_metals_trader","_traderMenu","_isWreck","_isRemovable","_isDisallowRepair","_rawmeat","_humanity","_speed","_dog","_hasbottleitem","_isAir","_isShip","_playersNear","_findNearestGens","_findNearestGen","_IsNearRunningGen","_cursorTarget","_isnewstorage","_itemsPlayer","_ownerKeyId","_typeOfCursorTarget","_hasKey","_oldOwner","_combi","_key_colors","_player_deleteBuild","_player_flipveh","_player_lockUnlock_crtl","_player_butcher","_player_studybody","_player_cook","_player_boil","_hasFuelBarrelE","_hasHotwireKit","_player_SurrenderedGear","_isSurrendered","_isModular","_ownerKeyName","_temp_keys_names"];
|
private ["_isWreckBuilding","_temp_keys","_magazinesPlayer","_isPZombie","_vehicle","_inVehicle","_hasFuelE","_hasRawMeat","_hasKnife","_hasToolbox","_onLadder","_nearLight","_canPickLight","_canDo","_text","_isHarvested","_isVehicle","_isVehicletype","_isMan","_traderType","_ownerID","_isAnimal","_isDog","_isZombie","_isDestructable","_isTent","_isFuel","_isAlive","_Unlock","_lock","_buy","_dogHandle","_lieDown","_warn","_hastinitem","_allowedDistance","_menu","_menu1","_humanity_logic","_low_high","_cancel","_metals_trader","_traderMenu","_isWreck","_isRemovable","_isDisallowRepair","_rawmeat","_humanity","_speed","_dog","_hasbottleitem","_isAir","_isShip","_playersNear","_findNearestGens","_findNearestGen","_IsNearRunningGen","_cursorTarget","_isnewstorage","_itemsPlayer","_ownerKeyId","_typeOfCursorTarget","_hasKey","_oldOwner","_combi","_key_colors","_player_deleteBuild","_player_flipveh","_player_lockUnlock_crtl","_player_butcher","_player_studybody","_player_cook","_player_boil","_hasFuelBarrelE","_hasHotwireKit","_player_SurrenderedGear","_isSurrendered","_isModular","_ownerKeyName","_temp_keys_names"];
|
||||||
|
|
||||||
if (TradeInprogress) exitWith {}; // Do not allow if any script is running.
|
if (DZE_ActionInProgress) exitWith {}; // Do not allow if any script is running.
|
||||||
|
|
||||||
_vehicle = vehicle player;
|
_vehicle = vehicle player;
|
||||||
_isPZombie = player isKindOf "PZombie_VB";
|
_isPZombie = player isKindOf "PZombie_VB";
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_alreadyPacking","_lockedClass","_text","_playerNear"];
|
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_alreadyPacking","_lockedClass","_text","_playerNear"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_10") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_10") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_lockvault;
|
player removeAction s_player_lockvault;
|
||||||
s_player_lockvault = 1;
|
s_player_lockvault = 1;
|
||||||
@@ -18,7 +18,7 @@ _lockedClass = getText (configFile >> "CfgVehicles" >> _objType >> "lockedClass"
|
|||||||
_text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName");
|
_text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName");
|
||||||
|
|
||||||
// Silently exit if object no longer exists
|
// Silently exit if object no longer exists
|
||||||
if(isNull _obj) exitWith { TradeInprogress = false; };
|
if(isNull _obj) exitWith { DZE_ActionInProgress = false; };
|
||||||
[1,1] call dayz_HungerThirst;
|
[1,1] call dayz_HungerThirst;
|
||||||
player playActionNow "Medic";
|
player playActionNow "Medic";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
@@ -26,16 +26,16 @@ sleep 1;
|
|||||||
sleep 5;
|
sleep 5;
|
||||||
|
|
||||||
_playerNear = _obj call dze_isnearest_player;
|
_playerNear = _obj call dze_isnearest_player;
|
||||||
if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_11") , "PLAIN DOWN"]; };
|
if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_11") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
_ownerID = _obj getVariable["CharacterID","0"];
|
_ownerID = _obj getVariable["CharacterID","0"];
|
||||||
_objectID = _obj getVariable["ObjectID","0"];
|
_objectID = _obj getVariable["ObjectID","0"];
|
||||||
_objectUID = _obj getVariable["ObjectUID","0"];
|
_objectUID = _obj getVariable["ObjectUID","0"];
|
||||||
|
|
||||||
if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith {TradeInprogress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_115"),_text], "PLAIN DOWN"]; };
|
if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_115"),_text], "PLAIN DOWN"]; };
|
||||||
|
|
||||||
_alreadyPacking = _obj getVariable["packing",0];
|
_alreadyPacking = _obj getVariable["packing",0];
|
||||||
if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_116"),_text], "PLAIN DOWN"]};
|
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_116"),_text], "PLAIN DOWN"]};
|
||||||
_obj setVariable["packing",1];
|
_obj setVariable["packing",1];
|
||||||
|
|
||||||
_dir = direction _obj;
|
_dir = direction _obj;
|
||||||
@@ -79,4 +79,4 @@ if(!isNull _obj) then {
|
|||||||
cutText [format[(localize "str_epoch_player_117"),_text], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_117"),_text], "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
s_player_lockvault = -1;
|
s_player_lockvault = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_activatingPlayer","_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_object","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_alreadyPacking","_dis","_sfx","_classname","_location"];
|
private ["_activatingPlayer","_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_object","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_alreadyPacking","_dis","_sfx","_classname","_location"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_13") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_13") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_packtent;
|
player removeAction s_player_packtent;
|
||||||
s_player_packtent = 1;
|
s_player_packtent = 1;
|
||||||
@@ -18,13 +18,13 @@ _objectUID = _obj getVariable["ObjectUID","0"];
|
|||||||
[1,1] call dayz_HungerThirst;
|
[1,1] call dayz_HungerThirst;
|
||||||
player playActionNow "Medic";
|
player playActionNow "Medic";
|
||||||
|
|
||||||
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = false; s_player_packtent = -1; cutText [(localize "str_epoch_player_14"), "PLAIN DOWN"];};
|
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_packtent = -1; cutText [(localize "str_epoch_player_14"), "PLAIN DOWN"];};
|
||||||
|
|
||||||
if(_ownerID != dayz_characterID) exitWith {TradeInprogress = false; s_player_packtent = -1; cutText [localize "str_fail_tent_pack", "PLAIN DOWN"];};
|
if(_ownerID != dayz_characterID) exitWith {DZE_ActionInProgress = false; s_player_packtent = -1; cutText [localize "str_fail_tent_pack", "PLAIN DOWN"];};
|
||||||
|
|
||||||
_alreadyPacking = _obj getVariable["packing",0];
|
_alreadyPacking = _obj getVariable["packing",0];
|
||||||
|
|
||||||
if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_packtent = -1; cutText [format[(localize "str_player_beingpacked")] , "PLAIN DOWN"]};
|
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_packtent = -1; cutText [format[(localize "str_player_beingpacked")] , "PLAIN DOWN"]};
|
||||||
|
|
||||||
_obj setVariable["packing",1];
|
_obj setVariable["packing",1];
|
||||||
|
|
||||||
@@ -102,4 +102,4 @@ if(!isNull _obj and alive _obj) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
s_player_packtent = -1;
|
s_player_packtent = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_activatingPlayer","_obj","_ownerID","_objectID","_objectUID","_alreadyPacking","_location1","_location2","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_packedClass","_text","_playerNear"];
|
private ["_activatingPlayer","_obj","_ownerID","_objectID","_objectUID","_alreadyPacking","_location1","_location2","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_packedClass","_text","_playerNear"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_15") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_15") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
_activatingPlayer = getPlayerUID player;
|
_activatingPlayer = getPlayerUID player;
|
||||||
|
|
||||||
@@ -14,11 +14,11 @@ _packedClass = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "packedC
|
|||||||
_text = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "displayName");
|
_text = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "displayName");
|
||||||
|
|
||||||
// Silently exit if object no longer exists
|
// Silently exit if object no longer exists
|
||||||
if(isNull _obj or !(alive _obj)) exitWith { TradeInprogress = false; };
|
if(isNull _obj or !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||||
|
|
||||||
_playerNear = _obj call dze_isnearest_player;
|
_playerNear = _obj call dze_isnearest_player;
|
||||||
|
|
||||||
if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_16") , "PLAIN DOWN"]; };
|
if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_16") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
_ownerID = _obj getVariable["CharacterID","0"];
|
_ownerID = _obj getVariable["CharacterID","0"];
|
||||||
_objectID = _obj getVariable["ObjectID","0"];
|
_objectID = _obj getVariable["ObjectID","0"];
|
||||||
@@ -27,13 +27,13 @@ _objectUID = _obj getVariable["ObjectUID","0"];
|
|||||||
player removeAction s_player_packvault;
|
player removeAction s_player_packvault;
|
||||||
s_player_packvault = 1;
|
s_player_packvault = 1;
|
||||||
|
|
||||||
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_118"),_text], "PLAIN DOWN"];};
|
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_118"),_text], "PLAIN DOWN"];};
|
||||||
|
|
||||||
if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith { TradeInprogress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_119"),_text], "PLAIN DOWN"];};
|
if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith { DZE_ActionInProgress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_119"),_text], "PLAIN DOWN"];};
|
||||||
|
|
||||||
_alreadyPacking = _obj getVariable["packing",0];
|
_alreadyPacking = _obj getVariable["packing",0];
|
||||||
|
|
||||||
if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_120"),_text] , "PLAIN DOWN"]};
|
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_120"),_text] , "PLAIN DOWN"]};
|
||||||
_obj setVariable["packing",1];
|
_obj setVariable["packing",1];
|
||||||
|
|
||||||
cutText [format[(localize "str_epoch_player_121"),_text], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_121"),_text], "PLAIN DOWN"];
|
||||||
@@ -111,4 +111,4 @@ if(!isNull _obj and alive _obj) then {
|
|||||||
player action ["Gear", _holder];
|
player action ["Gear", _holder];
|
||||||
};
|
};
|
||||||
s_player_packvault = -1;
|
s_player_packvault = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_alreadyPacking","_playerNear","_playerID","_claimedBy","_unlockedClass","_text","_nul","_objType"];
|
private ["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr","_alreadyPacking","_playerNear","_playerID","_claimedBy","_unlockedClass","_text","_nul","_objType"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
{player removeAction _x} forEach s_player_combi;s_player_combi = [];
|
{player removeAction _x} forEach s_player_combi;s_player_combi = [];
|
||||||
s_player_unlockvault = 1;
|
s_player_unlockvault = 1;
|
||||||
@@ -15,10 +15,10 @@ _obj = _this;
|
|||||||
_objType = typeOf _obj;
|
_objType = typeOf _obj;
|
||||||
|
|
||||||
_playerNear = _obj call dze_isnearest_player;
|
_playerNear = _obj call dze_isnearest_player;
|
||||||
if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_20") , "PLAIN DOWN"]; };
|
if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_20") , "PLAIN DOWN"]; };
|
||||||
|
|
||||||
// Silently exit if object no longer exists or alive
|
// Silently exit if object no longer exists or alive
|
||||||
if(isNull _obj or !(alive _obj)) exitWith { TradeInprogress = false; };
|
if(isNull _obj or !(alive _obj)) exitWith { DZE_ActionInProgress = false; };
|
||||||
|
|
||||||
_unlockedClass = getText (configFile >> "CfgVehicles" >> _objType >> "unlockedClass");
|
_unlockedClass = getText (configFile >> "CfgVehicles" >> _objType >> "unlockedClass");
|
||||||
_text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName");
|
_text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName");
|
||||||
@@ -27,7 +27,7 @@ _alreadyPacking = _obj getVariable["packing",0];
|
|||||||
_claimedBy = _obj getVariable["claimed","0"];
|
_claimedBy = _obj getVariable["claimed","0"];
|
||||||
_ownerID = _obj getVariable["CharacterID","0"];
|
_ownerID = _obj getVariable["CharacterID","0"];
|
||||||
|
|
||||||
if (_alreadyPacking == 1) exitWith {TradeInprogress = false; cutText [format[(localize "str_epoch_player_124"),_text], "PLAIN DOWN"]};
|
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_124"),_text], "PLAIN DOWN"]};
|
||||||
|
|
||||||
// Promt user for password if _ownerID != dayz_playerUID
|
// Promt user for password if _ownerID != dayz_playerUID
|
||||||
if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
|
if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
|
||||||
@@ -112,7 +112,7 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
|
|||||||
cutText [format[(localize "str_epoch_player_125"),_text], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_125"),_text], "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
cutText [format[(localize "str_player_beinglooted"),_text] , "PLAIN DOWN"];
|
cutText [format[(localize "str_player_beinglooted"),_text] , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
@@ -125,4 +125,4 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
|
|||||||
cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
s_player_unlockvault = -1;
|
s_player_unlockvault = -1;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
private ["_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_removed","_tobe_removed_total","_textMissing","_num_removed","_removed_total","_temp_removed_array","_countr","_objectID","_objectUID","_location","_dir","_objectCharacterID","_weapons","_magazines","_backpacks","_classname","_object","_holder","_objWpnTypes","_objWpnQty","_newclassname","_requirements","_upgrade","_vehicle","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle"];
|
private ["_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_removed","_tobe_removed_total","_textMissing","_num_removed","_removed_total","_temp_removed_array","_countr","_objectID","_objectUID","_location","_dir","_objectCharacterID","_weapons","_magazines","_backpacks","_classname","_object","_holder","_objWpnTypes","_objWpnQty","_newclassname","_requirements","_upgrade","_vehicle","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "STR_EPOCH_PLAYER_52") , "PLAIN DOWN"]; };
|
if(DZE_ActionInProgress) exitWith { cutText [(localize "STR_EPOCH_PLAYER_52") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
// look for nearest vehicle
|
// look for nearest vehicle
|
||||||
_findNearestVehicles = nearestObjects [player, ["LandVehicle"], 10];
|
_findNearestVehicles = nearestObjects [player, ["LandVehicle"], 10];
|
||||||
@@ -166,4 +166,4 @@ if (_IsNearVehicle >= 1) then {
|
|||||||
cutText [(localize "STR_EPOCH_PLAYER_27"), "PLAIN DOWN"];
|
cutText [(localize "STR_EPOCH_PLAYER_27"), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
@@ -622,7 +622,7 @@ if(!isDedicated) then {
|
|||||||
dayz_Magazines = [];
|
dayz_Magazines = [];
|
||||||
dayzGearSave = false;
|
dayzGearSave = false;
|
||||||
dayz_unsaved = false;
|
dayz_unsaved = false;
|
||||||
TradeInprogress = false;
|
DZE_ActionInProgress = false;
|
||||||
dayz_scaleLight = 0;
|
dayz_scaleLight = 0;
|
||||||
dayzDebug = false;
|
dayzDebug = false;
|
||||||
dayzState = -1;
|
dayzState = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user