From c02053176d6afc7fb8bf39d5db37122cc0c6e780 Mon Sep 17 00:00:00 2001 From: oiad Date: Sat, 24 Sep 2016 18:53:02 +1200 Subject: [PATCH] Advanced trading bugfix, Snap building typo and snap point fixes Fixes a bug with advanced trading green "you have this item" text in buyables list, this was showing you had the item when you didn't. Snap building typo Snap building snap points for large cinder walls as reported by @SmokeyBR https://github.com/EpochModTeam/DayZ-Epoch/issues/1766#issuecomment-248021073 --- SQF/dayz_code/Configs/CfgExtra/snappoints.hpp | 8 ++++---- .../AdvancedTrading/functions/z_at_fillBuyableList.sqf | 2 +- SQF/dayz_code/actions/snap_build.sqf | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp b/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp index ca03ff1f4..5a6e00ece 100644 --- a/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp +++ b/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp @@ -242,8 +242,8 @@ class SnapBuilding { class Cinder_DZE: FloorsWallsStairs { //All cinder walls and doors points[] = { {0,0,0,"Pivot"}, - {-2.64, 0, 1.685,"Left"}, - {2.64, 0, 1.685,"Right"}, + {-2.64, 0, 0,"Left"}, + {2.64, 0, 0,"Right"}, {0, 0, 3.37042,"Top"} }; radius = 10; @@ -251,8 +251,8 @@ class SnapBuilding { class CinderWall_Preview_DZ: Cinder_DZE { points[] = { {0,0,0,"Pivot"}, - {-2.64, 0, 0,"Left"}, - {2.64, 0, 0,"Right"}, + {-2.64, 0, -0.009,"Left"}, + {2.64, 0, -0.009,"Right"}, {0, 0, 1.685,"Top"}, {0,0,-1.685,"Bottom"} }; diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf index e12e54163..955420613 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf @@ -4,13 +4,13 @@ private ["_index","_count","_type","_name","_weapons","_typeOf"]; _weapons = weapons player; _weapons set [count _weapons,dayz_onBack]; _typeOf = typeOf (unitBackPack player); -_count = 0; { _index = lbAdd [Z_AT_BUYABLELIST, _x select 3]; lbSetPicture [Z_AT_BUYABLELIST, _index, _x select 4 ]; _name = _x select 0; _type = _x select 1; + _count = 0; if (_type in DZE_tradeVehicle) then { _count = { local _x } count (nearestObjects [(getPosATL player), [_name], Z_VehicleDistance]); diff --git a/SQF/dayz_code/actions/snap_build.sqf b/SQF/dayz_code/actions/snap_build.sqf index e998c3c79..668392a1d 100644 --- a/SQF/dayz_code/actions/snap_build.sqf +++ b/SQF/dayz_code/actions/snap_build.sqf @@ -203,7 +203,7 @@ fnc_initSnapTutorial = { _bldTxtStringQE = format["[Q / E]: Rotate object 180 degrees while holding.
",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL]; _bldTxtStringQEF = format["[Q / E]: Rotate object 45 degrees while dropped or snapped.

",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL]; _bldTxtStringFD = format["[F]: Drop / Pick up object.
",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL]; - _bldTxtStringFS = format["[F]: Snap /Pick up object.
",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL]; + _bldTxtStringFS = format["[F]: Snap / Pick up object.
",_bldTxtClrO,_bldTxtClrW,_bldTxtSzT,_bldTxtShdw,_bldTxtAlgnL]; switch (_bldTxtSwitch) do { case "init": { _bldTxtFinal = _bldTxtStringTitle + _bldTxtStringSD + _bldTxtStringPG + _bldTxtStringAPG + _bldTxtStringCPG + _bldTxtStringQE + _bldTxtStringQEF + _bldTxtStringFD;