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?
generation of the ejected pilot
Moderators: Omega, tillias, Mod Contributor
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
Re: generation of the ejected pilot
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.
-
- Atmospheric Pilot
- Posts: 1
- Joined: Sat Sep 28, 2013 8:32 am
Re: generation of the ejected pilot
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.
Try to visit rapid prototypes.
-
- Elite Venturer
- Posts: 753
- Joined: Sat Apr 15, 2006 2:40 am
- Location: chthonic safety
Re: generation of the ejected pilot
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.
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.
"Two Eyes Good, Eleven Eyes Better." -Michele Carter