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

SACLOS and HOT Missiles #6708

Merged
merged 35 commits into from
Dec 7, 2018
Merged

Conversation

TheCandianVendingMachine
Copy link
Contributor

When merged this pull request will:

  • Implement SACLOS simulation alongside HOT missiles

The system works by calculating the weapons direction and multiplying that by the projectiles distance. This creates an "aim point" in front of the missile that represents the cross-hair.

In the attack profile the missile calculates the equivalent to what the real systems electronic impulse would be, and off of that it adjusts itself to move toward the simulated cross-hair. Eventually the missile will be able to slow its movement enough so that it stays on the cross-hair for the duration of the flight

Features:
SACLOS system
HOT 1/2/3 Missiles
Wiesel AWC (ATGM) converted to carry HOT Missiles
Addition of HOT missile pylons for helicopters
Wire snapping when missile goes out of range

Overview of system: https://youtu.be/P_m86USv0V0
Helicopter Firing: https://youtu.be/nwwnVtKyJyg
Reference Video: https://youtu.be/7bzHFioJbrc

addons/hot/CfgVehicles.hpp Outdated Show resolved Hide resolved
addons/hot/CfgMagazines.hpp Outdated Show resolved Hide resolved
@commy2
Copy link
Contributor

commy2 commented Nov 30, 2018

This looks promising.

addons/hot/stringtable.xml Show resolved Hide resolved
addons/hot/stringtable.xml Show resolved Hide resolved
addons/hot/stringtable.xml Outdated Show resolved Hide resolved
addons/hot/CfgAmmo.hpp Outdated Show resolved Hide resolved
addons/hot/CfgAmmo.hpp Outdated Show resolved Hide resolved
addons/hot/CfgAmmo.hpp Outdated Show resolved Hide resolved
addons/hot/CfgAmmo.hpp Outdated Show resolved Hide resolved
addons/hot/CfgMagazines.hpp Outdated Show resolved Hide resolved
addons/hot/CfgMagazines.hpp Outdated Show resolved Hide resolved
addons/hot/CfgMagazines.hpp Outdated Show resolved Hide resolved
addons/hot/CfgMagazines.hpp Outdated Show resolved Hide resolved
@TheCandianVendingMachine
Copy link
Contributor Author

The new way to find the angle seems to work for every vehicle except for planes

addons/hot/CfgAmmo.hpp Outdated Show resolved Hide resolved
Copy link
Member

@bux bux left a comment

Choose a reason for hiding this comment

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

In markdown files the headlines should have a blank line beneath them

docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Show resolved Hide resolved
docs/wiki/feature/hot.md Outdated Show resolved Hide resolved
docs/wiki/feature/hot.md Outdated Show resolved Hide resolved
### 1.2 Attack profiles
The missile requires line of sight to the target at all times. Keep your crosshair on the target as the missile cruises toward it until impact.
If you lose line of sight the missile will stop tracking toward your crosshair and will fly on its current trajectory. You can regain control if the missile re-enters line of sight.
If the missile exceeds its maximum range the wire will snap and it will fly off in a random direction.
Copy link
Member

Choose a reason for hiding this comment

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

random
I hope it can do a full 180° and fly back towards the shooter ;)

@commy2
Copy link
Contributor

commy2 commented Dec 3, 2018

@Dystopian CBATeam/CBA_A3#1039

@bux
Copy link
Member

bux commented Dec 3, 2018

Speaking of moving the SACLOS system, would it and the WIRE attack profile fit better in ACE_MissileGuidance, or should it stay in the HOT file? I think that it would be better in Missile Guidance so that modders can implement it for TOWs, Konkurs, Metis and whatnot but I don't know

It would make sense. But this change could be delayed for a next release.

@TheCandianVendingMachine
Copy link
Contributor Author

It would make sense. But this change could be delayed for a next release.

After how the code evolved, missile guidance would need some onFired function references for the attack profile and seeker profile. I don't want to make those changes in this PR so I agree.

@PabstMirror PabstMirror added this to the 3.13.0 milestone Dec 4, 2018
@PabstMirror PabstMirror added the kind/enhancement Release Notes: **IMPROVED:** label Dec 4, 2018
@PabstMirror PabstMirror merged commit 1511ecc into acemod:master Dec 7, 2018
@bux
Copy link
Member

bux commented Dec 7, 2018

thank you for your contribution @TheCandianVendingMachine

@PabstMirror PabstMirror modified the milestones: 3.13.0, 3.12.6 Feb 23, 2019
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* abc

* Revert "abc"

This reverts commit bcb4214.

* Update to current commit

* Added HOT1 Missile and SACLOS/Wire guidance

* Added all HOT variants. Added polish to code

* Fixed bug with pylons

* Changed how seeker angle is calculated. When the wire snaps the missile goes haywire. Fixed bug where HOT2/3 missiles weren't getting missile guidance

* Replaced Wiesel FireFIST launcher with  HOT Launcher

* Remove debug defines

* Tweak thrust

* Fix formatting issues. Added true randomness. Added ACE prefixes. Added string table. Tweaked missile dynamics

* Fix bug where attack profile correction was wrong due to magnitude always being 50. Add stringtable values for relevant strings. Added reload time to Wiesel ATGM. Added "onFired" to initialize values

* Moved wire-snapping logic to attack profile

* Missile flight dynamics tweaked

* Add a crosshair offset. The missile sits in this offset relative to the crosshair

* Add LOS checks. Fix bug where wire-cutting didnt work.

* Tweak explosive range for a kill radius of ~20m. Add fragmentation

* Add AI Flags

* Person in control of missile may not be the shooter

* Fix RPT spam on missile out of LOS. Tweak missile dynamics. Add wire break sound cue

* Fix bug where missile didn't go to a fake target in front of it when out of LOS

* Use a better, more generic way to calculate direction camera is facing

* Use ACE Macros for frag values. Get config entry with CBA

* Add Wiki entry

* Add new lines to wiki. Allow for SQF expressions in config for maxCorrectableDistance

* Add CPP code tag

* Fix wiki grammer error

* Re-convert back to CBA_fnc_getConfigEntry

* UAV Gunner support, cleanup

* Fix bug where SACLOS for launcher guided weapons was off

* Add the ability to define how far ahead of the missile the attack profile will seek toward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants