Update snappoints.hpp

Update snappoints for the new storage sheds models.
Add Metal/wood pillar and tall safe to snapping.
This commit is contained in:
AirwavesMan
2021-01-28 10:56:46 +01:00
parent 70d65c5221
commit 8e8727dd63

View File

@@ -105,7 +105,9 @@ class SnapBuilding {
"Door_DZ", "Door_DZ",
"DoorLocked_DZ", "DoorLocked_DZ",
"WoodFloor4x_DZ", "WoodFloor4x_DZ",
"MetalFloor4x_DZ" "MetalFloor4x_DZ",
"MetalPillar_DZ",
"WoodPillar_DZ"
}; };
radius = 5; radius = 5;
}; };
@@ -684,6 +686,28 @@ class SnapBuilding {
class MetalFloor4x_Preview_DZ: MetalFloor4x_DZ {}; class MetalFloor4x_Preview_DZ: MetalFloor4x_DZ {};
class WoodPillar_DZ: FloorsWallsStairs {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-0.2,0,1.5,$STR_EPOCH_ACTION_SNAP_LEFT},
{0.2,0,1.5,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0,0,3.05,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class Wood_Pillar_Preview_DZ: WoodPillar_DZ {};
class MetalPillar_DZ: FloorsWallsStairs {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{-0.19,0,1.685,$STR_EPOCH_ACTION_SNAP_LEFT},
{0.19,0,1.685,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0,0,3.05,$STR_EPOCH_ACTION_SNAP_TOP}
};
};
class MetalPillar_Preview_DZ: MetalPillar_DZ {};
//Non essential Items that only snap to themselves, do whitelist inheritance if you want these to snap //Non essential Items that only snap to themselves, do whitelist inheritance if you want these to snap
class WoodCrate_DZ { class WoodCrate_DZ {
snapTo[] = { snapTo[] = {
@@ -739,10 +763,10 @@ class SnapBuilding {
radius = 10; radius = 10;
points[] = { points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{0,-1.1,0,$STR_EPOCH_ACTION_SNAP_BACK}, {0,-1.35,1.5,$STR_EPOCH_ACTION_SNAP_BACK},
{0,1.2,0,$STR_EPOCH_ACTION_SNAP_FRONT}, {0,1.2,1.5,$STR_EPOCH_ACTION_SNAP_FRONT},
{-1.7,0,0,$STR_EPOCH_ACTION_SNAP_LEFT}, {-2,0,1.5,$STR_EPOCH_ACTION_SNAP_LEFT},
{1.7,0,0,$STR_EPOCH_ACTION_SNAP_RIGHT}, {1.57,0,1.5,$STR_EPOCH_ACTION_SNAP_RIGHT},
{0,0,2,$STR_EPOCH_ACTION_SNAP_TOP} {0,0,2,$STR_EPOCH_ACTION_SNAP_TOP}
}; };
}; };
@@ -834,13 +858,15 @@ class SnapBuilding {
"VaultStorage2", "VaultStorage2",
"VaultStorage2Locked", "VaultStorage2Locked",
"VaultStorageBroken", "VaultStorageBroken",
"VaultStorageBroken2" "VaultStorageBroken2",
"TallSafe",
"TallSafeLocked",
"TallSafeBroken"
}; };
radius = 5; radius = 5;
points[] = { points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT}, {0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{0,0.284,0.615,$STR_EPOCH_ACTION_SNAP_BACK}, {0,0.284,0.615,$STR_EPOCH_ACTION_SNAP_FRONT},
{0,0,1.23,$STR_EPOCH_ACTION_SNAP_TOP}, {0,0,1.23,$STR_EPOCH_ACTION_SNAP_TOP},
{-0.362,0,0.615,$STR_EPOCH_ACTION_SNAP_LEFT}, {-0.362,0,0.615,$STR_EPOCH_ACTION_SNAP_LEFT},
{0.362,0,0.615,$STR_EPOCH_ACTION_SNAP_RIGHT} {0.362,0,0.615,$STR_EPOCH_ACTION_SNAP_RIGHT}
@@ -851,5 +877,18 @@ class SnapBuilding {
class VaultStorage2: VaultStorageLocked {}; class VaultStorage2: VaultStorageLocked {};
class VaultStorage2Locked: VaultStorageLocked {}; class VaultStorage2Locked: VaultStorageLocked {};
class VaultStorageBroken: VaultStorageLocked {}; class VaultStorageBroken: VaultStorageLocked {};
class VaultStorageBroken2: VaultStorageLocked {}; class VaultStorageBroken2: VaultStorageLocked {};
class TallSafeLocked: VaultStorageLocked {
points[] = {
{0,0,0,$STR_EPOCH_ACTION_SNAP_PIVOT},
{0,0.35,0.615,$STR_EPOCH_ACTION_SNAP_FRONT},
{0,0,2,$STR_EPOCH_ACTION_SNAP_TOP},
{-0.42,0,0.615,$STR_EPOCH_ACTION_SNAP_LEFT},
{0.42,0,0.615,$STR_EPOCH_ACTION_SNAP_RIGHT}
};
};
class TallSafe: TallSafeLocked {};
class TallSafeBroken: TallSafeLocked {};
}; };