[SCR] Missile Safety (v1.12)
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 67
- Joined: Mon, 5. May 08, 00:37
I'm not rly interested in this for this for my personal craft
Does this work for all fighters, enemies included or just player owned ships?
Make a version that works for all fighters and i'm interested.......blowing up 4 of 7 M3 fighters with less than 5 shots cause they launch missiles at me pisses me off. Those are potentially salvageable craft dammit!
Does this work for all fighters, enemies included or just player owned ships?
Make a version that works for all fighters and i'm interested.......blowing up 4 of 7 M3 fighters with less than 5 shots cause they launch missiles at me pisses me off. Those are potentially salvageable craft dammit!
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
Then try the OOS combat Rebalance script because for that to work, the ES Scripts need to be overwritten and the OOSR does provide the necessary files.borgrel wrote:Make a version that works for all fighters and i'm interested.......
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 189
- Joined: Mon, 20. Jul 09, 13:01
-
- Posts: 44
- Joined: Mon, 14. Jun 10, 04:37
[quote]Note that this is not foolproof. A lucky shot can still detonate a missile even if the warhead isn't armed.
(Firing at warheads is neither safe nor recommended by the manufacturer) [/quote]
So what this is saying is that all this time my in-the-face explosions have 99% been from the missile thinking the bullet traveling by it was target? That must mean there are far more prox-det missiles than I thought.
Was always wondering why missiles were so easy to shoot down. And while during pirate busting it didn't matter where I aimed at the target ship, it's dying missile launch always resulted in self-cremation.
(Firing at warheads is neither safe nor recommended by the manufacturer) [/quote]
So what this is saying is that all this time my in-the-face explosions have 99% been from the missile thinking the bullet traveling by it was target? That must mean there are far more prox-det missiles than I thought.
Was always wondering why missiles were so easy to shoot down. And while during pirate busting it didn't matter where I aimed at the target ship, it's dying missile launch always resulted in self-cremation.
-
- Posts: 359
- Joined: Sun, 10. Jan 10, 23:48
dctrjons wrote:So what this is saying is that all this time my in-the-face explosions have 99% been from the missile thinking the bullet traveling by it was target? That must mean there are far more prox-det missiles than I thought.Note that this is not foolproof. A lucky shot can still detonate a missile even if the warhead isn't armed.
(Firing at warheads is neither safe nor recommended by the manufacturer)
Was always wondering why missiles were so easy to shoot down. And while during pirate busting it didn't matter where I aimed at the target ship, it's dying missile launch always resulted in self-cremation.

