Make Floating Structures Obey Maxslope on Land?

Make Floating Structures Obey Maxslope on Land?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Make Floating Structures Obey Maxslope on Land?

Post 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.
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Make Floating Structures Obey Maxslope on Land?

Post by Evil4Zerggin »

Here's my attempt at a patch (did I do this right?)
Attachments
FloatingSlopeTolerance.zip
(479 Bytes) Downloaded 12 times
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Make Floating Structures Obey Maxslope on Land?

Post 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.
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Make Floating Structures Obey Maxslope on Land?

Post 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.
Post Reply

Return to “Feature Requests”