new building class (for the same building on land + water)

new building class (for the same building on land + water)

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

new building class (for the same building on land + water)

Post by Hoi »

i am not 100% sure but i think TEDClass is what tells if units can come on land/and or water, i suggest a new class to make a building being able to be constructed on land and water, it saves a buildpic space :-) i think this would also require something like landmaxslopetolerance=number, watermaxslopetolerance=other number, not sure though becaus i dont know if the slope of the water, or the slope of the ground underneath it is used, but it seems like a good feature request :wink:
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: new building class (for the same building on land + water)

Post by FLOZi »

i think TEDClass is what tells if units can come on land/and or water
No.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Re: new building class (for the same building on land + water)

Post by Snipawolf »

*Sigh*
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: new building class (for the same building on land + water)

Post by [Krogoth86] »

Go here:
http://spring.clan-sy.com/wiki/Units:FBI

Look for MaxWaterDepth & MinWaterDepth to control every case you want... :wink:
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: new building class (for the same building on land + water)

Post by Hoi »

i did that:)
i think TEDClass is what tells if units can come on land/and or water
i was wrong :| but still, buildings that can be built on water and ground would save a buildpic and it should be doable :!:
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: new building class (for the same building on land + water)

Post by [Krogoth86] »

What exactly is the problem? You can make things being able to be built on ground and water - I think the air labs in CA can be built either underwater or on ground and replace the seaplanes...

Use the waterline tag for anything floating...
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: new building class (for the same building on land + water)

Post by Hoi »

[Krogoth86] wrote:What exactly is the problem? You can make things being able to be built on ground and water - I think the air labs in CA can be built either underwater or on ground and replace the seaplanes...

Use the waterline tag for anything floating...
confused.. this might be already here then, what i really mean is that you have like, a hovercraft platform, and you have a hovercraft platform NS i am talking about combining those two into one
[Krogoth86]
Posts: 1176
Joined: 23 Aug 2007, 19:46

Re: new building class (for the same building on land + water)

Post by [Krogoth86] »

As I said - those WaterDepth tags in the FBIs control how deep the water has to be as a minimum or maximum in order to place the building there. So if you just put a MaxWaterDepth=255; in there you should be able to put it everywhere (or even try not to use any of those tags and look if it works then too - didn't try yet)...

The floating Hovercraft Platforms are kept seperate because of their different costs...
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: new building class (for the same building on land + water)

Post by Evil4Zerggin »

minWaterDepth and maxWaterDepth control where a building can be built as far as water is concerned. If you leave the tags out then it can be built anywhere depth-wise.

Currently, there is a problem with floating structures that can be built on both land and water: they ignore maxSlope even on land. I'm trying to write a patch to fix it, but it will be a while before I can get a full devving machine to test it.
Post Reply

Return to “Feature Requests”