FreeSpace Releases > Scripting Releases

Ejection seat script

<< < (7/7)

Dragon:
3 is good enough, quite realistic, too.

Alan Bolte:
3 or a combination of 2 and 3 would work well enough for a mod that wanted a 'realistic' or sim-like feeling, yes. However, for something more gameplay oriented or arcade-like, such as emulating the escape pods in Allegiance, you'd have to have option 1 or a close facsimile.

One idea I had for modifying option 2 was to, for example, multiply the player's hp by 10, then cause them to eject when they hit 90% of their total hitpoints. Clearly you'd have to change the hull integrity display on the HUD to correct for that but I'm under the impression we have fairly thorough HUD control these days. I don't know what other effects that might have, though. It'll surely effect damage lightning, but it might affect collisions or I don't even know.

Ideally though, there'll be a percentage hitpoints constant implemented in armor.tbl as in this thread, so we could just combine that with option 2 to emulate option 1.

m!m:

--- Quote from: Alan Bolte on September 22, 2011, 12:37:56 am ---One idea I had for modifying option 2 was to, for example, multiply the player's hp by 10, then cause them to eject when they hit 90% of their total hitpoints. Clearly you'd have to change the hull integrity display on the HUD to correct for that but I'm under the impression we have fairly thorough HUD control these days. I don't know what other effects that might have, though. It'll surely effect damage lightning, but it might affect collisions or I don't even know.

--- End quote ---
This will most likely not work as the hull integrity gauges content can't be manipulated from a script.
But I just had another idea that will work without any code hacks, overrides, ... and that would be the usage of ship guardian which will prevent the destruction of the player ship. That way you could set the flag on the player ship in FRED when destruction of the player is not wanted/intended and then set a minimum hull integrity (like 3%) where the player will eject.

Alan Bolte:
Well between mantis and the armor table thread I derailed I get the impression ship-guardian is a controversial issue. I think I'm just going to back off and let the experienced modders speak, I'm feeling in over my head.

Navigation

[0] Message Index

[*] Previous page

Go to full version