housing
This commit is contained in:
parent
6d90da2841
commit
b71b47a9fb
169 changed files with 12687 additions and 2932 deletions
73
resources/[housing]/bob74_ipl/gtav/simeon.lua
Normal file
73
resources/[housing]/bob74_ipl/gtav/simeon.lua
Normal file
|
@ -0,0 +1,73 @@
|
|||
exports('GetSimeonObject', function()
|
||||
return Simeon
|
||||
end)
|
||||
|
||||
Simeon = {
|
||||
interiorId = 7170,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = {
|
||||
"shr_int"
|
||||
},
|
||||
|
||||
Load = function()
|
||||
EnableIpl(Simeon.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(Simeon.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Style = {
|
||||
normal = "csr_beforeMission",
|
||||
noGlass = "csr_inMission",
|
||||
destroyed = "csr_afterMissionA",
|
||||
fixed = "csr_afterMissionB",
|
||||
|
||||
Set = function(style, refresh)
|
||||
Simeon.Style.Clear(false)
|
||||
|
||||
SetIplPropState(Simeon.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(Simeon.interiorId, {
|
||||
Simeon.Style.normal,
|
||||
Simeon.Style.noGlass,
|
||||
Simeon.Style.destroyed,
|
||||
Simeon.Style.fixed
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Shutter = {
|
||||
none = "",
|
||||
opened = "shutter_open",
|
||||
closed = "shutter_closed",
|
||||
|
||||
Set = function(shutter, refresh)
|
||||
Simeon.Shutter.Clear(false)
|
||||
|
||||
if shutter ~= "" then
|
||||
SetIplPropState(Simeon.interiorId, shutter, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(Simeon.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(Simeon.interiorId, {
|
||||
Simeon.Shutter.opened,
|
||||
Simeon.Shutter.closed
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
Simeon.Ipl.Interior.Load()
|
||||
Simeon.Style.Set(Simeon.Style.normal)
|
||||
Simeon.Shutter.Set(Simeon.Shutter.opened)
|
||||
|
||||
RefreshInterior(Simeon.interiorId)
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue