Jump to content
Sign in to follow this  
Xeonyx

Empty Buildings / Shelves

Recommended Posts

So in general, I really need to know how to set rooms, or specific shelves, cupboards, etc, to be empty; say for example, a grocery store that's been closed down, but still has the shelves inside (you might know the store I'm talking about from my New Denver map).  Is there a way to do that? and if so, how?

Share this post


Link to post
Share on other sites

nay, they'd still generate items even with an unused roomdef, kind of like if you put a dresser in a mechanic shop, the dresser would still spawn clothing and that like.  I saw a post on how the roomdef, "furniturestore" has no lootable items, but any shelves, or cupboards that can contain items would have crap still in them

Share this post


Link to post
Share on other sites

You could maybe use OnFillContainer and empty out containers in that custom roomdef but that might not be a good solution.

 

I see now that RingoD said:

The "All" definition is used whenever the game comes across any container that is either not in a defined room or in an unrecognised defined room.

 

So I assume you'd make a 'new' roomdef and then add that roomdef to suburbsdistribution.lua for 'all' containers with an empty table?

Share this post


Link to post
Share on other sites

media/lua/server/Items/SuburbsDistributions.lua says

-- used to not spawn items inside item container (bags) in this roomNoContainerFillRooms = { laundry = {}, mechanic = {}, clothesstore = {} };

but that looks like it's only to not spawn items inside spawned bags in containers.

 

So what you really want is an entry added (hopefully by default, feature request!) that's like:

EmptyRoom = { all = { roles = 0, items = {} } },

 

There's an 'empty' def that's not quite empty but close enough maybe?

empty = {    all ={        rolls = 1,        items = {            "Base.Sheet", 0.5,            "Base.Magazine", 0.3,            "Base.Newspaper", 0.3,            "Base.Pencil", 0.3,            "Base.Pen", 0.3,        },    },},

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...