In 1.76 or earlier, when used with NPC ships it slightly enlarges the chance of shooting at greater distances, and makes a small improvement to their aim. Value with NPC ships is between -5 and 10 though all values between -5 and +1 will be increased to +1. When not defined, NPCs will be assigned a random value in the range +1 to +10.
Emphasis added by me.
With regard to the death_actions, I believe this relies on the old legacy scripting methods so may be best avoided. Adding a ship script using a (this.shipDied event handler) is probably a better way to do this these days. Take a look at the cloak and constrictor scripts from the core game to get you started.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Accuracy:
In 1.76 a random value between +1 and +10 will be picked. You will barely notice the difference.
In trunk (and so in 1.77) a random value between -5 and +4.999 will be picked. Values in the +5 to +10 range gradually enable additional combat tactics and improve piloting skill. See[wiki]OXP_NPC_Combat_AI[/wiki] for more details. At +10 they're probably about as good as a Competent human pilot. (The entire -5 to +4.999 range basically covers the "Harmless" rank). If you want to see what this means in practice, download a nightly build of Oolite and my "Combat Arena" testing OXP.
Death actions:
As Smivs says, it's much better to use a ship script for this.
Thanks gents - It looks like the copy of the Shipdata.plist document that I printed some time ago is out of date as it had no mention of the random value selection.
I guess that I should check for updates more often
Regarding the death actions query I'll have a look at using a scripting method.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Thanks Gents - The ship itself kind of evolved from something entirely different (It actually started life as a shuttle).
I must admit though that the shark teeth were inspired by just the type of WW2 aircraft linked to in El Viejo's above post specifically a Hawker Typhoon.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Death actions:
As Smivs says, it's much better to use a ship script for this.
Ok I have had a go at a basic script which sends a message from a NPC ship to the player ship upon its destruction which seems to work ok. At the moment it is, however, limited to a single message.
How do I define a list of messages from which Oolite will randomly select one message only and send to the player upon a NPC ship's destruction.
Can someone remind me if I want to define a player ship with forward and rear lasers only what number do I use in the weapon facings key in the shipyard.plist?
I know 1 if for forward lasers only and 15 is for all four lasers.
The GalTech Industries Corporation - Building ships to populate the galaxies.