Author Topic: Focus Fire  (Read 1179 times)

Offline Shrugging Khan

  • Hero Member Mark III
  • *****
  • Posts: 1,217
  • Neinzul Y PzKpfw Tiger!
Focus Fire
« on: March 28, 2011, 03:46:15 pm »
Does Focus fire mean that even units with special effects - such as engine damage, paralysis, or reclamation - will all focus on a single target, even though their special effect then goes to waste?
The beatings shall continue
until morale improves!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Focus Fire
« Reply #1 on: March 28, 2011, 03:57:40 pm »
Some background: all auto-target prioritization is accomplished by a comparison function that takes two ships and specifies which one to prefer (or "don't-care").

The focus-fire branch in that function comes after the branches that say "don't shoot at this if I prioritize engine damage and the target's engine health is already lower than my engine-damage-floor" and "don't shoot at this if I paralyze and the target's paralysis timer is already maxed out", etc.  So if any of those branches expresses a preference, the focus fire logic isn't even checked.

However, there are some ships that do minor engine damage that are explicitly set to not care very much about optimizing it since they're really just DPS ships with that minor bonus, and their branch for trying to optimize engine damage comes after the focus-fire branch.  Also, it looks like the Armor-Damage branch comes after focus-fire too.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Shrugging Khan

  • Hero Member Mark III
  • *****
  • Posts: 1,217
  • Neinzul Y PzKpfw Tiger!
Re: Focus Fire
« Reply #2 on: March 28, 2011, 04:17:21 pm »
So I can use Spider turrets without having to turn FF off? :D
The beatings shall continue
until morale improves!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Focus Fire
« Reply #3 on: March 28, 2011, 04:26:56 pm »
Yes, that should work quite well :)  It was one of my test cases back when I did the focus-fire controls, and also earlier when I implemented the engine-damage-prioritizing logic for spider turrets and whatnot.

The "engine damage can't take engines lower than 1" thing is much more recent, but it doesn't actually change any of the engine-health computations and thus doesn't mess with the engine-damage-prioritization; it functions by a "if less than 1, set to 1" rule in the speed computation after applying engine damage.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Shrugging Khan

  • Hero Member Mark III
  • *****
  • Posts: 1,217
  • Neinzul Y PzKpfw Tiger!
Re: Focus Fire
« Reply #4 on: March 28, 2011, 04:28:06 pm »
So the turrets will not switch to Focus Fire even if all enemies are reduced to 1% of engine health?

I am no good with numberspeak   :)


PS: Does the FF logic also work for Nanoswarms? Because I have seen them, quite frequently, all together flowing into single targets rather than to spread out  :-\
« Last Edit: March 28, 2011, 04:36:37 pm by Shrugging Khan »
The beatings shall continue
until morale improves!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Focus Fire
« Reply #5 on: March 28, 2011, 04:36:36 pm »
No, what I was saying is that the "engine damage can't take engines lower than 1" rule does not impact the sniper turret's interaction with the focus fire control in any way.  In truth, the engine health itself is taken all the way to zero, it's just that zero engine health can't take move speed lower than 1.  Not 1%, mind you, 1.

Anyway, the sniper turrets would only "switch to" (i.e. consider) focus fire if every single hostile eligible for "I can shoot at this" either had engine-health == 0 or was immune to engine damage.  At that point they should start focusing for damage if you have sniper-focus-fire on.  Which is roughly what people want them to do in that case, though it gets tricky when more ships come in since they don't constantly update target lists, etc.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Shrugging Khan

  • Hero Member Mark III
  • *****
  • Posts: 1,217
  • Neinzul Y PzKpfw Tiger!
Re: Focus Fire
« Reply #6 on: March 28, 2011, 04:38:26 pm »
engine-health == 0
Does this work correctly with the new 1% minimal engine health system?


Also, just to make sure:
Quote
PS: Does the FF logic also work for Nanoswarms? Because I have seen them, quite frequently, all together flowing into single targets rather than to spread out  Undecided
The beatings shall continue
until morale improves!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Focus Fire
« Reply #7 on: March 28, 2011, 04:42:27 pm »
engine-health == 0
Does this work correctly with the new 1% minimal engine health system?
What I was saying is that there is no new 1% minimal engine health system.  There is a move-speed-1 minimum rule, but engine health can and does still go down to zero.


Quote
Also, just to make sure:
Quote
PS: Does the FF logic also work for Nanoswarms? Because I have seen them, quite frequently, all together flowing into single targets rather than to spread out  Undecided
They intentionally spread out, actually, because their impact is considerably greater when spread out rather than piling tons and tons of paralyze, etc onto a few targets.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Shrugging Khan

  • Hero Member Mark III
  • *****
  • Posts: 1,217
  • Neinzul Y PzKpfw Tiger!
Re: Focus Fire
« Reply #8 on: March 28, 2011, 04:59:22 pm »
Then my nanoswarms must have been a retarded breed  :o

Anyways, I am happy. Spider turrets shall be build! Good work mr. coder man!
The beatings shall continue
until morale improves!