Make Floating Structures Obey Maxslope on Land?
Moderator: Moderators
- Evil4Zerggin
- Posts: 557
- Joined: 16 May 2007, 06:34
Make Floating Structures Obey Maxslope on Land?
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.
- Evil4Zerggin
- Posts: 557
- Joined: 16 May 2007, 06:34
Re: Make Floating Structures Obey Maxslope on Land?
Here's my attempt at a patch (did I do this right?)
- Attachments
-
- FloatingSlopeTolerance.zip
- (479 Bytes) Downloaded 12 times
Re: Make Floating Structures Obey Maxslope on Land?
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.
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.
- Evil4Zerggin
- Posts: 557
- Joined: 16 May 2007, 06:34
Re: Make Floating Structures Obey Maxslope on Land?
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.Argh wrote:Um, a COB script could easily set the Upright status, dependent on context.
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.
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: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...
I'll do that.Argh wrote:Oh, and submit the patch via Mantis, just to be sure it gets reviewed.