Add the mass tag to features?

Add the mass tag to features?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Add the mass tag to features?

Post by aGorm »

Can someone add this in? As far as I can tell, features already have a mass calculated from there current stats, like metal, however thats a pain for trees as, really, trees shouldn't have metal. So letting you overide the mass would be very usefull.

Thanks.

aGorm
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Re: Add the mass tag to features?

Post by Gnomre »

http://spring.clan-sy.com/websvn/filede ... rev=0&sc=0

Code: Select all

        const float defMass = (fd->metal * 0.4f) + (fd->maxHealth * 0.1f);
        fd->mass = fdTable.GetFloat("mass", defMass);
        fd->mass = max(0.001f, fd->mass);
It's already there. It defaults to that wonky formula if the tag isn't used.
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Re: Add the mass tag to features?

Post by aGorm »

First... WOOHOO.... I'll fix aftershock when I get 5 mins.

Second... Are tehre any otehr tags in tehre that we dont know about? Only I swear this was never in the change log...

aGorm
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Re: Add the mass tag to features?

Post by Noruas »

Wait... we can have flying pebbles off the shore if theres an explosion?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: Add the mass tag to features?

Post by Guessmyname »

Nah, it's to do with units crushing features, I think.
j5mello
Posts: 1189
Joined: 26 Aug 2005, 05:40

Re: Add the mass tag to features?

Post by j5mello »

GMN is correct if crushstrength(?) > mass then the item gets bulldozed... though to be honest anything other than the spring trees just dissappears which looks silly...
Post Reply

Return to “Feature Requests”