ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Frag - Add Submunition Fragmentation

Open lambdatiger opened this issue 1 year ago • 0 comments

This PR is based on PR https://github.com/acemod/ACE3/pull/10157 and requires it to be merged. This may need to be changed once https://github.com/acemod/ACE3/pull/10163 is merged.

When merged this pull request will:

  • Makes the function shouldFrag check whether a projectile's submunitions would frag and adds relevant event handlers if they would.
    • Currently no explicit recursion checks because Arma should fail to with recursive self-referential submunitions.
  • Adds child function to initialize fragmentation to be called by both fired and submunition spawned event handler.

As always, feedback desired.

TODO

  • [ ] Double check that Arma 3 does not accept self-referential submunition loops.

IMPORTANT

  • [x] If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • [x] Development Guidelines are read, understood and applied.
  • [x] Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

lambdatiger avatar Aug 15 '24 23:08 lambdatiger