Merge pull request #1769 from oiad/master

Advanced trading bugfix, Snap building typo and snap point fixes
This commit is contained in:
ebaydayz
2016-09-24 12:25:14 -04:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -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"}
};

View File

@@ -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]);