Wreck with self-d

Wreck with self-d

Post just about everything that isn't directly related to Spring here!

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Wreck with self-d

Post by Caydr »

I'm completely out of it... anyone want to remind me how to make units leave a wreck when then self-d instead of just when they are destroyed?
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch »

Adjust the Killed() BOS function so that it returns a valid corpse for severity=100 (self-d should cause that)?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

yuritch wrote:Adjust the Killed() BOS function so that it returns a valid corpse for severity=100 (self-d should cause that)?
I'll give a quick overview because I think it's different from TA, and I had never heard of how this worked in spring other than seeing it in the source. Forgive me if you know this.

Whenever a unit is damaged, the damage dealt is added to recentDamage. recentDamage drops 10% each frame. Severity is recentDamage / maxHealth.


Back to the question.
This line is run when a unit self-Ds:
recentDamage += maxHealth * 2;

So severity is whatever it would have been had the unit just dropped dead + 200
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

Units aparear to explode with more power then they self-d in BA. Is that correct?
User avatar
Sleksa
Posts: 1604
Joined: 04 Feb 2006, 20:58

Post by Sleksa »

Depends on the unit
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Does that mean there are gundams in BA?
Post Reply

Return to “Off Topic Discussion”