lukrop / GCICAP

Autonomous GCI and CAP script for DCS: World.
Other
7 stars 2 forks source link

Find workaround for AWACS #3

Open lukrop opened 8 years ago

lukrop commented 8 years ago

AWACS aircraft seem to not work with isTargetDetected and therefor don't report any enemy flights, eliminating them as useful "radar resource".

Check if it's possible to hack some simple detection logic or wait for upstream (ED) fix.

cjbehm commented 8 years ago

I think you just have to use the unit controller instead of group controller. I had a test script a little while back and I just revisited. This seems to work fine

Controller.isTargetDetected(awacsUnit,possibleIntruder,Controller.Detection.RADAR)

The notes at Hoggit wiki suggest it behaves differently between ground and air groups (http://wiki.hoggit.us/view/DCS_func_isTargetDetected)

cjbehm commented 8 years ago

Yup, got this working with a really small set of changes. Not sure how I could submit this set of changes separate from the engagement changes (my PR experience being limited) so I can just hold this until those are done.

lukrop commented 8 years ago

Great! You could checkout commit b10cb11090585ee1dc3665b59a4b0d13b07c60d9 and create a new branch, apply your changes and create a new PR for this branch.

If needed you could stash your changes.

cjbehm commented 8 years ago

Yeah, I think I see how I can get that in without creating a merge conflict while we make sure the larger engagement PR gets careful review.

cjbehm commented 8 years ago

23 Here it is, short and sweet :)

lukrop commented 8 years ago

Great! Looking forward to closing this issue!