Page 1 of 1
Add the mass tag to features?
Posted: 11 Mar 2008, 23:50
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
Re: Add the mass tag to features?
Posted: 11 Mar 2008, 23:53
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.
Re: Add the mass tag to features?
Posted: 12 Mar 2008, 11:58
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
Re: Add the mass tag to features?
Posted: 13 Mar 2008, 02:47
by Noruas
Wait... we can have flying pebbles off the shore if theres an explosion?
Re: Add the mass tag to features?
Posted: 21 Mar 2008, 23:25
by Guessmyname
Nah, it's to do with units crushing features, I think.
Re: Add the mass tag to features?
Posted: 22 Mar 2008, 03:32
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...