I thought that as in FL, missiles didn't lock onto bullets, but rather bullets aiming for the Player Ship hit the missiles...?
Also, could someone please with a radish on top tell me if this mod effects m6's? Since those are currently my number one "Aaaaarrrrrgggghhh" ships...
-
- Posts: 1414
- Joined: Thu, 7. Jul 05, 05:17
If you use it in conjunction with Gazz's OOS rebalance scripts, it should affect all ships. Otherwise, by itself it only affects the player ship.
This is script is awesome, and has made missile usage much less aggravating. One little niggling issue I still run into a lot with missile combat and NPCs is that there is a big tendency for missiles to take out ships after they have already bailed. This is especially true with scripts like RRF and the OOS Rebalance as you have ships firing missiles from across a sector and taking a few minutes to reach their target.
Would it be possible (or reasonable) to add a self-destruct or disarm for the missile if the target bails en route?
This is script is awesome, and has made missile usage much less aggravating. One little niggling issue I still run into a lot with missile combat and NPCs is that there is a big tendency for missiles to take out ships after they have already bailed. This is especially true with scripts like RRF and the OOS Rebalance as you have ships firing missiles from across a sector and taking a few minutes to reach their target.
Would it be possible (or reasonable) to add a self-destruct or disarm for the missile if the target bails en route?
-
- Posts: 2035
- Joined: Wed, 18. Aug 10, 14:28
How would the missile know the target bailed, after all it's just a fancy named heatseeker or dumbfire...aka1nas wrote:Would it be possible (or reasonable) to add a self-destruct or disarm for the missile if the target bails en route?
"If you’re not prepared to be wrong, you’ll never come up with anything original."
Sir Ken Robinson
Sir Ken Robinson
-
- Posts: 1414
- Joined: Thu, 7. Jul 05, 05:17
At least a few of them have rudimentary IFF capability as they can re-target other enemies. They should be able to tell if something changes from enemy to neutral and disable the warhead if so.TrixX wrote:How would the missile know the target bailed, after all it's just a fancy named heatseeker or dumbfire...aka1nas wrote:Would it be possible (or reasonable) to add a self-destruct or disarm for the missile if the target bails en route?
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
AFAIK, there is no way to find out a missile's target without checking every single ship and station in the sector and backtrack from there by checking what missiles, if any, are incoming to the object.aka1nas wrote:Would it be possible (or reasonable) to add a self-destruct or disarm for the missile if the target bails en route?
There is no way to record that information at launch because missiles can change targets in mid-flight.
I guess you could write some kind of missile defense script that runs on a ship and auto-detonates all missiles that were fired from non-hostile races but that would probably break one helluvalot of missions.
Many missions spawn Neutral.Race ships, only altering their relation to the playership to hostile.
The missiles would not know this so all missiles fired by the player would be detonated because they were fired by a race that is "not hostile" to the target.
Maybe you can find a workaround for this but... good luck.
I prefer to have a script that does only one thing but does it well.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 270
- Joined: Sat, 3. Jan 04, 16:49
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
Some browsers have problems handling graphical links in this forum.
Use the text link if you can't use the graphical one...
Use the text link if you can't use the graphical one...
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 336
- Joined: Sun, 1. May 05, 15:56
Sorry for bumping this old thread but I'd be very interested in using this in AP, though primarily to get around the horribly frustrating experience of enemy fighters consistently detonating themselves in dogfights (and thus denying credit for kills or any chance at salvage).
Assuming that this plugin is AP-compatible; is there any chance that the new OOS code in AP would also mean that this plugin will affect all ships in combat and not just $playership?
Edit:
----
Tried it out - Doesn't appear to be working even for playership in AP. Would love to see an update for this script (especially if such an update would affect enemy ships too..); but I'm willing to take a stab at it myself if there's a lack of time for this plugin.
Assuming that this plugin is AP-compatible; is there any chance that the new OOS code in AP would also mean that this plugin will affect all ships in combat and not just $playership?
Edit:
----
Tried it out - Doesn't appear to be working even for playership in AP. Would love to see an update for this script (especially if such an update would affect enemy ships too..); but I'm willing to take a stab at it myself if there's a lack of time for this plugin.
-
- Posts: 851
- Joined: Fri, 13. Jun 08, 13:14
when you say not working, did you put it in the scripts folder in AP? (Not TC\scripts). I would be interested in this too.
(oh and ofc activate the MSCI)
I can't off the top of my head, immediately think what would be incompatible with this as it doesn't reference any Tships etc or CAT\DAT that may have changed.
(oh and ofc activate the MSCI)
I can't off the top of my head, immediately think what would be incompatible with this as it doesn't reference any Tships etc or CAT\DAT that may have changed.
-
- Posts: 336
- Joined: Sun, 1. May 05, 15:56
Sorry, I should've been clearer - It drives me crazy when someone says something's "not working". I was half-asleep when I posted.
I placed the plugin scripts into the addon\scripts folder and it shows up under AL fine, but when enabled it doesn't appear to actually work in terms of making missiles safe until they've passed 200m.
For instance, I was able to shoot down my own hurricane missiles as soon as they left the ship.
Edit:
----
It seems I misunderstood how the plugin works! Missiles can still be shot down (as mentioned in the OP
) but should not detonate when doing so. Shooting down one's own missiles as soon as they've left the ship appears to destroy them 'safely' with or without the plugin, so I'm not sure of the best way to test this.
Edit 2:
----
The plugin disables collision-detection of unarmed missiles and in testing that appears to work fine.
Roughly how many AI scripts would need to be edited/overriden to make the AI missiles affected by this? I'm familiar with scripting, but I have no idea which scripts control AI missile launch behaviour.

