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

generation of the ejected pilot

Postby Andy » Sun Feb 17, 2013 2:26 pm

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?
Andy
Merchant
Merchant
 
Posts: 32
Topics: 7
Joined: Tue Dec 04, 2012 12:52 pm

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: generation of the ejected pilot

Postby klauss » Sun Feb 17, 2013 9:16 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: generation of the ejected pilot

Postby lucascole » Sat Sep 28, 2013 1:39 am

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.
lucascole
Atmospheric Pilot
Atmospheric Pilot
 
Posts: 1
Joined: Sat Sep 28, 2013 1:32 am

Re: generation of the ejected pilot

Postby TBeholder » Sat Sep 28, 2013 3:54 am

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
User avatar
TBeholder
Elite Venturer
Elite Venturer
 
Posts: 747
Topics: 38
Joined: Fri Apr 14, 2006 7:40 pm
Location: chthonic safety


Return to General Modding

Who is online

Users browsing this forum: No registered users and 1 guest

cron