mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Removed obsolete code
This commit is contained in:
@@ -49,7 +49,7 @@ if (_isOk) then {
|
|||||||
_display = findDisplay 106;
|
_display = findDisplay 106;
|
||||||
_display closeDisplay 0;
|
_display closeDisplay 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
//Add magazines if needed
|
//Add magazines if needed
|
||||||
if (_create in ["MeleeHatchet_DZE","MeleeCrowbar","MeleeMachete","MeleeFishingPole","MeleeSledge"]) then {
|
if (_create in ["MeleeHatchet_DZE","MeleeCrowbar","MeleeMachete","MeleeFishingPole","MeleeSledge"]) then {
|
||||||
if (_create == "MeleeCrowbar") then {
|
if (_create == "MeleeCrowbar") then {
|
||||||
@@ -67,20 +67,11 @@ if (_isOk) then {
|
|||||||
if (_create == "MeleeFishingPole") then {
|
if (_create == "MeleeFishingPole") then {
|
||||||
player addMagazine 'Fishing_Swing';
|
player addMagazine 'Fishing_Swing';
|
||||||
};
|
};
|
||||||
if (_type == "cfgWeapons") then {
|
};
|
||||||
_muzzles = getArray(configFile >> "cfgWeapons" >> _create >> "muzzles");
|
|
||||||
_wtype = ((weapons player) select 0);
|
|
||||||
if (count _muzzles > 1) then {
|
|
||||||
player selectWeapon (_muzzles select 0);
|
|
||||||
} else {
|
|
||||||
player selectWeapon _wtype;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
cutText [localize "STR_DAYZ_CODE_2", "PLAIN DOWN"];
|
cutText [localize "STR_DAYZ_CODE_2", "PLAIN DOWN"];
|
||||||
|
|
||||||
//Add magazines back
|
//Add magazines back
|
||||||
if (_item in ["MeleeHatchet_DZE","MeleeCrowbar","MeleeMachete","MeleeFishingPole","MeleeSledge"]) then {
|
if (_item in ["MeleeHatchet_DZE","MeleeCrowbar","MeleeMachete","MeleeFishingPole","MeleeSledge"]) then {
|
||||||
if (_item == "MeleeCrowbar") then {
|
if (_item == "MeleeCrowbar") then {
|
||||||
@@ -98,6 +89,6 @@ if (_isOk) then {
|
|||||||
if (_item == "MeleeFishingPole") then {
|
if (_item == "MeleeFishingPole") then {
|
||||||
player addMagazine 'Fishing_Swing';
|
player addMagazine 'Fishing_Swing';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
DZE_ActionInProgress = false;
|
DZE_ActionInProgress = false;
|
||||||
|
|||||||
@@ -365,7 +365,6 @@ if (_hasrequireditem) then {
|
|||||||
|
|
||||||
// No building in trader zones
|
// No building in trader zones
|
||||||
if(!canbuild) then { _cancel = true; _reason = "Cannot build in a city."; };
|
if(!canbuild) then { _cancel = true; _reason = "Cannot build in a city."; };
|
||||||
if(!placevault) then { _cancel = true; _reason = "Cannot build in a city."; };
|
|
||||||
|
|
||||||
if(!_cancel) then {
|
if(!_cancel) then {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user