Xeonyx Posted May 19, 2015 Share Posted May 19, 2015 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? Link to comment Share on other sites More sharing options...
Brybry Posted May 19, 2015 Share Posted May 19, 2015 I don't really know much about making maps but couldn't you use a new unused roomdef for those rooms and nothing would spawn in them? Link to comment Share on other sites More sharing options...
Xeonyx Posted May 19, 2015 Author Share Posted May 19, 2015 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 Link to comment Share on other sites More sharing options...
Brybry Posted May 19, 2015 Share Posted May 19, 2015 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? Link to comment Share on other sites More sharing options...
Pridelost Posted May 20, 2015 Share Posted May 20, 2015 Maybe you could request them to add a null room definition that does what your looking for? I've tried finding a way but yeah the "all" definition makes it impossible. Link to comment Share on other sites More sharing options...
Brybry Posted May 20, 2015 Share Posted May 20, 2015 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, }, },}, EnigmaGrey 1 Link to comment Share on other sites More sharing options...
Pridelost Posted May 20, 2015 Share Posted May 20, 2015 Not empty enough! Maybe the occasional dead mouse or rat. Or so much dust its an item. I'll check out that definition, thanks for finding it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now