Page 1 of 1

generation of the ejected pilot

Posted: Sun Feb 17, 2013 9:26 pm
by Andy
Hello,
does somebody know, how the ejected pilots are generated, when an AI ships blow up? What file controls this, can the probability for the appearance of the ejected pilot be altered?

Re: generation of the ejected pilot

Posted: Mon Feb 18, 2013 4:16 am
by klauss
IIRC, it's done in the code, probably in unit_generic.cpp. I see at least two variables in the config controlling this, hull_damage_to_eject, and autoeject_percent.

Re: generation of the ejected pilot

Posted: Sat Sep 28, 2013 8:39 am
by lucascole
I have used hull_damage_to_eject but still it is not working, so can you please tell me how to use autoeject_percent as I don't know how to use it.

Re: generation of the ejected pilot

Posted: Sat Sep 28, 2013 10:54 am
by TBeholder
Search Variables page in wiki for everything with "eject" substring.
As to the basics - autoeject_percent despite the name is probability as a fraction (0.0 - 1.0), hull_damage_to_eject is -VSD hull value on death (i.e. overkill) that prevents ejection. If both values are at default, lasers and massdrivers will leave ejects as often as not, missiles much more rarely.

Edit: wrong URL from History; changed to the new VSwiki.