I placed the plugin scripts into the addon\scripts folder and it shows up under AL fine, but when enabled it doesn't appear to actually work in terms of making missiles safe until they've passed 200m.
For instance, I was able to shoot down my own hurricane missiles as soon as they left the ship.
Edit:
----
It seems I misunderstood how the plugin works! Missiles can still be shot down (as mentioned in the OP

Edit 2:
----
The plugin disables collision-detection of unarmed missiles and in testing that appears to work fine.
Roughly how many AI scripts would need to be edited/overriden to make the AI missiles affected by this? I'm familiar with scripting, but I have no idea which scripts control AI missile launch behaviour.
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
!plugin.acp.fight.attack.object.xmlZurechial wrote:Roughly how many AI scripts would need to be edited/overriden to make the AI missiles affected by this? I'm familiar with scripting, but I have no idea which scripts control AI missile launch behaviour.
!fight.attack.object.std.xml
!fight.attack.object.owp.xml
Arguably !plugin.gz.missile.def.mk3.xml because the missile turrets on M8 are still pretty close to the center of the ship.
I would recommend only running it on ships where get size reports < 500.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 336
- Joined: Sun, 1. May 05, 15:56
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
Version 1.08 released.
The rare bug of missiles not having their collisions turned back on should now be history.
Contains files to enable it for the AI in X3:AP.
The rare bug of missiles not having their collisions turned back on should now be history.
Contains files to enable it for the AI in X3:AP.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 336
- Joined: Sun, 1. May 05, 15:56
-
- Posts: 851
- Joined: Fri, 13. Jun 08, 13:14
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
Version 1.09 released.
Small internal bugfix. (unlikely you actually noticed it =)
Major change to the "vanilla" AP turret script. (Yes, I'm planning to use you as guinea pigs!)
It should now use less CPU power... while doing more.
Instead of every single turret on every single ship constantly searching for possible new missiles, this is now done by a single task. The result is saved on the fleet / wing / formation leader and accessible to all attached ships.
Any FPS increase during a missile barrage is a Good Thing™.
As a... side effect... all ships of a formation are now tied into a missile defense net.
An incoming missile is now visible to every missile defense turret of a formation. (both laser and missile turrets)
There has to be a limit somewhere, though. =)
- Ships in a fleet check only for ships in the same fleet.
- Ships in a wing check only for ships in the same wing.
- Ships in a formation check only for ships in the same formation.
- Ships that belong to the player always defend "the" playership.
Of course, missile boats still reign supreme in the missile defense role because of their guided interception range of 14 km.
Lasers have a hard time competing with that.
Still - bringing a few Heavy Centaur (IPG turrets) or Springblossoms (Flak turrets) along can beef up your fleet's missile defense and most importantly, add some depth to the defense.
Play with those "useless" formation controls to position your screening elements...
If some of them don't survive the encounter - well, that light escorts are destroyed while screening "the" capital ship is a military reality.
Current download also includes the capability to add custom turret scripts to the sidebar turret configuration menu.
If you update MARS and this one, you can see how this works.
And on that note: Merry christmas. =P
Small internal bugfix. (unlikely you actually noticed it =)
Major change to the "vanilla" AP turret script. (Yes, I'm planning to use you as guinea pigs!)
It should now use less CPU power... while doing more.
Instead of every single turret on every single ship constantly searching for possible new missiles, this is now done by a single task. The result is saved on the fleet / wing / formation leader and accessible to all attached ships.
Any FPS increase during a missile barrage is a Good Thing™.
As a... side effect... all ships of a formation are now tied into a missile defense net.
An incoming missile is now visible to every missile defense turret of a formation. (both laser and missile turrets)
There has to be a limit somewhere, though. =)
- Ships in a fleet check only for ships in the same fleet.
- Ships in a wing check only for ships in the same wing.
- Ships in a formation check only for ships in the same formation.
- Ships that belong to the player always defend "the" playership.
Of course, missile boats still reign supreme in the missile defense role because of their guided interception range of 14 km.
Lasers have a hard time competing with that.
Still - bringing a few Heavy Centaur (IPG turrets) or Springblossoms (Flak turrets) along can beef up your fleet's missile defense and most importantly, add some depth to the defense.
Play with those "useless" formation controls to position your screening elements...
If some of them don't survive the encounter - well, that light escorts are destroyed while screening "the" capital ship is a military reality.
Current download also includes the capability to add custom turret scripts to the sidebar turret configuration menu.
If you update MARS and this one, you can see how this works.
And on that note: Merry christmas. =P
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.