uksf / modpack

UKSF SR3 Mod Development and Issue/Feature Tracking
GNU General Public License v3.0
8 stars 3 forks source link

Mortar tasking feature #132

Closed Alwandy closed 7 years ago

Alwandy commented 7 years ago

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 mortarbehavior

tbeswick96 commented 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.

BrianPothoven commented 7 years ago

Suggest we also implement this for arty and something similar for field guns

AnAngrySalad1 commented 7 years ago
AnAngrySalad1 commented 7 years ago

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:

AnAngrySalad1 commented 7 years ago

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:

AnAngrySalad1 commented 7 years ago

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?