mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-09 17:52:54 +03:00
0.992a
+ Commented out anti-teleport script from 1.7.6.1 it would bug and pop people into the air when walking on docks. + Changes to repair and salvage code to fix #167 + Changed crafting recipe of H-barrier ["ItemSandbag",3],["ItemWire",1],["ItemTankTrap",1] fixes #153 + Added more randomization to vehicle spawn location when purchasing, to prevent duplicate UID's. + increased selling vehicle radis to 20m. fixes #168 + change message when selling a vehicle and it is not within range "No %1 found within 20 meters.". + Added HeliHempty to possible spawn locations for purchased vehicles.
This commit is contained in:
@@ -105,15 +105,15 @@ if (inflamed cursorTarget and _canDo) then {
|
||||
|
||||
_recipe_ItemSandbagLarge = [
|
||||
[ ["ItemSandbagLarge",1] ],
|
||||
[ ["ItemSandbag",3],["ItemWire",1] ]
|
||||
[ ["ItemSandbag",3],["ItemWire",1],["ItemTankTrap",1] ]
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
_recipe_FoodChickenNoodle = [["FoodchickenRaw",1],["FoodCanPasta",1],["ItemWaterbottle",1]];
|
||||
_recipe_FoodBeefBakedBeans = [["FoodbeefRaw",1],["FoodCanBakedBeans",1]];
|
||||
//_recipe_FoodChickenNoodle = [["FoodchickenRaw",1],["FoodCanPasta",1],["ItemWaterbottle",1]];
|
||||
//_recipe_FoodBeefBakedBeans = [["FoodbeefRaw",1],["FoodCanBakedBeans",1]];
|
||||
|
||||
//Add new item
|
||||
_item = _this;
|
||||
|
||||
@@ -33,9 +33,9 @@ if (_section and _hasToolbox) then {
|
||||
|
||||
dayzSetFix = [_vehicle,_selection,0];
|
||||
publicVariable "dayzSetFix";
|
||||
//if (local _vehicle) then {
|
||||
dayzSetFix call object_setFixServer;
|
||||
//};
|
||||
if (local _vehicle) then {
|
||||
dayzSetFix call object_setFixServer;
|
||||
};
|
||||
|
||||
player playActionNow "Medic";
|
||||
sleep 1;
|
||||
|
||||
@@ -48,9 +48,9 @@ if (_hasToolbox) then {
|
||||
|
||||
dayzSetFix = [_vehicle,_selection,1];
|
||||
publicVariable "dayzSetFix";
|
||||
//if (local _vehicle) then {
|
||||
dayzSetFix call object_setFixServer;
|
||||
//}
|
||||
if (local _vehicle) then {
|
||||
dayzSetFix call object_setFixServer;
|
||||
}
|
||||
|
||||
player playActionNow "Medic";
|
||||
sleep 1;
|
||||
|
||||
@@ -100,7 +100,7 @@ diag_log format["DEBUG Buy: %1", dayzTraderMenuResult];
|
||||
_count = 1;
|
||||
};
|
||||
} else {
|
||||
_count = {(typeOf _x) == _name} count (nearestObjects [player, [_name], 10]);
|
||||
_count = {(typeOf _x) == _name} count (nearestObjects [player, [_name], 20]);
|
||||
}
|
||||
};
|
||||
if(_type == "CfgMagazines") then {
|
||||
|
||||
@@ -20,7 +20,7 @@ _bos = 0;
|
||||
if(_buy_o_sell == "buy") then {
|
||||
_qty = {_x == _part_in} count magazines player;
|
||||
} else {
|
||||
_obj = nearestObjects [(getPosATL player), [_part_in], 10];
|
||||
_obj = nearestObjects [(getPosATL player), [_part_in], 20];
|
||||
_qty = count _obj;
|
||||
_bos = 1;
|
||||
};
|
||||
@@ -46,9 +46,9 @@ if (_qty >= _qty_in) then {
|
||||
player removeMagazine _part_in;
|
||||
};
|
||||
|
||||
_dir = 90;
|
||||
_dir = round(random 360);
|
||||
|
||||
_location = [(position player),0,20,1,2,20,0] call BIS_fnc_findSafePos;
|
||||
_location = [(position player),0,20,1,2,2000,0] call BIS_fnc_findSafePos;
|
||||
|
||||
//place tent (local)
|
||||
_veh = createVehicle [_part_out, _location, [], 0, "CAN_COLLIDE"];
|
||||
@@ -103,7 +103,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
} else {
|
||||
_needed = _qty_in - _qty;
|
||||
cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||
cutText [format[("No %1 found within 20 meters."),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
TradeInprogress = false;
|
||||
@@ -20,7 +20,7 @@ _bos = 0;
|
||||
if(_buy_o_sell == "buy") then {
|
||||
_qty = {_x == _part_in} count magazines player;
|
||||
} else {
|
||||
_obj = nearestObjects [(getPosATL player), [_part_in], 10];
|
||||
_obj = nearestObjects [(getPosATL player), [_part_in], 20];
|
||||
_qty = count _obj;
|
||||
_bos = 1;
|
||||
};
|
||||
@@ -47,14 +47,14 @@ if (_qty >= _qty_in) then {
|
||||
player removeMagazine _part_in;
|
||||
};
|
||||
|
||||
_dir = round(random 180);
|
||||
_dir = round(random 360);
|
||||
|
||||
|
||||
_helipad = nearestObjects [player, ["HeliHCivil"], 50];
|
||||
_helipad = nearestObjects [player, ["HeliHCivil","HeliHempty"], 100];
|
||||
if(count _helipad > 0) then {
|
||||
_location = (getPosATL (_helipad select 0));
|
||||
_location = [(getPosATL (_helipad select 0)),0,10,1,0,2000,0] call BIS_fnc_findSafePos;
|
||||
} else {
|
||||
_location = [(position player),0,20,1,0,20,0] call BIS_fnc_findSafePos;
|
||||
_location = [(position player),0,20,1,0,2000,0] call BIS_fnc_findSafePos;
|
||||
};
|
||||
|
||||
//place tent (local)
|
||||
@@ -110,7 +110,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
} else {
|
||||
_needed = _qty_in - _qty;
|
||||
cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||
cutText [format[("No %1 found within 20 meters. "),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
TradeInprogress = false;
|
||||
Reference in New Issue
Block a user