Page 1 of 1
Make Floating Structures Obey Maxslope on Land?
Posted: 11 Jun 2008, 20:23
by Evil4Zerggin
As far as I can tell, giving a structure a waterline and removing minwaterdepth allows it to be built on land and water, and the structure floats when on the latter. However, it also appears to ignore the structure's slope tolerance, even on land. Would it be possible to make it not ignore slope tolerance on land (but still ignore it on water)? This would allow us to use the same structure on both land and water, saving space on buildlists.
Re: Make Floating Structures Obey Maxslope on Land?
Posted: 11 Jun 2008, 20:45
by Evil4Zerggin
Here's my attempt at a patch (did I do this right?)
Re: Make Floating Structures Obey Maxslope on Land?
Posted: 11 Jun 2008, 22:22
by Argh
Um, a COB script could easily set the Upright status, dependent on context.
I can't think of the last time I saw a building meant for a dual use like that, tbh, but meh, no harm in fixing it... assuming you haven't done something silly, like remove the ability of land buildings to be Upright
Oh, and submit the patch via Mantis, just to be sure it gets reviewed.
Re: Make Floating Structures Obey Maxslope on Land?
Posted: 11 Jun 2008, 22:59
by Evil4Zerggin
Argh wrote:Um, a COB script could easily set the Upright status, dependent on context.
I thought Upright had to do with the vertical orientation of the unit? I'm talking about the slope tolerance for building structures. Currently if you make a floating structure buildable on land it ignores slope tolerance, so you would have your air plant or whatever sticking out of the side of a cliff.
Although, come to think of it, I wonder if there's something else I need to include to do terrain-flattening for such structures... I'll go check.
Argh wrote:I can't think of the last time I saw a building meant for a dual use like that, tbh, but meh, no harm in fixing it...
We've been trying to merge many land/sea structures in CA to avoid buildlist bloat. As far as floating structures go, though, so far we've only done it for mines and such because otherwise we have hovercraft platforms sticking out the side of a cliff, etc.
Argh wrote:Oh, and submit the patch via Mantis, just to be sure it gets reviewed.
I'll do that.