Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Make a tactical AI parameter for only skirming shootable enemies

Open GoogleFrog opened this issue 7 years ago • 6 comments

A shootable enemy would be one that is at least a radar dot, and is at least a static radar dot if the unit is set to not fire at radar dots. Phantom wants it.

GoogleFrog avatar Oct 22 '19 01:10 GoogleFrog

If it's related to http://zero-k.info/Battles/Detail/785146 (~20th minute map) where sniper was dancing in place (kiting range) in front of a stinger that was not in radar or los, then additional observations with unit AI and fire at radar dots enabled:

  1. with only Fight command phantom behaves as expected - moves into range until target appears in los.
  2. SetTarget (without Fight) makes phantom stall/dance at kiting range.

Or is it a separate issue?

rlcevg avatar Oct 22 '19 14:10 rlcevg

For (2) are you sure that the unit had not given itself an order?

GoogleFrog avatar Oct 23 '19 02:10 GoogleFrog

Not sure what you mean, but SetTarget is being issued by AI for internally saved UnitId and it doesn't check LOS before issuing (that would be AI-side fix). Replay settarget_demo.zip to reproduce through UI.

  1. spawn turretheavylaser
  2. spawn cloaksnipe (near kiting range)
  3. enable globallos
  4. issue SetTarget for snipers
  5. disable globallos

rlcevg avatar Oct 23 '19 09:10 rlcevg

Interactions with globallos toggling are untested and hence unsupported.

GoogleFrog avatar Oct 24 '19 00:10 GoogleFrog

Ok, feel free to fly above with sparrow (~~though i didn't test it~~). globallos was just an easy way to provide LOS

rlcevg avatar Oct 24 '19 00:10 rlcevg

sparrow demo settarget_demo2.zip

rlcevg avatar Oct 24 '19 00:10 rlcevg