i started this new Thread for the Mod so it's easier for players to find it and for me to support it!
This will also stop the confusion with the mod when you use Maca's or mine and have problems with it.
I got Maca's permission to do it and ALL credits for the idea and the first coding goes to Maca!
Thanks again Maca for this amazing idea/script!
Ok here we go...
This Mod adds a "Toggle Snapping" function to these Epoch Buildable objects:
MetalFloor_DZ
WoodFloor_DZ
CinderWall_DZ
CinderWallDoorway_DZ
CinderWallDoorLocked_DZ
CinderWallDoor_DZ
CinderWallSmallDoorway_DZ
CinderWallDoorSmallLocked_DZ
CinderWallHalf_DZ
CinderWallDoorSmall_DZ
WoodLargeWall_DZ
Land_DZE_LargeWoodDoor
WoodLargeWallWin_DZ
WoodLargeWallDoor_DZ
Land_DZE_GarageWoodDoor
Land_DZE_GarageWoodDoorLocked
Land_DZE_LargeWoodDoorLocked
WoodSmallWallThird_DZ
WoodSmallWallDoor_DZ
WoodSmallWall_DZ
WoodSmallWallWin_DZ
Land_DZE_WoodDoor
Land_DZE_WoodDoorLocked
Sandbag1_DZ
MetalPanel_DZ
Fence_corrugated_DZ
StickFence_DZ
Land_HBarrier1_DZ
Land_HBarrier3_DZ
Land_HBarrier5_DZ
Fort_RazorWire
Objects can be snapped to another object of the same type like: Metal_Floor_DZ <-> Metal_Floor_DZ Sandbag1_DZ <-> Sandbag1_DZ
or any Wall combination if its the same Material like: WoodSmallWall_DZ <-> WoodSmallWall_DZ WoodSmallWall_DZ <-> WoodSmallWallWin_DZ CinderWallHalf_DZ <-> CinderWallHalf_DZ CinderWallHalf_DZ <-> CinderWallDoorway_DZ
When you start building a new object you will get a "Toggle Snapping" option if the object is supported.
Hit it to activate the snapping.
Distance between the two objects has to be lower then 1.5m.
So move your object to almost same height and next to one side, near the top or near the bottom of the object you want to snap it to.
SNAP!
This allows you to build a Floor or a Wall on the same height in a perfect line.
It is also possible to make perfect 90° angles with it, for this you also have to bring the object almost in the desired angle to the other object and it will snap to it.
So What makes this version "Extended"?
Well...
Snapping will work on more then one Floor
Snapping will work while building over Water
Snapping a object on Top/Bottom of eachother
Snapping with set rotation (for set Door open directions)
More objects supported
Code for finding snap points redone
Demo Video:
http://youtu.be/j5SXctN8WHA
3.
Copy custom folder from the extracted Snapping_v1.6 to MPMissions\YOURMISSIONNAME\
4.
Open MPMissions\YOURMISSIONNAME\init.sqf
Find this line:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
and add this line RIGHT BELOW it:
call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";
so it will look like:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";
5.
Open MPMissions\YOURMISSIONNAME\description.ext
Add this line to the VERY BOTTOM of it! (Yeah this means AFTER the last closing bracket!)
It has to be the VERY LAST LINE of the File!