Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Suppressive Fire module #595

Merged
merged 3 commits into from
Sep 3, 2021
Merged

Add Suppressive Fire module #595

merged 3 commits into from
Sep 3, 2021

Conversation

mharis001
Copy link
Member

@mharis001 mharis001 commented Jun 11, 2021

When merged this pull request will:

  • Add Suppressive Fire module
  • Add isUnitFFV common function
  • Add parseMagazineDetail common function

@mharis001 mharis001 added the feature Adds a new feature label Jun 11, 2021
@mharis001 mharis001 added this to the 1.11.0 milestone Jun 11, 2021
Copy link
Contributor

@neilzar neilzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placing multiple suppressive fire modules on the same unit/group will cause several issues:

  • Only the latest target will be targeted, but the old target remains until that timer is done.
  • If the first module placed lasts shorter than a later target placed, the unit will lower its weapon and move again but continues firing until the later module is also done. So it is firing at the ground or in random places once it stops moving.
  • The other way around, if the last module is finished before an earlier one, the unit will continue firing in the direction it is facing until the earlier placed modules have completed. Once the first placed module is finished, it will continue with the behaviour described in the point above. Moving any earlier module's target will not cause the unit to change its direction of fire, partly because of the first point.

@mharis001
Copy link
Member Author

Preventing the suppressive fire function from being called on a unit that is already suppressing should fix these issues.

@mharis001 mharis001 modified the milestones: 1.11.0, 1.12.0 Jun 14, 2021
@jannes-io
Copy link

Does this take locality into account? Thinking about units on headless clients and such? This used to be a problem in other zeus enhancement mods (achilles/ares).

Copy link
Member

@CreepPork CreepPork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but maybe some comment line breaks could be improved (e.g. in addons/ai/functions/fnc_suppressiveFire.sqf :100-103.

I don't know what is the unwritten practice of multiline comments here, but I think making comments look like this is better:

// My very long comment goes here
//  and here is the continuation of this, again, very long comment. 

@mharis001 mharis001 requested a review from neilzar August 24, 2021 17:14
Copy link
Contributor

@neilzar neilzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous issues have been solved. I only found that after applying the module to a single unit and then using the module again on the entire group, it will also draw a line for the unit that already had the module applied.
Doesn't break functionality, it will continue with the target and settings of the previous module. But it may be a bit confusing to see a line from that unit to the new target selection as well.

@mharis001
Copy link
Member Author

Merging now for 1.12.0. Can look at further UX improvements in the future.

@mharis001 mharis001 merged commit 75c62a0 into master Sep 3, 2021
@mharis001 mharis001 deleted the suppressive-fire branch September 3, 2021 05:35
@Timmy-Beal
Copy link

Timmy-Beal commented Sep 21, 2021

@mharis001 Are there any plans to add a burst fire-rate option like achilles had?

@mharis001
Copy link
Member Author

Not right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Suppresive Fire module
5 participants