generation of the ejected pilot

This is the location for all mods to collaborate. Anyone making or planning their own mod should post help requests, screen shots and news here.

Moderators: Omega, tillias, Mod Contributor

Post Reply
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

generation of the ejected pilot

Post 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?
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: generation of the ejected pilot

Post 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.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
lucascole
Atmospheric Pilot
Atmospheric Pilot
Posts: 1
Joined: Sat Sep 28, 2013 8:32 am

Re: generation of the ejected pilot

Post 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.
Try to visit rapid prototypes.
TBeholder
Elite Venturer
Elite Venturer
Posts: 753
Joined: Sat Apr 15, 2006 2:40 am
Location: chthonic safety

Re: generation of the ejected pilot

Post 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.
"Two Eyes Good, Eleven Eyes Better." -Michele Carter
Post Reply