From f68e92d552d0eee2e255e0ad250ce049ea1d0d3a Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 28 Jul 2021 13:01:42 -0500 Subject: [PATCH] Update snappoints.hpp Adjust z position to center of metal and glass floors. Adjust the top of the cinder walls so they line up with the top of the cinder gate when stacked 2 high. Add additional snap points to the 4x metal floors. The 3d models of the wood floors need adjustment so the x and y axis are at the center of the models. --- SQF/dayz_code/Configs/CfgExtra/snappoints.hpp | 66 +++++++++++-------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp b/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp index c222b8cad..c2a1f5391 100644 --- a/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp +++ b/SQF/dayz_code/Configs/CfgExtra/snappoints.hpp @@ -348,7 +348,7 @@ class SnapBuilding { {0,0,0,$STR_EPOCH_ACTION_SNAP_BOTTOM}, {-2.64,0,1.685,$STR_EPOCH_ACTION_SNAP_LEFT}, {2.64,0,1.685,$STR_EPOCH_ACTION_SNAP_RIGHT}, - {0,0,3.37042,$STR_EPOCH_ACTION_SNAP_TOP} + {0,0,3.4,$STR_EPOCH_ACTION_SNAP_TOP} }; radius = 10; }; @@ -403,10 +403,10 @@ class SnapBuilding { class MetalFloor_DZ: FloorsWallsStairs { points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0, -2.63,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0, 2.63,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-2.63,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {2.63,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0, -2.63,0.1265,$STR_EPOCH_ACTION_SNAP_BACK}, + {0, 2.63,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT}, + {-2.63,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT}, + {2.63,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT} }; radius = 12; }; @@ -416,10 +416,10 @@ class SnapBuilding { class MetalFloor_Quarter_DZ: FloorsWallsStairs { points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0,-1.2,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0,1.42,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-1.31,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {1.31,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0,-1.2,0.1265,$STR_EPOCH_ACTION_SNAP_BACK}, + {0,1.42,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT}, + {-1.31,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT}, + {1.31,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT} }; radius = 12; }; @@ -428,10 +428,10 @@ class SnapBuilding { class MetalFloor_Half_DZ: FloorsWallsStairs { points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0,-2.62,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0,2.65,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-1.31,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {1.31,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0,-2.62,0.1265,$STR_EPOCH_ACTION_SNAP_BACK}, + {0,2.65,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT}, + {-1.31,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT}, + {1.31,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT} }; radius = 10; }; @@ -440,10 +440,10 @@ class SnapBuilding { class GlassFloor_DZ: FloorsWallsStairs { points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0,-2.63,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0,2.63,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-2.63,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {2.63,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0,-2.63,0.1265,$STR_EPOCH_ACTION_SNAP_BACK}, + {0,2.63,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT}, + {-2.63,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT}, + {2.63,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT} }; radius = 12; }; @@ -453,10 +453,10 @@ class SnapBuilding { class GlassFloor_Quarter_DZ: FloorsWallsStairs { points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0,-1.33,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0,1.3,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-1.31,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {1.32,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0,-1.33,0.1265,$STR_EPOCH_ACTION_SNAP_BACK}, + {0,1.3,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT}, + {-1.31,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT}, + {1.32,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT} }; radius = 10; }; @@ -466,10 +466,10 @@ class SnapBuilding { class GlassFloor_Half_DZ: FloorsWallsStairs { points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0,-2.63,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0,2.64,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-1.34,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {1.29,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0,-2.63,0.1265,$STR_EPOCH_ACTION_SNAP_BACK}, + {0,2.64,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT}, + {-1.34,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT}, + {1.29,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT} }; radius = 12; }; @@ -677,10 +677,18 @@ class SnapBuilding { radius = 20; points[] = { {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, - {0,-5.27,0,$STR_EPOCH_ACTION_SNAP_BACK}, - {0,5.27,0,$STR_EPOCH_ACTION_SNAP_FRONT}, - {-5.27,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, - {5.27,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT} + {0,-5.27,0.1265,$STR_EPOCH_ACTION_SNAP_BACK_CENTER}, + {-2.635,-5.27,0.1265,$STR_EPOCH_ACTION_SNAP_BACK_LEFT}, + {2.635,-5.27,0.1265,$STR_EPOCH_ACTION_SNAP_BACK_RIGHT}, + {0,5.27,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT_CENTER}, + {-2.635,5.27,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT_LEFT}, + {2.635,5.27,0.1265,$STR_EPOCH_ACTION_SNAP_FRONT_RIGHT}, + {-5.27,0,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT_CENTER}, + {-5.27,-2.635,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT_BACK}, + {-5.27,2.635,0.1265,$STR_EPOCH_ACTION_SNAP_LEFT_FRONT}, + {5.27,0,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT_CENTER}, + {5.27,-2.635,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT_BACK}, + {5.27,2.635,0.1265,$STR_EPOCH_ACTION_SNAP_RIGHT_FRONT} }; };