Jump to content

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


Recommended Posts

Your code is fixed Minty. use this

 

/*
Build Snapping - Extended v1.6


Idea and first code:
Maca


Reworked by: OtterNas3
01/11/2014
Last update 02/20/2014
*/


class SnapPoints
{
////////////////
//EPOCH STUFF///
////////////////
class MetalFloor_DZ {
snap[] = {"MetalFloor_DZ"};
points[] = {
{
{0, -5.25, 0}, 0
},
{
{0, 5.25, 0}, 0
},
{
{5.25, 0, 0}, 0
},
{
{-5.25, 0, 0}, 0
}
};
};


class Sandbag1_DZ {
snap[] = {"Sandbag1_DZ"};
points[] = {
{
{-2.75, 0, -0.441071}, 180
},
{
{2.75, 0, -0.441071}, 180
},
{
{0, 0, 0.351071}, 180
},
{
{0, 0, -1.243213}, 180
},
{
{-2.75, 0, -0.441071}, 0
},
{
{2.75, 0, -0.441071}, 0
},
{
{0, 0, 0.351071}, 0
},
{
{0, 0, -1.243213}, 0
},
{
{1.375, 1.375, -0.441071}, 270
},
{
{1.375, -1.375, -0.441071}, 270
},
{
{-1.375, 1.375, -0.441071}, 90
},
{
{-1.375, -1.375, -0.441071}, 90
} 
};
};


class MetalPanel_DZ {
snap[] = {"MetalPanel_DZ"};
points[] = {
{
{-2.9, 0, -0.999695}, 180
},
{
{2.9, 0, -0.999695}, 180
},
{
{0, 0, 1.699695}, 180
},
{
{0, 0, -3.69939}, 180
},
{
{-2.9, 0, -0.999695}, 0
},
{
{2.9, 0, -0.999695}, 0
},
{
{0, 0, 1.699695}, 0
},
{
{0, 0, -3.69939}, 0
},
{
{1.45, 1.45, -0.999695}, 270
},
{
{1.45, -1.45, -0.999695}, 270
},
{
{-1.45, 1.45, -0.999695}, 90
},
{
{-1.45, -1.45, -0.999695}, 90
} 
};
};


class Fence_corrugated_DZ {
snap[] = {"Fence_corrugated_DZ"};
points[] = {
{
{-3.9375, 0, -0.548553}, 180
},
{
{3.9375, 0, -0.548553}, 180
},
{
{0, 0, 1.198553}, 180
},
{
{0, 0, -2.297106}, 180
},
{
{-3.9375, 0, -0.548553}, 0
},
{
{3.9375, 0, -0.548553}, 0
},
{
{0, 0, 1.198553}, 0
},
{
{0, 0, -2.297106}, 0
},
{
{1.96875, 1.96875, -0.548553}, 270
},
{
{1.96875, -1.96875, -0.548553}, 270
},
{
{-1.96875, 1.96875, -0.548553}, 90
},
{
{-1.96875, -1.96875, -0.548553}, 90
} 
};
};


class StickFence_DZ {
snap[] = {"StickFence_DZ"};
points[] = {
{
{-5.6, 0, -0.363831}, 180
},
{
{5.6, 0, -0.363831}, 180
},
{
{0, 0, 0.863831}, 180
},
{
{0, 0, -1.627662}, 180
},
{
{-5.6, 0, -0.363831}, 0
},
{
{5.6, 0, -0.363831}, 0
},
{
{0, 0, 0.863831}, 0
},
{
{0, 0, -1.627662}, 0
},
{
{2.8, 2.8, -0.363831}, 270
},
{
{2.8, -2.8, -0.363831}, 270
},
{
{-2.8, 2.8, -0.363831}, 90
},
{
{-2.8, -2.8, -0.363831}, 90
} 
};
};


class Land_HBarrier1_DZ {
snap[] = {"Land_HBarrier1_DZ"};
points[] = {
{
{-1.1, 0, -0.606171}, 180
},
{
{1.1, 0, -0.606171}, 180
},
{
{0, 0, 0.706171}, 180
},
{
{0, 0, -1.912342}, 180
},
{
{-1.1, 0, -0.606171}, 0
},
{
{1.1, 0, -0.606171}, 0
},
{
{0, 0, 0.706171}, 0
},
{
{0, 0, -1.912342}, 0
},
{
{0.55, 0.55, -0.606171}, 270
},
{
{0.55, -0.55, -0.606171}, 270
},
{
{-0.55, 0.55, -0.606171}, 90
},
{
{-0.55, -0.55, -0.606171}, 90
} 
};
};


class Land_HBarrier3_DZ {
snap[] = {"Land_HBarrier3_DZ"};
points[] = {
{
{-3.3, 0, -0.606171}, 180
},
{
{3.3, 0, -0.606171}, 180
},
{
{0, 0, 0.706171}, 180
},
{
{0, 0, -1.912342}, 180
},
{
{-3.3, 0, -0.606171}, 0
},
{
{3.3, 0, -0.606171}, 0
},
{
{0, 0, 0.706171}, 0
},
{
{0, 0, -1.912342}, 0
},
{
{1.65, 1.65, -0.606171}, 270
},
{
{1.65, -1.65, -0.606171}, 270
},
{
{-1.65, 1.65, -0.606171}, 90
},
{
{-1.65, -1.65, -0.606171}, 90
} 
};
};


class Land_HBarrier5_DZ {
snap[] = {"Land_HBarrier5_DZ"};
points[] = {
{
{-5.5, 0, -0.606171}, 180
},
{
{5.5, 0, -0.606171}, 180
},
{
{0, 0, 0.706171}, 180
},
{
{0, 0, -1.912342}, 180
},
{
{-5.5, 0, -0.606171}, 0
},
{
{5.5, 0, -0.606171}, 0
},
{
{0, 0, 0.706171}, 0
},
{
{0, 0, -1.912342}, 0
},
{
{2.75, 2.75, -0.606171}, 270
},
{
{2.75, -2.75, -0.606171}, 270
},
{
{-2.75, 2.75, -0.606171}, 90
},
{
{-2.75, -2.75, -0.606171}, 90
} 
};
};


class Fort_RazorWire {
snap[] = {"Fort_RazorWire"};
points[] = {
{
{-8.075, 0, -0.753632}, 180
},
{
{8.075, 0, -0.753632}, 180
},
{
{0, 0, 0.853632}, 180
},
{
{0, 0, -2.307264}, 180
},
{
{-8.075, 0, -0.753632}, 0
},
{
{8.075, 0, -0.753632}, 0
},
{
{0, 0, 0.853632}, 0
},
{
{0, 0, -2.307264}, 0
},
{
{4.0375, 4.0375, -0.753632}, 270
},
{
{4.0375, -4.0375, -0.753632}, 270
},
{
{-4.0375, 4.0375, -0.753632}, 90
},
{
{-4.0375, -4.0375, -0.753632}, 90
} 
};
};


class WoodFloor_DZ {
snap[] = {"WoodFloor_DZ"};
points[] = {
{
{0, -4.63, 0}, 0
},
{
{0, 4.63, 0}, 0
},
{
{4.97, 0, 0}, 0
},
{
{-4.97, 0, 0}, 0
}
};
};


class CinderBase {
snap[] = {
"CinderWall_DZ",
"CinderWallDoorway_DZ",
"CinderWallDoorLocked_DZ",
"CinderWallDoor_DZ",
"CinderWallSmallDoorway_DZ",
"CinderWallDoorSmallLocked_DZ",
"CinderWallHalf_DZ",
"CinderWallDoorSmall_DZ"
};
points[] = {
{
{-5.5134, 0, 0}, 180
},
{
{5.5134, 0, 0}, 180
},
{
{0, 0, 3.38}, 180
},
{
{0, 0, -4.1}, 180
},
{
{-5.5134, 0, 0}, 0
},
{
{5.5134, 0, 0}, 0
},
{
{0, 0, 3.38}, 0
},
{
{0, 0, -4.1}, 0
},
{
{2.7567, 2.7567, 0}, 270
},
{
{2.7567, -2.7567, 0}, 270
},
{
{-2.7567, 2.7567, 0}, 90
},
{
{-2.7567, -2.7567, 0}, 90
}
};
};


class CinderWall_DZ:  CinderBase {};
class CinderWallDoorway_DZ:  CinderBase {};
class CinderWallDoorLocked_DZ:  CinderBase {};
class CinderWallDoor_DZ:  CinderBase {};
class CinderWallSmallDoorway_DZ:  CinderBase {};
class CinderWallDoorSmallLocked_DZ: CinderBase {};
class CinderWallHalf_DZ:  CinderBase {};


class WoodLargeBase {
snap[] = {
"WoodLargeWall_DZ",
"Land_DZE_LargeWoodDoor",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallThird_DZ"
};
points[] = {
{
{-4.9, 0, 0}, 180
},
{
{4.9, 0, 0}, 180
},
{
{0, 0, 2.9}, 180
},
{
{0, 0, -2.8}, 180
},
{
{-4.9, 0, 0}, 0
},
{
{4.9, 0, 0}, 0
},
{
{0, 0, 2.9}, 0
},
{
{0, 0, -2.8}, 0
},
{
{2.45, 2.45, 0}, 270
},
{
{2.45, -2.45, 0}, 270
},
{
{-2.45, 2.45, 0}, 90
},
{
{-2.45, -2.45, 0}, 90
} 
};
};
class WoodLargeWall_DZ:  WoodLargeBase {};
class Land_DZE_LargeWoodDoor:  WoodLargeBase {};
class WoodLargeWallWin_DZ:  WoodLargeBase {};
class WoodLargeWallDoor_DZ:  WoodLargeBase {};
class Land_DZE_GarageWoodDoor:  WoodLargeBase {};
class Land_DZE_GarageWoodDoorLocked:  WoodLargeBase {};
class Land_DZE_LargeWoodDoorLocked:  WoodLargeBase {};
class WoodSmallWallThird_DZ:  WoodLargeBase {};


class WoodSmallBase {
snap[] = {
"WoodSmallWallDoor_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_WoodDoor",
"Land_DZE_WoodDoorLocked"
};
points[] = {
{
{-4.58326, 0, 0}, 180
},
{
{4.58326, 0, 0}, 180
},
{
{0, 0, 2.9}, 180
},
{
{0, 0, -2.8}, 180
},
{
{-4.58326, 0, 0}, 0
},
{
{4.58326, 0, 0}, 0
},
{
{0, 0, 2.9}, 0
},
{
{0, 0, -2.8}, 0
},
{
{2.34163, 2.34163, 0}, 270
},
{
{2.34163, -2.34163, 0}, 270
},
{
{-2.34163, 2.34163, 0}, 90
},
{
{-2.34163, -2.34163, 0}, 90
} 
};
};


class WoodSmallWallDoor_DZ:  WoodSmallBase {};
class WoodSmallWall_DZ:  WoodSmallBase {};
class WoodSmallWallWin_DZ:  WoodSmallBase {};
class Land_DZE_WoodDoor:  WoodSmallBase {};
class Land_DZE_WoodDoorLocked:  WoodSmallBase {};


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

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...