mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 09:32:02 +03:00
1.0.0.5 Developer Build
+ [ADDED] Added 4 more new military skins as rare drops on militaryclothes: (FR_OHara_DZ,FR_Rodriguez_DZ,CZ_Soldier_Sniper_EP1_DZ,Graves_Light_DZ) Picture. Left to right. http://i.imgur.com/HlE4o2R.jpg + [CHANGED] You can now only sell vehicles to the trader if they are between 75% and 100% health. + [ADDED] Added generator as build-able and now can be started with one 20 liter Jerrycan and runs until server restart. + [CHANGED] Lowered building preview time from 50 seconds to 15. + [ADDED] First release of PHP tool to help config traders. + [ADDED] Player Zombie vision. + [CHANGED] You must now be the owner of a plot or a friend of an owner to build. + [CHANGED] When removing base building elements and not the owner or friend removal counter is doubled. + [FIXED] Potential fix for shifting position of mg nest. + [ADDED] New sniper rifle SCAR_H_LNG_Sniper_SD (ammo: 20Rnd_762x51_SB_SCAR) added to MassGrave loot tables. + [ADDED] New Machine Gun Pecheneg_DZ to MilitarySpecial loot tables and to traders. (ammo:100Rnd_762x54_PK) + [ADDED] New SMG: Sa61_EP1 (ammo: 20Rnd_B_765x17_Ball), UZI_SD_EP1 (ammo: 30Rnd_9x19_UZI_SD) added to traders and Military loot tables. + [ADDED] New Pistol added to traders and loot tables MassGrave,DynamicDebrisMilitary, and Residential : MakarovSD (ammo: 8Rnd_9x18_MakarovSD) + [ADDED] Bikeys Added for playwith versions of taviana, namalsk, celle, lingor. + [INFO] Attention server owners should change @tavi_DayZ_Epoch folder on the server to @taviana and your players can then connect and install automatically with play.withsix.com with the above mentioned bikeys.
This commit is contained in:
@@ -7,6 +7,7 @@ _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animati
|
||||
_isWater = (surfaceIsWater (getPosATL player)) or dayz_isSwimming;
|
||||
_cancel = false;
|
||||
_reason = "";
|
||||
_canBuildOnPlot = false;
|
||||
|
||||
call gear_ui_init;
|
||||
|
||||
@@ -14,9 +15,6 @@ if(_isWater) exitWith {TradeInprogress = false; cutText [localize "str_player_26
|
||||
if(_onLadder) exitWith {TradeInprogress = false; cutText [localize "str_player_21", "PLAIN DOWN"];};
|
||||
if(player getVariable["combattimeout", 0] >= time) exitWith {TradeInprogress = false; cutText ["Cannot build while in combat.", "PLAIN DOWN"];};
|
||||
|
||||
|
||||
|
||||
|
||||
_item = _this;
|
||||
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create");
|
||||
_require = getArray (configFile >> "cfgMagazines" >> _this >> "ItemActions" >> "Build" >> "require");
|
||||
@@ -24,13 +22,56 @@ _require = getArray (configFile >> "cfgMagazines" >> _this >> "ItemActions" >>
|
||||
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
|
||||
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset");
|
||||
|
||||
// Allow building of plot
|
||||
if(_classname == "Plastic_Pole_EP1_DZ") then {
|
||||
_IsNearPlot = 1;
|
||||
// check for near plot
|
||||
_findNearestPole = [player, ["Plastic_Pole_EP1_DZ"], 30];
|
||||
|
||||
_IsNearPlot = count (_findNearestPole);
|
||||
|
||||
if(_IsNearPlot == 0) then {
|
||||
|
||||
// Allow building of plot
|
||||
if(_classname == "Plastic_Pole_EP1_DZ") then {
|
||||
if(count ([player, ["Plastic_Pole_EP1_DZ"], 60]) == 0) then {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
};
|
||||
|
||||
} else {
|
||||
_IsNearPlot = count (position player nearObjects ["Plastic_Pole_EP1_DZ",30]);
|
||||
// Since there are plots nearby we check for ownership and then for friend status
|
||||
|
||||
// select closest pole
|
||||
_nearestPole = _findNearestPole select 0;
|
||||
|
||||
// Find owner
|
||||
_ownerID = _nearestPole getVariable["CharacterID","0"];
|
||||
|
||||
// check if friendly to owner
|
||||
if(dayz_characterID == _ownerID) then {
|
||||
// owner can build anything within his plot
|
||||
|
||||
if(_classname == "Plastic_Pole_EP1_DZ") then {
|
||||
if(count ([player, ["Plastic_Pole_EP1_DZ"], 30]) == 0) then {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
} else {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
|
||||
} else {
|
||||
// not the owner so check if user is friendly to owner.
|
||||
|
||||
_friendlies = player getVariable ["friendlies",[]];
|
||||
// check if friendly to owner
|
||||
if(_ownerID in _friendlies) then {
|
||||
if(_classname != "Plastic_Pole_EP1_DZ") then {
|
||||
_canBuildOnPlot = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
if(_IsNearPlot == 0) exitWith { TradeInprogress = false; cutText ["Building requires plot within 30m" , "PLAIN DOWN"]; };
|
||||
|
||||
|
||||
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText ["Building requires plot within 30m" , "PLAIN DOWN"]; };
|
||||
|
||||
_missing = "";
|
||||
_hasrequireditem = true;
|
||||
|
||||
Reference in New Issue
Block a user