Page 1 of 1

Wreck with self-d

Posted: 17 Jul 2007, 02:41
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?

Posted: 17 Jul 2007, 07:45
by yuritch
Adjust the Killed() BOS function so that it returns a valid corpse for severity=100 (self-d should cause that)?

Posted: 17 Jul 2007, 12:56
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

Posted: 17 Jul 2007, 18:37
by manored
Units aparear to explode with more power then they self-d in BA. Is that correct?

Posted: 17 Jul 2007, 19:21
by Sleksa
Depends on the unit

Posted: 17 Jul 2007, 19:33
by rattle
Does that mean there are gundams in BA?