missile reactions...

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

missile reactions...

Post by Screet »

Hi,

I've had some fun with disabling my MASC and then trying to change the AMS/chaff behaviour: my ship now automatically does use it's chaff on !standard missiles and only switches to darts if the chaff is exhausted :twisted:

However, I'm considering something which apparantly is not possible yet: automatically using the ECM against missiles. Toggling the cloak on and off appears to be too powerful, though it would be interesting to give it a try.

How do you feel about such a thing like auto-ECM as an upgrade? Interested?

Are there any suggestions upon where in the code I could add the possibility to use ECM from JS?

I also have the impression that the analyzer does switch the target to the most recently launched missile, but that turrets won't fire on it. Suggestions on where to find that code part? Would you want turrets to shoot on missiles? I'd like it...

Screet
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Yes, I'd love auto-defense systems against non-standard missiles! Lately whilst trying to take down my RH targets, I seem to get a lot of ships launching nukes etc at me, sometimes on high-speed injector passes. There often simply isn't enough time in the heat of battle to disable targeting, toggle to the correct defence weapon, re-target and deploy the defence device in the two seconds or so from missile ID warning until spacebar time.

For that matter, shouldn't missile selection be totally independant of target selection anyway? I'm constantly being annoyed by the fact that when my multi-targetting system is down, I can no longer toggle between missiles.

Auto-ECM seems like a useful upgrade. Having turrets fire on missiles sounds good too.. not that Gunboat Diplomat has any turrets.. :)
Last edited by Diziet Sma on Sun Apr 26, 2009 11:07 am, edited 2 times in total.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

It's not currently possible. It was part of the original blueprint for AMS to do so for standard missiles, but it can't be done at the moment.

And there is the school of thought that says having ECM automatic would be an unfair advantage and make the game too easy with regard to missiles. This isn't a view I subscribe to, but I know some people do as I did discuss it with some.
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

Thargoid wrote:
It's not currently possible. It was part of the original blueprint for AMS to do so for standard missiles, but it can't be done at the moment.

And there is the school of thought that says having ECM automatic would be an unfair advantage and make the game too easy with regard to missiles. This isn't a view I subscribe to, but I know some people do as I did discuss it with some.
Well, the NPC ships apparantly can do instant-ECM. I also had the impression that they once blew me up that way.

Anyway, even if I (or someone else) manages to add this to the code, it wouldn't have to be that every ECM does that, but probably only an additional upgrade to the standard ECM (probably via OXP then) which not everyone would have to buy. Thus, who does prefer the original ECM would not have to bother...

Because I'm now getting a little bit more familiar with the code, I asked for suggestion on where I could try to add such functionality ;)

Screet
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Like I said, personally I don't think it would be too unbalancing (indeed it's a natural evolution, and something that the military have in real life, or at least the current tech equivalent of). Indeed auto-ECM OXP is one I did think of and look into a while back. But it hit the rather fundamental brick wall that there is no function within JS to fire the ECM, at least that I could find anywhere.

Of course if you can find something I've missed, go for it ;) It's where AMS came from as a subsitiute.
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Post by Micha »

Diziet Sma wrote:
For that matter, shouldn't missile selection be totally independant of target selection anyway? I'm constantly being annoyed by the fact that when my multi-targetting system is down, I can no longer toggle between missiles.
This has been implemented for 1.73
The glass is twice as big as it needs to be.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post by Lestradae »

If you do, Screet, I suggest naming it the "Naval ECM System".

Oolite might not be Elite and even less its later versions, but naming things after things that have been in later Elite games and therefore can be expected to show up in Oolite's "future" would be a nice little twist imo.

8)

L
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Although now I think about it again, I think I can possibly see a way... :wink:
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

SVN 2144 contains now a fireECM() function for the OOJSShip class. This means, that you can order any ship (player included) to fire its ECM like in the examples below:

Code: Select all

player.ship.fireECM();
or

Code: Select all

player.ship.target.fireECM();
But I have to say that I am no fan of having equipment reacting automatically. As I've said in the past many times, too much automation kills the fun. But whoever feels like using the fireECM() can now do so.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

another_commander wrote:
But I have to say that I am no fan of having equipment reacting automatically. As I've said in the past many times, too much automation kills the fun.
I see your point, but for a heavily outnumbered bounty-hunter concentrating on getting the scumbags into his crosshairs, any machine that watches his back for him just has to be a 'Bounty-Hunter's Best Friend'TM
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

It's one of the few things that's never quite rung true for me in Oolite, that ECM isn't automated. From a realism view it would be the first thing to be automatic, given the risk to the ship and how simple the technology would be.

Even today military aircraft and warships have automatic response to missile and active radar lock-ons (hence the urban myths about the low flying fighter jets and the police with hand-held radar speed guns). And as said above it always seems that the NPC ships have their ECM automatic due to how their AIs work.

And I'm not sure that it would affect game balance, given how many missiles these days virtually ignore ECM, and also the fact that ECM affects all missiles in range (hence it can put a dent in any missiles you've fired as well).
User avatar
_ds_
Deadly
Deadly
Posts: 180
Joined: Thu Jan 22, 2009 5:34 pm
Location: In a cloaked ship behind you

Post by _ds_ »

Thargoid wrote:
nd I'm not sure that [automated ECM] would affect game balance, given how many missiles these days virtually ignore ECM, and also the fact that ECM affects all missiles in range (hence it can put a dent in any missiles you've fired as well).
I'd call that a good reason for retaining the requirement for manual activation.
http://tartarus.org/~ds/oolite/patches, Buzzer OXP etc.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

We're talking OXP anyway, so you pays your money, takes your choice and install it or don't ;)
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

Hi,

just trying if this works...would almost sound too easy, modifying a single line:

Code: Select all

	return (([playersTarget isMissile] || ([playersTarget isShip] && [playersTarget hasHostileTarget])) && [playersTarget primaryTarget] == self);
I guess even if it works, it'll be difficult for the turrets to shoot the missile...and I'm not sure if it gives undesired side-effects, as that is the modified version of "hasHostileTarget".

However, I believe that targeted missiles heading for the player should be considered hostile targets ;)

Grrr...it's sooo difficult to try these missile things out...it's game over so easily!

Screet
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

Post by Screet »

Confirmed: That simple one-line-change allows turrets to fire at missiles which did lock on to the ship :twisted:

I'll leave that line in for my version...now it's just the question wether this should be included in the trunk version.

It practically requires the missile analyzer as that does auto-lock onto missiles heading for the player...

Screet
Post Reply