Skip to content

CSW - Add automatic firing of mortars#11035

Merged
PabstMirror merged 27 commits intomasterfrom
mortar-auto
Oct 5, 2025
Merged

CSW - Add automatic firing of mortars#11035
PabstMirror merged 27 commits intomasterfrom
mortar-auto

Conversation

@TheCandianVendingMachine
Copy link
Copy Markdown
Contributor

@TheCandianVendingMachine TheCandianVendingMachine commented Aug 17, 2025

When merged this pull request will:

  • Add auto firing of mortars based on a toggle per-weapons
  • Move CSW actions into sub menu

CSW actions being moved was due to clutter on the main interaction page.

Main feature is automatic firing of mortar when rounds are loaded. This simulates a "hang, drop, fire" behaviour.

Handles both human-less and human-full turrets.

Due to Arma being Arma, when we spawn an agent to fire, the shell will go out the actual direction of the barrel. But for players, it's more shot towards the azimuth and elevation. I stole the code from artillerytables to find the azimuth/elevation, and automatically set the velocity on fire. A bit lame, but hey what can you do.

Demonstration

IMPORTANT

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

Copy link
Copy Markdown
Contributor

@DartRuffian DartRuffian left a comment

Choose a reason for hiding this comment

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

I was just poking around at stuff, noticed a couple things

@TheCandianVendingMachine
Copy link
Copy Markdown
Contributor Author

added normal distribution function. cant use the one in arma cause they just dont have stddev and mean variant?? heres the output to show its normal (n=1,000,000, 1000 buckets)

image

@TheCandianVendingMachine
Copy link
Copy Markdown
Contributor Author

Added changes, did not test in game (low energy, but wanted to fix things)

@PabstMirror PabstMirror added this to the 3.20.1 milestone Sep 12, 2025
@PabstMirror PabstMirror added the kind/feature Release Notes: **ADDED:** label Sep 12, 2025
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
@PabstMirror PabstMirror merged commit c3b7193 into master Oct 5, 2025
3 checks passed
@PabstMirror PabstMirror deleted the mortar-auto branch October 5, 2025 20:29
@johnb432 johnb432 changed the title csw - Add automatic firing of mortars CSW - Add automatic firing of mortars Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Release Notes: **ADDED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants