Jump to content

[Release/Addon] Build Snapping - Support for more buildables! (Safe, Storage Shed, 1/2 Floors, 1/4 Floors etc...)


Recommended Posts

[Release/Addon] Build Snapping - Support for more buildables! (Safe, Storage Shed, 1/2 Floors, 1/4 Floors etc...)

 

Hey all, this is an addon to @OtterNas3's Build Snapping v1.6. It simply adds snapping support for a few more buildables which his current version doesn't support.

@OtterNas3 - If you have any problems with this just message me, also feel free to add the snap points to your script.

 

3hDUZYD.png

 

Buildables supported:

  • WoodRamp_DZ - Allows snapping to the left and right sides.
  • VaultStorage/VaultStorageLocked - Allows snapping to the left and right sides as well as the top and bottom.
  • TentStorage - Allows snapping to the left and right sides.
  • TentStorageDomed/TentStorageDomed2 - Allows snapping to the left and right sides.
  • StorageShed_DZ - Allows snapping to the left and right sides.
  • WoodFloorHalf_DZ - Allows snapping to the front, back, left and right sides.
  • WoodFloorQuarter_DZ - Allows snapping to the front, back, left and right sides.
  • WoodStairsSans_DZ/WoodStairs_DZ/WoodStairsRails_DZ - Allows snapping to the left and right sides.
  • GunRack_DZ - Allows snapping to the left and right sides as well as the top and bottom.
  • WoodCrate_DZ - Allows snapping to the left and right sides as well as the top and bottom.

Requirements:

  • OtterNas3's Build Snapping - this should already be installed!

Installation:

  1. Open the 'points.hpp' file located inside the build snapping folder.
  2. Scroll to the very bottom.
  3. Just before the very last '};' paste in the contents of the spoiler.
  4. Save the file and that's it!

	class WoodRamp_DZ {
		snap[] = {"WoodRamp_DZ"};
		points[] = {
			{
				{0, -3.31323, 0}, 0
			},
			{
				{0, 3.31323, 0}, 0
			}
		};
	};

	class VaultStorage {
		snap[] = {"VaultStorage", "VaultStorageLocked"};
		points[] = {
			{
				{0.732422, 0, 0}, 0
			},
			{
				{-0.732422, 0, 0}, 0
			},
			{
				{0, 0, 1.22001}, 0
			},
			{
				{0, 0, -1.22001}, 0
			}
		};
	};

	class VaultStorageLocked: VaultStorage {};

	class TentStorage {
		snap[] = {"TentStorage"};
		points[] = {
			{
				{-1.59155, 0, -0.583953}, 0
			},
			{
				{1.59155, 0, -0.583953}, 0
			}
		};
	};

	class TentStorageDomed {
		snap[] = {"TentStorageDomed", "TentStorageDomed2"};
		points[] = {
			{
				{-2.66309, 0, -0.619246}, 0
			},
			{
				{2.66309, 0, -0.619246}, 0
			}
		};
	};

	class TentStorageDomed2: TentStorageDomed {};

	class StorageShed_DZ {
		snap[] = {"StorageShed_DZ"};
		points[] = {
			{
				{0, -2.72192, -1.22576}, 0
			},
			{
				{0, 2.72192, -1.22576}, 0
			}
		};
	};

	class WoodFloorHalf_DZ {
		snap[] = {"WoodFloorHalf_DZ"};
		points[] = {
			{
				{-2.50244, 0, 0}, 0
			},
			{
				{2.50244, 0, 0}, 0
			},
			{
				{0, -4.67456, 0}, 0
			},
			{
				{0, 4.67456, 0}, 0
			}
		};
	};

	class WoodFloorQuarter_DZ {
		snap[] = {"WoodFloorQuarter_DZ"};
		points[] = {
			{
				{-2.49268, 0, 0}, 0
			},
			{
				{2.49268, 0, 0}, 0
			},
			{
				{0, -2.45239, 0}, 0
			},
			{
				{0, 2.45239, 0}, 0
			}
		};
	};

	class WoodStairsSans_DZ {
		snap[] = {"WoodStairsSans_DZ", "WoodStairs_DZ", "WoodStairsRails_DZ"};
		points[] = {
			{
				{0, 1.58154, 0}, 0
			},
			{
				{0, -1.58154, 0}, 0
			}
		};
	};

	class WoodStairs_DZ: WoodStairsSans_DZ {};
	class WoodStairsRails_DZ: WoodStairsSans_DZ {};

	class GunRack_DZ {
		snap[] = {"GunRack_DZ"};
		points[] = {
			{
				{0.78125, 0, -0.504823}, 0
			},
			{
				{-0.78125, 0, -0.504823}, 0
			},
			{
				{0, 0, 0.234676}, 0
			},
			{
				{0, 0, -0.234676}, 0
			}
		};
	};

	class WoodCrate_DZ {
		snap[] = {"WoodCrate_DZ"};
		points[] = {
			{
				{0.996582, 0, -0.486694}, 0
			},
			{
				{-0.996582, 0, -0.486694}, 0
			},
			{
				{0, 1.00293, -0.486694}, 0
			},
			{
				{0, -1.00293, -0.486694}, 0
			},
			{
				{0, 0, 0.481537}, 0
			},
			{
				{0, 0, -0.481537}, 0
			}
		};
	}; 

 

Credit to OtterNas3 for the amazing Build Snapping script!

Link to comment
Share on other sites

Video of me testing: http://youtu.be/PKQGKViDJss

 

From what I found, I don't like how the storage shed snaps, I don't think it will ever get used like that.  And the gun rack/safe seem to have a couple weird positions.

 

But overall.. Works Great!  Thank you!

Glad you like it man! As for the safe snapping inside of itself, if you try it with other buildables it will do it too, it's just a quirk in the snapping code. The snapping a bit quirky all over, like snapping sometimes will just flip the angles, the mod isn't 100% bug free. As for the gun rack, I must of screwed up a snap point, I'll take a look later.

Link to comment
Share on other sites

Has Maca been forgotten?!

Well I am new to modding Arma 2 so I don't know all the 'ins' and outs' of this 'Maca' guy, plus OtterNas3's original topic credited him and this is an addon to that so I don't find it necessary to credit again.

Link to comment
Share on other sites

Great addition, thanks for the contribution.

BTW, there seems to be a lot of growth-inhibiting negativity on the forum.

I find it best to just ignore it and focus on the positive

:)

Thanks man and yeah I'm just gonna keep my head down. I'll be releasing something pretty cool soon.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...