housing
This commit is contained in:
parent
6d90da2841
commit
b71b47a9fb
169 changed files with 12687 additions and 2932 deletions
202
resources/[housing]/bob74_ipl/dlc_import/garage1.lua
Normal file
202
resources/[housing]/bob74_ipl/dlc_import/garage1.lua
Normal file
|
@ -0,0 +1,202 @@
|
|||
-- Garage 1: Arcadius Business Centre
|
||||
exports('GetImportCEOGarage1Object', function()
|
||||
return ImportCEOGarage1
|
||||
end)
|
||||
|
||||
ImportCEOGarage1 = {
|
||||
Part = {
|
||||
Garage1 = { -- -191.0133, -579.1428, 135.0000
|
||||
interiorId = 253441,
|
||||
ipl = "imp_dt1_02_cargarage_a"
|
||||
},
|
||||
Garage2 = { -- -117.4989, -568.1132, 135.0000
|
||||
interiorId = 253697,
|
||||
ipl = "imp_dt1_02_cargarage_b"
|
||||
},
|
||||
Garage3 = { -- -136.0780, -630.1852, 135.0000
|
||||
interiorId = 253953,
|
||||
ipl = "imp_dt1_02_cargarage_c"
|
||||
},
|
||||
ModShop = { -- -146.6166, -596.6301, 166.0000
|
||||
interiorId = 254209,
|
||||
ipl = "imp_dt1_02_modgarage"
|
||||
},
|
||||
|
||||
Load = function(part)
|
||||
EnableIpl(part.ipl, true)
|
||||
end,
|
||||
Remove = function(part)
|
||||
EnableIpl(part.ipl, false)
|
||||
end,
|
||||
Clear = function()
|
||||
EnableIpl({
|
||||
ImportCEOGarage1.Part.Garage1.ipl,
|
||||
ImportCEOGarage1.Part.Garage2.ipl,
|
||||
ImportCEOGarage1.Part.Garage3.ipl
|
||||
}, false)
|
||||
end,
|
||||
},
|
||||
Style = {
|
||||
concrete = "garage_decor_01",
|
||||
plain = "garage_decor_02",
|
||||
marble = "garage_decor_03",
|
||||
wooden = "garage_decor_04",
|
||||
|
||||
Set = function(part, style, refresh)
|
||||
ImportCEOGarage1.Style.Clear(part)
|
||||
|
||||
SetIplPropState(part.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage1.Style.concrete,
|
||||
ImportCEOGarage1.Style.plain,
|
||||
ImportCEOGarage1.Style.marble,
|
||||
ImportCEOGarage1.Style.wooden
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Numbering = {
|
||||
none = "",
|
||||
Level1 = {
|
||||
style1 = "numbering_style01_n1",
|
||||
style2 = "numbering_style02_n1",
|
||||
style3 = "numbering_style03_n1",
|
||||
style4 = "numbering_style04_n1",
|
||||
style5 = "numbering_style05_n1",
|
||||
style6 = "numbering_style06_n1",
|
||||
style7 = "numbering_style07_n1",
|
||||
style8 = "numbering_style08_n1",
|
||||
style9 = "numbering_style09_n1"
|
||||
},
|
||||
Level2 = {
|
||||
style1 = "numbering_style01_n2",
|
||||
style2 = "numbering_style02_n2",
|
||||
style3 = "numbering_style03_n2",
|
||||
style4 = "numbering_style04_n2",
|
||||
style5 = "numbering_style05_n2",
|
||||
style6 = "numbering_style06_n2",
|
||||
style7 = "numbering_style07_n2",
|
||||
style8 = "numbering_style08_n2",
|
||||
style9 = "numbering_style09_n2"
|
||||
},
|
||||
Level3 = {
|
||||
style1 = "numbering_style01_n3",
|
||||
style2 = "numbering_style02_n3",
|
||||
style3 = "numbering_style03_n3",
|
||||
style4 = "numbering_style04_n3",
|
||||
style5 = "numbering_style05_n3",
|
||||
style6 = "numbering_style06_n3",
|
||||
style7 = "numbering_style07_n3",
|
||||
style8 = "numbering_style08_n3",
|
||||
style9 = "numbering_style09_n3"
|
||||
},
|
||||
|
||||
Set = function(part, num, refresh)
|
||||
ImportCEOGarage1.Numbering.Clear(part)
|
||||
|
||||
if num ~= nil then
|
||||
SetIplPropState(part.interiorId, num, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage1.Numbering.Level1,
|
||||
ImportCEOGarage1.Numbering.Level2,
|
||||
ImportCEOGarage1.Numbering.Level3
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Lighting = {
|
||||
none = "",
|
||||
style1 = "lighting_option01",
|
||||
style2 = "lighting_option02",
|
||||
style3 = "lighting_option03",
|
||||
style4 = "lighting_option04",
|
||||
style5 = "lighting_option05",
|
||||
style6 = "lighting_option06",
|
||||
style7 = "lighting_option07",
|
||||
style8 = "lighting_option08",
|
||||
style9 = "lighting_option09",
|
||||
|
||||
Set = function(part, light, refresh)
|
||||
ImportCEOGarage1.Lighting.Clear(part)
|
||||
|
||||
if light ~= nil then
|
||||
SetIplPropState(part.interiorId, light, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage1.Lighting.style1, ImportCEOGarage1.Lighting.style2, ImportCEOGarage1.Lighting.style3,
|
||||
ImportCEOGarage1.Lighting.style4, ImportCEOGarage1.Lighting.style5, ImportCEOGarage1.Lighting.style6,
|
||||
ImportCEOGarage1.Lighting.style7, ImportCEOGarage1.Lighting.style8, ImportCEOGarage1.Lighting.style9
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
ModShop = {
|
||||
Floor = {
|
||||
default = "",
|
||||
city = "floor_vinyl_01",
|
||||
seabed = "floor_vinyl_02",
|
||||
aliens = "floor_vinyl_03",
|
||||
clouds = "floor_vinyl_04",
|
||||
money = "floor_vinyl_05",
|
||||
zebra = "floor_vinyl_06",
|
||||
blackWhite = "floor_vinyl_07",
|
||||
barcode = "floor_vinyl_08",
|
||||
paintbrushBW = "floor_vinyl_09",
|
||||
grid = "floor_vinyl_10",
|
||||
splashes = "floor_vinyl_11",
|
||||
squares = "floor_vinyl_12",
|
||||
mosaic = "floor_vinyl_13",
|
||||
paintbrushColor = "floor_vinyl_14",
|
||||
curvesColor = "floor_vinyl_15",
|
||||
marbleBrown = "floor_vinyl_16",
|
||||
marbleBlue = "floor_vinyl_17",
|
||||
marbleBW = "floor_vinyl_18",
|
||||
maze = "floor_vinyl_19",
|
||||
|
||||
Set = function(floor, refresh)
|
||||
ImportCEOGarage1.ModShop.Floor.Clear()
|
||||
|
||||
if floor ~= nil then
|
||||
SetIplPropState(ImportCEOGarage1.Part.ModShop.interiorId, floor, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(ImportCEOGarage1.Part.ModShop.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function()
|
||||
SetIplPropState(ImportCEOGarage1.Part.ModShop.interiorId, {
|
||||
ImportCEOGarage1.ModShop.Floor.city, ImportCEOGarage1.ModShop.Floor.seabed, ImportCEOGarage1.ModShop.Floor.aliens,
|
||||
ImportCEOGarage1.ModShop.Floor.clouds, ImportCEOGarage1.ModShop.Floor.money, ImportCEOGarage1.ModShop.Floor.zebra,
|
||||
ImportCEOGarage1.ModShop.Floor.blackWhite, ImportCEOGarage1.ModShop.Floor.barcode, ImportCEOGarage1.ModShop.Floor.paintbrushBW,
|
||||
ImportCEOGarage1.ModShop.Floor.grid, ImportCEOGarage1.ModShop.Floor.splashes, ImportCEOGarage1.ModShop.Floor.squares,
|
||||
ImportCEOGarage1.ModShop.Floor.mosaic, ImportCEOGarage1.ModShop.Floor.paintbrushColor, ImportCEOGarage1.ModShop.Floor.curvesColor,
|
||||
ImportCEOGarage1.ModShop.Floor.marbleBrown, ImportCEOGarage1.ModShop.Floor.marbleBlue, ImportCEOGarage1.ModShop.Floor.marbleBW,
|
||||
ImportCEOGarage1.ModShop.Floor.maze
|
||||
}, false, true)
|
||||
end
|
||||
}
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
ImportCEOGarage1.Part.Load(ImportCEOGarage1.Part.Garage1)
|
||||
ImportCEOGarage1.Style.Set(ImportCEOGarage1.Part.Garage1, ImportCEOGarage1.Style.concrete)
|
||||
ImportCEOGarage1.Numbering.Set(ImportCEOGarage1.Part.Garage1, ImportCEOGarage1.Numbering.Level1.style1)
|
||||
ImportCEOGarage1.Lighting.Set(ImportCEOGarage1.Part.Garage1, ImportCEOGarage1.Lighting.style1, true)
|
||||
|
||||
ImportCEOGarage1.Part.Load(ImportCEOGarage1.Part.ModShop)
|
||||
ImportCEOGarage1.ModShop.Floor.Set(ImportCEOGarage1.ModShop.Floor.default, true)
|
||||
end
|
||||
}
|
201
resources/[housing]/bob74_ipl/dlc_import/garage2.lua
Normal file
201
resources/[housing]/bob74_ipl/dlc_import/garage2.lua
Normal file
|
@ -0,0 +1,201 @@
|
|||
-- Garage 2: Maze Bank Building
|
||||
exports('GetImportCEOGarage2Object', function()
|
||||
return ImportCEOGarage2
|
||||
end)
|
||||
|
||||
ImportCEOGarage2 = {
|
||||
Part = {
|
||||
Garage1 = { -- -84.2193, -823.0851, 221.0000
|
||||
interiorId = 254465,
|
||||
ipl = "imp_dt1_11_cargarage_a"
|
||||
},
|
||||
Garage2 = { -- -69.8627, -824.7498, 221.0000
|
||||
interiorId = 254721,
|
||||
ipl = "imp_dt1_11_cargarage_b"
|
||||
},
|
||||
Garage3 = { -- -80.4318, -813.2536, 221.0000
|
||||
interiorId = 254977,
|
||||
ipl = "imp_dt1_11_cargarage_c"
|
||||
},
|
||||
ModShop = { -- -73.9039, -821.6204, 284.0000
|
||||
interiorId = 255233,
|
||||
ipl = "imp_dt1_11_modgarage"
|
||||
},
|
||||
|
||||
Load = function(part)
|
||||
EnableIpl(part.ipl, true)
|
||||
end,
|
||||
Remove = function(part)
|
||||
EnableIpl(part.ipl, false)
|
||||
end,
|
||||
Clear = function()
|
||||
EnableIpl({
|
||||
ImportCEOGarage2.Part.Garage1.ipl,
|
||||
ImportCEOGarage2.Part.Garage2.ipl,
|
||||
ImportCEOGarage2.Part.Garage3.ipl
|
||||
}, false)
|
||||
end,
|
||||
},
|
||||
Style = {
|
||||
concrete = "garage_decor_01",
|
||||
plain = "garage_decor_02",
|
||||
marble = "garage_decor_03",
|
||||
wooden = "garage_decor_04",
|
||||
|
||||
Set = function(part, style, refresh)
|
||||
ImportCEOGarage2.Style.Clear(part)
|
||||
|
||||
SetIplPropState(part.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage2.Style.concrete,
|
||||
ImportCEOGarage2.Style.plain,
|
||||
ImportCEOGarage2.Style.marble,
|
||||
ImportCEOGarage2.Style.wooden
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Numbering = {
|
||||
none = "",
|
||||
Level1 = {
|
||||
style1 = "numbering_style01_n1",
|
||||
style2 = "numbering_style02_n1",
|
||||
style3 = "numbering_style03_n1",
|
||||
style4 = "numbering_style04_n1",
|
||||
style5 = "numbering_style05_n1",
|
||||
style6 = "numbering_style06_n1",
|
||||
style7 = "numbering_style07_n1",
|
||||
style8 = "numbering_style08_n1",
|
||||
style9 = "numbering_style09_n1"
|
||||
},
|
||||
Level2 = {
|
||||
style1 = "numbering_style01_n2",
|
||||
style2 = "numbering_style02_n2",
|
||||
style3 = "numbering_style03_n2",
|
||||
style4 = "numbering_style04_n2",
|
||||
style5 = "numbering_style05_n2",
|
||||
style6 = "numbering_style06_n2",
|
||||
style7 = "numbering_style07_n2",
|
||||
style8 = "numbering_style08_n2",
|
||||
style9 = "numbering_style09_n2"
|
||||
},
|
||||
Level3 = {
|
||||
style1 = "numbering_style01_n3",
|
||||
style2 = "numbering_style02_n3",
|
||||
style3 = "numbering_style03_n3",
|
||||
style4 = "numbering_style04_n3",
|
||||
style5 = "numbering_style05_n3",
|
||||
style6 = "numbering_style06_n3",
|
||||
style7 = "numbering_style07_n3",
|
||||
style8 = "numbering_style08_n3",
|
||||
style9 = "numbering_style09_n3"
|
||||
},
|
||||
Set = function(part, num, refresh)
|
||||
ImportCEOGarage2.Numbering.Clear(part)
|
||||
|
||||
if num ~= nil then
|
||||
SetIplPropState(part.interiorId, num, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage2.Numbering.Level1,
|
||||
ImportCEOGarage2.Numbering.Level2,
|
||||
ImportCEOGarage2.Numbering.Level3
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Lighting = {
|
||||
none = "",
|
||||
style1 = "lighting_option01",
|
||||
style2 = "lighting_option02",
|
||||
style3 = "lighting_option03",
|
||||
style4 = "lighting_option04",
|
||||
style5 = "lighting_option05",
|
||||
style6 = "lighting_option06",
|
||||
style7 = "lighting_option07",
|
||||
style8 = "lighting_option08",
|
||||
style9 = "lighting_option09",
|
||||
|
||||
Set = function(part, light, refresh)
|
||||
ImportCEOGarage2.Lighting.Clear(part)
|
||||
|
||||
if light ~= nil then
|
||||
SetIplPropState(part.interiorId, light, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage2.Lighting.style1, ImportCEOGarage2.Lighting.style2, ImportCEOGarage2.Lighting.style3,
|
||||
ImportCEOGarage2.Lighting.style4, ImportCEOGarage2.Lighting.style5, ImportCEOGarage2.Lighting.style6,
|
||||
ImportCEOGarage2.Lighting.style7, ImportCEOGarage2.Lighting.style8, ImportCEOGarage2.Lighting.style9
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
ModShop = {
|
||||
Floor = {
|
||||
default = "",
|
||||
city = "floor_vinyl_01",
|
||||
seabed = "floor_vinyl_02",
|
||||
aliens = "floor_vinyl_03",
|
||||
clouds = "floor_vinyl_04",
|
||||
money = "floor_vinyl_05",
|
||||
zebra = "floor_vinyl_06",
|
||||
blackWhite = "floor_vinyl_07",
|
||||
barcode = "floor_vinyl_08",
|
||||
paintbrushBW = "floor_vinyl_09",
|
||||
grid = "floor_vinyl_10",
|
||||
splashes = "floor_vinyl_11",
|
||||
squares = "floor_vinyl_12",
|
||||
mosaic = "floor_vinyl_13",
|
||||
paintbrushColor = "floor_vinyl_14",
|
||||
curvesColor = "floor_vinyl_15",
|
||||
marbleBrown = "floor_vinyl_16",
|
||||
marbleBlue = "floor_vinyl_17",
|
||||
marbleBW = "floor_vinyl_18",
|
||||
maze = "floor_vinyl_19",
|
||||
|
||||
Set = function(floor, refresh)
|
||||
ImportCEOGarage2.ModShop.Floor.Clear()
|
||||
|
||||
if floor ~= nil then
|
||||
SetIplPropState(ImportCEOGarage2.Part.ModShop.interiorId, floor, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(ImportCEOGarage2.Part.ModShop.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function()
|
||||
SetIplPropState(ImportCEOGarage2.Part.ModShop.interiorId, {
|
||||
ImportCEOGarage2.ModShop.Floor.city, ImportCEOGarage2.ModShop.Floor.seabed, ImportCEOGarage2.ModShop.Floor.aliens,
|
||||
ImportCEOGarage2.ModShop.Floor.clouds, ImportCEOGarage2.ModShop.Floor.money, ImportCEOGarage2.ModShop.Floor.zebra,
|
||||
ImportCEOGarage2.ModShop.Floor.blackWhite, ImportCEOGarage2.ModShop.Floor.barcode, ImportCEOGarage2.ModShop.Floor.paintbrushBW,
|
||||
ImportCEOGarage2.ModShop.Floor.grid, ImportCEOGarage2.ModShop.Floor.splashes, ImportCEOGarage2.ModShop.Floor.squares,
|
||||
ImportCEOGarage2.ModShop.Floor.mosaic, ImportCEOGarage2.ModShop.Floor.paintbrushColor, ImportCEOGarage2.ModShop.Floor.curvesColor,
|
||||
ImportCEOGarage2.ModShop.Floor.marbleBrown, ImportCEOGarage2.ModShop.Floor.marbleBlue, ImportCEOGarage2.ModShop.Floor.marbleBW,
|
||||
ImportCEOGarage2.ModShop.Floor.maze
|
||||
}, false, true)
|
||||
end
|
||||
}
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
ImportCEOGarage2.Part.Load(ImportCEOGarage2.Part.Garage1)
|
||||
ImportCEOGarage2.Style.Set(ImportCEOGarage2.Part.Garage1, ImportCEOGarage2.Style.concrete, false)
|
||||
ImportCEOGarage2.Numbering.Set(ImportCEOGarage2.Part.Garage1, ImportCEOGarage2.Numbering.Level1.style1, false)
|
||||
ImportCEOGarage2.Lighting.Set(ImportCEOGarage2.Part.Garage1, ImportCEOGarage2.Lighting.style1, true)
|
||||
|
||||
ImportCEOGarage2.Part.Load(ImportCEOGarage2.Part.ModShop)
|
||||
ImportCEOGarage2.ModShop.Floor.Set(ImportCEOGarage2.ModShop.Floor.default, true)
|
||||
end
|
||||
}
|
201
resources/[housing]/bob74_ipl/dlc_import/garage3.lua
Normal file
201
resources/[housing]/bob74_ipl/dlc_import/garage3.lua
Normal file
|
@ -0,0 +1,201 @@
|
|||
-- Garage 3: Lom Bank
|
||||
exports('GetImportCEOGarage3Object', function()
|
||||
return ImportCEOGarage3
|
||||
end)
|
||||
|
||||
ImportCEOGarage3 = {
|
||||
Part = {
|
||||
Garage1 = { -- -1581.1120, -567.2450, 85.5000
|
||||
interiorId = 255489,
|
||||
ipl = "imp_sm_13_cargarage_a"
|
||||
},
|
||||
Garage2 = { -- -1568.7390, -562.0455, 85.5000
|
||||
interiorId = 255745,
|
||||
ipl = "imp_sm_13_cargarage_b"
|
||||
},
|
||||
Garage3 = { -- -1563.5570, -574.4314, 85.5000
|
||||
interiorId = 256001,
|
||||
ipl = "imp_sm_13_cargarage_c"
|
||||
},
|
||||
ModShop = { -- -1578.0230, -576.4251, 104.2000
|
||||
interiorId = 256257,
|
||||
ipl = "imp_sm_13_modgarage"
|
||||
},
|
||||
|
||||
Load = function(part)
|
||||
EnableIpl(part.ipl, true)
|
||||
end,
|
||||
Remove = function(part)
|
||||
EnableIpl(part.ipl, false)
|
||||
end,
|
||||
Clear = function()
|
||||
EnableIpl({
|
||||
ImportCEOGarage3.Part.Garage1.ipl,
|
||||
ImportCEOGarage3.Part.Garage2.ipl,
|
||||
ImportCEOGarage3.Part.Garage3.ipl
|
||||
}, false)
|
||||
end,
|
||||
},
|
||||
Style = {
|
||||
concrete = "garage_decor_01",
|
||||
plain = "garage_decor_02",
|
||||
marble = "garage_decor_03",
|
||||
wooden = "garage_decor_04",
|
||||
|
||||
Set = function(part, style, refresh)
|
||||
ImportCEOGarage3.Style.Clear(part)
|
||||
|
||||
SetIplPropState(part.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage3.Style.concrete,
|
||||
ImportCEOGarage3.Style.plain,
|
||||
ImportCEOGarage3.Style.marble,
|
||||
ImportCEOGarage3.Style.wooden
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Numbering = {
|
||||
none = "",
|
||||
Level1 = {
|
||||
style1 = "numbering_style01_n1",
|
||||
style2 = "numbering_style02_n1",
|
||||
style3 = "numbering_style03_n1",
|
||||
style4 = "numbering_style04_n1",
|
||||
style5 = "numbering_style05_n1",
|
||||
style6 = "numbering_style06_n1",
|
||||
style7 = "numbering_style07_n1",
|
||||
style8 = "numbering_style08_n1",
|
||||
style9 = "numbering_style09_n1"
|
||||
},
|
||||
Level2 = {
|
||||
style1 = "numbering_style01_n2",
|
||||
style2 = "numbering_style02_n2",
|
||||
style3 = "numbering_style03_n2",
|
||||
style4 = "numbering_style04_n2",
|
||||
style5 = "numbering_style05_n2",
|
||||
style6 = "numbering_style06_n2",
|
||||
style7 = "numbering_style07_n2",
|
||||
style8 = "numbering_style08_n2",
|
||||
style9 = "numbering_style09_n2"
|
||||
},
|
||||
Level3 = {
|
||||
style1 = "numbering_style01_n3",
|
||||
style2 = "numbering_style02_n3",
|
||||
style3 = "numbering_style03_n3",
|
||||
style4 = "numbering_style04_n3",
|
||||
style5 = "numbering_style05_n3",
|
||||
style6 = "numbering_style06_n3",
|
||||
style7 = "numbering_style07_n3",
|
||||
style8 = "numbering_style08_n3",
|
||||
style9 = "numbering_style09_n3"
|
||||
},
|
||||
Set = function(part, num, refresh)
|
||||
ImportCEOGarage3.Numbering.Clear(part)
|
||||
|
||||
if num ~= nil then
|
||||
SetIplPropState(part.interiorId, num, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage3.Numbering.Level1,
|
||||
ImportCEOGarage3.Numbering.Level2,
|
||||
ImportCEOGarage3.Numbering.Level3
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Lighting = {
|
||||
none = "",
|
||||
style1 = "lighting_option01",
|
||||
style2 = "lighting_option02",
|
||||
style3 = "lighting_option03",
|
||||
style4 = "lighting_option04",
|
||||
style5 = "lighting_option05",
|
||||
style6 = "lighting_option06",
|
||||
style7 = "lighting_option07",
|
||||
style8 = "lighting_option08",
|
||||
style9 = "lighting_option09",
|
||||
|
||||
Set = function(part, light, refresh)
|
||||
ImportCEOGarage3.Lighting.Clear(part)
|
||||
|
||||
if light ~= nil then
|
||||
SetIplPropState(part.interiorId, light, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage3.Lighting.style1, ImportCEOGarage3.Lighting.style2, ImportCEOGarage3.Lighting.style3,
|
||||
ImportCEOGarage3.Lighting.style4, ImportCEOGarage3.Lighting.style5, ImportCEOGarage3.Lighting.style6,
|
||||
ImportCEOGarage3.Lighting.style7, ImportCEOGarage3.Lighting.style8, ImportCEOGarage3.Lighting.style9
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
ModShop = {
|
||||
Floor = {
|
||||
default = "",
|
||||
city = "floor_vinyl_01",
|
||||
seabed = "floor_vinyl_02",
|
||||
aliens = "floor_vinyl_03",
|
||||
clouds = "floor_vinyl_04",
|
||||
money = "floor_vinyl_05",
|
||||
zebra = "floor_vinyl_06",
|
||||
blackWhite = "floor_vinyl_07",
|
||||
barcode = "floor_vinyl_08",
|
||||
paintbrushBW = "floor_vinyl_09",
|
||||
grid = "floor_vinyl_10",
|
||||
splashes = "floor_vinyl_11",
|
||||
squares = "floor_vinyl_12",
|
||||
mosaic = "floor_vinyl_13",
|
||||
paintbrushColor = "floor_vinyl_14",
|
||||
curvesColor = "floor_vinyl_15",
|
||||
marbleBrown = "floor_vinyl_16",
|
||||
marbleBlue = "floor_vinyl_17",
|
||||
marbleBW = "floor_vinyl_18",
|
||||
maze = "floor_vinyl_19",
|
||||
|
||||
Set = function(floor, refresh)
|
||||
ImportCEOGarage3.ModShop.Floor.Clear()
|
||||
|
||||
if floor ~= nil then
|
||||
SetIplPropState(ImportCEOGarage3.Part.ModShop.interiorId, floor, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(ImportCEOGarage3.Part.ModShop.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function()
|
||||
SetIplPropState(ImportCEOGarage3.Part.ModShop.interiorId, {
|
||||
ImportCEOGarage3.ModShop.Floor.city, ImportCEOGarage3.ModShop.Floor.seabed, ImportCEOGarage3.ModShop.Floor.aliens,
|
||||
ImportCEOGarage3.ModShop.Floor.clouds, ImportCEOGarage3.ModShop.Floor.money, ImportCEOGarage3.ModShop.Floor.zebra,
|
||||
ImportCEOGarage3.ModShop.Floor.blackWhite, ImportCEOGarage3.ModShop.Floor.barcode, ImportCEOGarage3.ModShop.Floor.paintbrushBW,
|
||||
ImportCEOGarage3.ModShop.Floor.grid, ImportCEOGarage3.ModShop.Floor.splashes, ImportCEOGarage3.ModShop.Floor.squares,
|
||||
ImportCEOGarage3.ModShop.Floor.mosaic, ImportCEOGarage3.ModShop.Floor.paintbrushColor, ImportCEOGarage3.ModShop.Floor.curvesColor,
|
||||
ImportCEOGarage3.ModShop.Floor.marbleBrown, ImportCEOGarage3.ModShop.Floor.marbleBlue, ImportCEOGarage3.ModShop.Floor.marbleBW,
|
||||
ImportCEOGarage3.ModShop.Floor.maze
|
||||
}, false, true)
|
||||
end
|
||||
}
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
ImportCEOGarage3.Part.Load(ImportCEOGarage3.Part.Garage1)
|
||||
ImportCEOGarage3.Style.Set(ImportCEOGarage3.Part.Garage1, ImportCEOGarage3.Style.concrete, false)
|
||||
ImportCEOGarage3.Numbering.Set(ImportCEOGarage3.Part.Garage1, ImportCEOGarage3.Numbering.Level1.style1, false)
|
||||
ImportCEOGarage3.Lighting.Set(ImportCEOGarage3.Part.Garage1, ImportCEOGarage3.Lighting.style1, true)
|
||||
|
||||
-- No mod shop since it overlapses CEO office
|
||||
ImportCEOGarage3.Part.Remove(ImportCEOGarage3.Part.ModShop)
|
||||
end
|
||||
}
|
204
resources/[housing]/bob74_ipl/dlc_import/garage4.lua
Normal file
204
resources/[housing]/bob74_ipl/dlc_import/garage4.lua
Normal file
|
@ -0,0 +1,204 @@
|
|||
-- Garage 4: Maze Bank West
|
||||
-- Be careful, ImportCEOGarage4.Part.Garage1 and ImportCEOGarage4.Part.Garage3 overlaps with FinanceOffice4
|
||||
exports('GetImportCEOGarage4Object', function()
|
||||
return ImportCEOGarage4
|
||||
end)
|
||||
|
||||
ImportCEOGarage4 = {
|
||||
Part = {
|
||||
Garage1 = { -- -1388.8400, -478.7402, 56.1000
|
||||
interiorId = 256513,
|
||||
ipl = "imp_sm_15_cargarage_a"
|
||||
},
|
||||
Garage2 = { -- -1388.8600, -478.7574, 48.1000
|
||||
interiorId = 256769,
|
||||
ipl = "imp_sm_15_cargarage_b"
|
||||
},
|
||||
Garage3 = { -- -1374.6820, -474.3586, 56.1000
|
||||
interiorId = 257025,
|
||||
ipl = "imp_sm_15_cargarage_c"
|
||||
},
|
||||
ModShop = { -- -1391.2450, -473.9638, 77.2000
|
||||
interiorId = 257281,
|
||||
ipl = "imp_sm_15_modgarage"
|
||||
},
|
||||
|
||||
Load = function(part)
|
||||
EnableIpl(part.ipl, true)
|
||||
end,
|
||||
Remove = function(part)
|
||||
EnableIpl(part.ipl, false)
|
||||
end,
|
||||
Clear = function()
|
||||
EnableIpl({
|
||||
ImportCEOGarage4.Part.Garage1.ipl,
|
||||
ImportCEOGarage4.Part.Garage2.ipl,
|
||||
ImportCEOGarage4.Part.Garage3.ipl
|
||||
}, false)
|
||||
end
|
||||
},
|
||||
Style = {
|
||||
concrete = "garage_decor_01",
|
||||
plain = "garage_decor_02",
|
||||
marble = "garage_decor_03",
|
||||
wooden = "garage_decor_04",
|
||||
|
||||
Set = function(part, style, refresh)
|
||||
ImportCEOGarage4.Style.Clear(part)
|
||||
|
||||
SetIplPropState(part.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage4.Style.concrete,
|
||||
ImportCEOGarage4.Style.plain,
|
||||
ImportCEOGarage4.Style.marble,
|
||||
ImportCEOGarage4.Style.wooden
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Numbering = {
|
||||
none = "",
|
||||
Level1 = {
|
||||
style1 = "numbering_style01_n1",
|
||||
style2 = "numbering_style02_n1",
|
||||
style3 = "numbering_style03_n1",
|
||||
style4 = "numbering_style04_n1",
|
||||
style5 = "numbering_style05_n1",
|
||||
style6 = "numbering_style06_n1",
|
||||
style7 = "numbering_style07_n1",
|
||||
style8 = "numbering_style08_n1",
|
||||
style9 = "numbering_style09_n1"
|
||||
},
|
||||
Level2 = {
|
||||
style1 = "numbering_style01_n2",
|
||||
style2 = "numbering_style02_n2",
|
||||
style3 = "numbering_style03_n2",
|
||||
style4 = "numbering_style04_n2",
|
||||
style5 = "numbering_style05_n2",
|
||||
style6 = "numbering_style06_n2",
|
||||
style7 = "numbering_style07_n2",
|
||||
style8 = "numbering_style08_n2",
|
||||
style9 = "numbering_style09_n2"
|
||||
},
|
||||
Level3 = {
|
||||
style1 = "numbering_style01_n3",
|
||||
style2 = "numbering_style02_n3",
|
||||
style3 = "numbering_style03_n3",
|
||||
style4 = "numbering_style04_n3",
|
||||
style5 = "numbering_style05_n3",
|
||||
style6 = "numbering_style06_n3",
|
||||
style7 = "numbering_style07_n3",
|
||||
style8 = "numbering_style08_n3",
|
||||
style9 = "numbering_style09_n3"
|
||||
},
|
||||
|
||||
Set = function(part, num, refresh)
|
||||
ImportCEOGarage4.Numbering.Clear(part)
|
||||
|
||||
if num ~= nil then
|
||||
SetIplPropState(part.interiorId, num, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage4.Numbering.Level1,
|
||||
ImportCEOGarage4.Numbering.Level2,
|
||||
ImportCEOGarage4.Numbering.Level3
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
Lighting = {
|
||||
none = "",
|
||||
style1 = "lighting_option01",
|
||||
style2 = "lighting_option02",
|
||||
style3 = "lighting_option03",
|
||||
style4 = "lighting_option04",
|
||||
style5 = "lighting_option05",
|
||||
style6 = "lighting_option06",
|
||||
style7 = "lighting_option07",
|
||||
style8 = "lighting_option08",
|
||||
style9 = "lighting_option09",
|
||||
|
||||
Set = function(part, light, refresh)
|
||||
ImportCEOGarage4.Lighting.Clear(part)
|
||||
|
||||
if light ~= nil then
|
||||
SetIplPropState(part.interiorId, light, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(part.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(part)
|
||||
SetIplPropState(part.interiorId, {
|
||||
ImportCEOGarage4.Lighting.style1, ImportCEOGarage4.Lighting.style2, ImportCEOGarage4.Lighting.style3,
|
||||
ImportCEOGarage4.Lighting.style4, ImportCEOGarage4.Lighting.style5, ImportCEOGarage4.Lighting.style6,
|
||||
ImportCEOGarage4.Lighting.style7, ImportCEOGarage4.Lighting.style8, ImportCEOGarage4.Lighting.style9
|
||||
}, false, true)
|
||||
end
|
||||
},
|
||||
ModShop = {
|
||||
Floor = {
|
||||
default = "",
|
||||
city = "floor_vinyl_01",
|
||||
seabed = "floor_vinyl_02",
|
||||
aliens = "floor_vinyl_03",
|
||||
clouds = "floor_vinyl_04",
|
||||
money = "floor_vinyl_05",
|
||||
zebra = "floor_vinyl_06",
|
||||
blackWhite = "floor_vinyl_07",
|
||||
barcode = "floor_vinyl_08",
|
||||
paintbrushBW = "floor_vinyl_09",
|
||||
grid = "floor_vinyl_10",
|
||||
splashes = "floor_vinyl_11",
|
||||
squares = "floor_vinyl_12",
|
||||
mosaic = "floor_vinyl_13",
|
||||
paintbrushColor = "floor_vinyl_14",
|
||||
curvesColor = "floor_vinyl_15",
|
||||
marbleBrown = "floor_vinyl_16",
|
||||
marbleBlue = "floor_vinyl_17",
|
||||
marbleBW = "floor_vinyl_18",
|
||||
maze = "floor_vinyl_19",
|
||||
|
||||
Set = function(floor, refresh)
|
||||
ImportCEOGarage4.ModShop.Floor.Clear()
|
||||
|
||||
if floor ~= nil then
|
||||
SetIplPropState(ImportCEOGarage4.Part.ModShop.interiorId, floor, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(ImportCEOGarage4.Part.ModShop.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function()
|
||||
SetIplPropState(ImportCEOGarage4.Part.ModShop.interiorId, {
|
||||
ImportCEOGarage4.ModShop.Floor.city, ImportCEOGarage4.ModShop.Floor.seabed, ImportCEOGarage4.ModShop.Floor.aliens,
|
||||
ImportCEOGarage4.ModShop.Floor.clouds, ImportCEOGarage4.ModShop.Floor.money, ImportCEOGarage4.ModShop.Floor.zebra,
|
||||
ImportCEOGarage4.ModShop.Floor.blackWhite, ImportCEOGarage4.ModShop.Floor.barcode, ImportCEOGarage4.ModShop.Floor.paintbrushBW,
|
||||
ImportCEOGarage4.ModShop.Floor.grid, ImportCEOGarage4.ModShop.Floor.splashes, ImportCEOGarage4.ModShop.Floor.squares,
|
||||
ImportCEOGarage4.ModShop.Floor.mosaic, ImportCEOGarage4.ModShop.Floor.paintbrushColor, ImportCEOGarage4.ModShop.Floor.curvesColor,
|
||||
ImportCEOGarage4.ModShop.Floor.marbleBrown, ImportCEOGarage4.ModShop.Floor.marbleBlue, ImportCEOGarage4.ModShop.Floor.marbleBW,
|
||||
ImportCEOGarage4.ModShop.Floor.maze
|
||||
}, false, true)
|
||||
end
|
||||
}
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
ImportCEOGarage4.Part.Load(ImportCEOGarage4.Part.Garage2)
|
||||
|
||||
ImportCEOGarage4.Style.Set(ImportCEOGarage4.Part.Garage2, ImportCEOGarage4.Style.concrete, false)
|
||||
ImportCEOGarage4.Numbering.Set(ImportCEOGarage4.Part.Garage2, ImportCEOGarage4.Numbering.Level1.style1, false)
|
||||
ImportCEOGarage4.Lighting.Set(ImportCEOGarage4.Part.Garage2, ImportCEOGarage4.Lighting.style1, true)
|
||||
|
||||
ImportCEOGarage4.Part.Load(ImportCEOGarage4.Part.ModShop)
|
||||
ImportCEOGarage4.ModShop.Floor.Set(ImportCEOGarage4.ModShop.Floor.default, true)
|
||||
end
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
-- Vehicle warehouse
|
||||
-- Upper: 994.5925, -3002.594, -39.64699
|
||||
-- Lower: 969.5376, -3000.411, -48.64689
|
||||
exports('GetImportVehicleWarehouseObject', function()
|
||||
return ImportVehicleWarehouse
|
||||
end)
|
||||
|
||||
ImportVehicleWarehouse = {
|
||||
Upper = {
|
||||
interiorId = 252673,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "imp_impexp_interior_placement_interior_1_impexp_intwaremed_milo_",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(ImportVehicleWarehouse.Upper.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(ImportVehicleWarehouse.Upper.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Style = {
|
||||
basic = "basic_style_set",
|
||||
branded = "branded_style_set",
|
||||
urban = "urban_style_set",
|
||||
|
||||
Set = function(style, refresh)
|
||||
ImportVehicleWarehouse.Upper.Style.Clear(false)
|
||||
|
||||
SetIplPropState(ImportVehicleWarehouse.Upper.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(ImportVehicleWarehouse.Upper.interiorId, {
|
||||
ImportVehicleWarehouse.Upper.Style.basic,
|
||||
ImportVehicleWarehouse.Upper.Style.branded,
|
||||
ImportVehicleWarehouse.Upper.Style.urban
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Details = {
|
||||
floorHatch = "car_floor_hatch",
|
||||
doorBlocker = "door_blocker", -- Invisible wall
|
||||
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(ImportVehicleWarehouse.Upper.interiorId, details, state, refresh)
|
||||
end
|
||||
}
|
||||
},
|
||||
Lower = {
|
||||
interiorId = 253185,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "imp_impexp_interior_placement_interior_3_impexp_int_02_milo_",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(ImportVehicleWarehouse.Lower.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(ImportVehicleWarehouse.Lower.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Details = {
|
||||
Pumps = {
|
||||
pump1 = "pump_01",
|
||||
pump2 = "pump_02",
|
||||
pump3 = "pump_03",
|
||||
pump4 = "pump_04",
|
||||
pump5 = "pump_05",
|
||||
pump6 = "pump_06",
|
||||
pump7 = "pump_07",
|
||||
pump8 = "pump_08"
|
||||
},
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(ImportVehicleWarehouse.Lower.interiorId, details, state, refresh)
|
||||
end
|
||||
}
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
ImportVehicleWarehouse.Upper.Ipl.Interior.Load()
|
||||
ImportVehicleWarehouse.Upper.Style.Set(ImportVehicleWarehouse.Upper.Style.branded)
|
||||
ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.floorHatch, true)
|
||||
ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.doorBlocker, false)
|
||||
|
||||
RefreshInterior(ImportVehicleWarehouse.Upper.interiorId)
|
||||
|
||||
ImportVehicleWarehouse.Lower.Ipl.Interior.Load()
|
||||
ImportVehicleWarehouse.Lower.Details.Enable(ImportVehicleWarehouse.Lower.Details.Pumps, true)
|
||||
|
||||
RefreshInterior(ImportVehicleWarehouse.Lower.interiorId)
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue