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

Feature/cardboard #398

Open
wants to merge 21 commits into
base: Main
Choose a base branch
from
Open

Feature/cardboard #398

wants to merge 21 commits into from

Conversation

AdozenBABYdogs
Copy link
Contributor

@AdozenBABYdogs AdozenBABYdogs commented Mar 24, 2023

When merged this pull request will:
Additions:

  • HARM Missile Functionality to the 60 DAPs

    • HARM Missile Guidence
    • HARM Missile Model
    • HARM Missile Sounds
    • HARM Missile Hit Effect
  • More Bugs to Fix Later

Documentation to Use the AGM-88HL:

Point the Weapon at target and fire. The target must be beyond 2km for missile to track properly. Missile can scan for targets above where it was fired, up to 30° below the target

addons/uh60_weapons/config/cfgWeapons.hpp Outdated Show resolved Hide resolved
addons/uh60_weapons/functions/fnc_fired.sqf Outdated Show resolved Hide resolved
addons/uh60_weapons/functions/fnc_fired.sqf Outdated Show resolved Hide resolved
Comment on lines +24 to +29
if ((getPylonMagazines _vehicle # _index) == "PylonMissile_Missile_HARM_x1_HL") then {
if (_vehicle ammoOnPylon (_index + 1) == 0) then { _vehicle setPylonLoadout [(_index + 1), "", true]; /*systemChat "Reset Pylon"*/};
//This loop checks for which HARM was fired, and replaces the pylon with nothing. It removes the missile
};
_index = _index + 1; //python be like
Copy link
Member

Choose a reason for hiding this comment

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

why do you need to do this, arma automatically removes munitions from pylons when firing already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because arma decided that it didn't want to remove the pylon when it fired

Copy link
Member

Choose a reason for hiding this comment

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

that's because the pylons should not be removed. a pylon is a launch rail.
the missile model should only be set on the ammo, the pylon model should be a launch rail or nothing

addons/uh60_weapons/functions/fnc_fired.sqf Outdated Show resolved Hide resolved
addons/uh60_weapons/functions/fnc_fired.sqf Outdated Show resolved Hide resolved
addons/uh60_weapons/functions/fnc_fired.sqf Outdated Show resolved Hide resolved
@AdozenBABYdogs
Copy link
Contributor Author

Ready for merge

@AdozenBABYdogs
Copy link
Contributor Author

Re-ready for PR review. Tested yesterday, missiles track, hit and look pretty

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

Successfully merging this pull request may close these issues.

None yet

3 participants