Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - Allow the Weapon Manager to turn on the ECM when in guard mode #27

Closed
DoctorDavinci opened this issue Aug 13, 2016 · 5 comments

Comments

@DoctorDavinci
Copy link
Collaborator

Currently the Weapon manager doesn't turn on an attached ECM when in guard mode

@TheDestroyer111
Copy link

Good idea. I also think it should use ECM only at certain distances from an enemy (AFAIK, and according to my tests, ECM jammer does nothing at shorter ranges). So if all loaded enemies are at short range, the jammer should be disabled to conserve electricity.

@Feni85
Copy link

Feni85 commented Aug 24, 2016

If I remember correctly, the radar in BDA works by making a small black and white picture of the craft it is targeting (64*64px something or less) and counts the amount of black pixels to determine a lock or not. The ECM reduces the amount of pixels in the targeting picture and therefore reducing the range of detection but not making it zero. The less sensitive the radar is, the greater the effect of ECM.

Enabling the ECM in guard mode would be natural behaviour in combat and would therefore be a good enhancement. Disabling the ECM at short range isn't normal behaviour in combat since there might be another foe at range that you haven't detected yet (other than the one that is close, perhaps using ECM themselves).

@gomker
Copy link
Collaborator

gomker commented Nov 6, 2016

How this works now - Added a function along side the fire chaff in Guard Mode. Will enable the ECM Jammer for 10 seconds at a time. Will review further for balance and effectiveness in combat.

@gomker gomker closed this as completed Nov 6, 2016
@TheDestroyer111
Copy link

@gomker , it shouldn't always be ten seconds. If ECM actually may do something at short range, then it's better to use it depending on some sort of equation based on electricity generation, range from target, and whether the target can lock on properly... Thoughts?

@gomker
Copy link
Collaborator

gomker commented Nov 7, 2016

This was just the first pass on implementing it, so quick and dirty. What I did was add a function at the same time the Gaurd AI was to fire chaff, this way I didn't need to write any more logic than just activating it.
Reason why I went with 10 seconds is the chaff fires at an interval, so it was toggling the ECM like crazy, this was just a temp work around.

My thoughts were

  1. figure out the right balance on the ECM - as you have noted it sometimes does not do anything useful
  2. put better logic to let the AI fire it taking into account factors like distance and EC charge

I started this issue #84 to talk about the ECM balance.

illectro pushed a commit to illectro/BDArmory that referenced this issue Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants