Closed Alwandy closed 7 years ago
I actually had a thought about this on Saturday, and yeah this is something that'd be good to work on for missions. My thoughts though included gradual improvement of accuracy, so the rounds eventually move closer to the target, if the target is stationary for a reasonable amount of time.
Suggest we also implement this for arty and something similar for field guns
Need to add other key individuals to this such as RTO's/Sniper teams who would also get in contact with mortar teams.
Standard AI spotting won't work at the required range in most cases so an alternative would need to be found.
Needs to be a time delay to simulate the relaying of messages between individuals.
Perhaps a configurable time delay between fire missions?
Make sure it takes us at our last known position rather than updating like mine did!
Update:
My above 4 points have been covered in a prototype.
Currently uses an array where you can put snipers, RTO's and other units. Units in the array can call mortar support. Uses a function with the firedNear EH and calls mortar support whenever a unit in the array is fired at or fires. Currently checks every 30 seconds for units in contact. When the mortar fires it uses a 'cooldown' variable so it can only be called once every X seconds (default is 120 secs).
To do:
Update:
The 3 above "to do's" have been completed and V1 has been written. There are some fixes that need to be done before its ready to be pushed into the next Modpack update (if that is the plan?)
Details can be found on this wiki page: https://github.com/uksf/Modpack/wiki/Mortar-Script-V1
To do:
Update:
@tbeswick96 has re-written the script some what using MPHit EH as the firedNear EH only allows detection of up to 70m and the mortar wont fire if enpos is closer than 150m (for it doesn't kill friendlies). Need to get the up to date version and then go from there.
Bes can you push the latest version of the mortar script please?
Writing this as an idea, lately we have lacked a proper AI Mortar tasking script. We have utilized ZEUS and other scripts doing this but I believe this is not the correct way.
See FLOW CHART