Page 1 of 1

Transports call killed() when unloading

Posted: 05 Sep 2012, 00:05
by Forboding Angel
Why is that?

It has been happening since 89 (that I know of). As soon as the unit is unloaded, killed is called. It's like the transport unit is being replaced after unload?

If that is the case, it's just a matter of the wrong function being called upon unload (as in, you want to destroy the unit but not play the death animation).

The only time I noticed it was when I changed evo's transports over to break apart and play a ceg on the parts.

Code: Select all

Killed(severity, corpsetype) // how it explodes 
{ 
	corpsetype = 1; 
	explode base type EXPLODE_ON_HIT;
	explode engine1 type EXPLODE_ON_HIT;
	explode engine2 type EXPLODE_ON_HIT;
	explode wingsfront type EXPLODE_ON_HIT;
	explode wingsrear type EXPLODE_ON_HIT;
	explode tail type EXPLODE_ON_HIT;
}