NobodyCares69 Posted March 5, 2017 Share Posted March 5, 2017 (edited) I was messing around, and I managed to create a (somewhat) custom turf (and by custom I mean it's already in the game, however it's not possible to move it by default). And I was trying to make that turf "manmade" so puddles can't spawn on it if it is in Shipwrecked. And that is a problem, I searched in the game directory for phrases like puddle, flood or turf and there is no sign of anything. Basically the only thing I found is this small part of code in DLC0002/prefabs/shipwrecked.lua: local groundtiles = require "worldtiledefs" [...] local flooding = inst.entity:AddFlooding() for i, data in ipairs( groundtiles.flooding ) do local tile_type, props = unpack( data ) local handle = MapLayerManager:CreateRenderLayer( tile_type, resolvefilepath(GroundAtlas( props.name )), resolvefilepath(GroundImage( props.name )), resolvefilepath(props.noise_texture ) ) flooding:AddRenderLayer( handle ) end Since it was referencing the worldtiledefs.lua file, I checked in there too. However the only thing that was present in there was 2 lines of code that reference beach and flood tiles. So after searching for a few hours, I found nothing... Does anyone know how to prevent puddles from spawning on certain types of turf? Edited March 5, 2017 by NobodyCares69 Link to comment https://forums.kleientertainment.com/forums/topic/75428-prevent-puddle-spawning-on-custom-turf/ 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