Skip to content

Missile Defense - New Component - #10965

Open
BrettMayson wants to merge 22 commits into
acemod:masterfrom
BrettMayson:missile_defense
Open

Missile Defense - New Component#10965
BrettMayson wants to merge 22 commits into
acemod:masterfrom
BrettMayson:missile_defense

Conversation

@BrettMayson

@BrettMayson BrettMayson commented Jun 17, 2025

Copy link
Copy Markdown
Member

When merged this pull request will:

https://www.youtube.com/watch?v=H-JSDWOMnXY

This meets my needs and if big changes are wanted someone will have to take over. I still didn't use a CBA state machine just because I wanted to do this quick and I don't know them.

Could maybe use some additional customization and functionality (specifying projectile classes to intercept, only fire on projectiles that will hit in a certain area?)

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}.

Comment thread .vscode/settings.json Outdated

@TheCandianVendingMachine TheCandianVendingMachine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

initial pass, not super thorough. I'm going to close the other PR, I like this more in every way (especially naming given recent events...)

Comment thread addons/missile_defense/CfgEventHandlers.hpp Outdated
Comment thread addons/missile_defense/XEH_preInit.sqf Outdated
Comment thread addons/missile_defense/CfgEventHandlers.hpp Outdated
Comment thread addons/missile_defense/XEH_preInit.sqf Outdated
Comment thread addons/missile_defense/XEH_preInit.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_systemPFH.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_interceptorPFH.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_interceptorPFH.sqf
Comment thread addons/missile_defense/functions/fnc_registerLauncher.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_systemPFH.sqf Outdated
Comment thread addons/missile_defense/XEH_preInit.sqf
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_registerTracker.sqf Outdated
Comment thread addons/missile_defense/initSettings.inc.sqf

@SpicyBagpipes SpicyBagpipes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm daft and couldn't figure out how to PR the branch on GitHub desktop so have a review instead

Comment thread addons/missile_defense/functions/fnc_interceptorPFH.sqf
Comment thread addons/missile_defense/functions/fnc_interceptorPFH.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_interceptorPFH.sqf Outdated
Co-Authored-By: SpicyBagpipes <spicybagpipes@gmail.com>
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_createSystem.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_systemPFH.sqf Outdated
Comment thread addons/missile_defense/XEH_preInitClient.sqf Outdated
Comment thread addons/missile_defense/XEH_preInitClient.sqf Outdated
Comment thread addons/missile_defense/functions/fnc_registerLauncher.sqf
Comment thread addons/missile_defense/functions/fnc_systemPFH.sqf Outdated
_launcher setVariable [QGVAR(state), LAUNCH_STATE_COOLDOWN];
_launcher setVariable [QGVAR(lastLaunchTime), CBA_missionTime];
private _turret = [_launcher, (crew _launcher) select 0] call CBA_fnc_turretPath;
[_launcher, _launcher currentWeaponTurret _turret] call BIS_fnc_fire;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this func gave me a lot of trouble
[q1,"ace_missile_manpad_rim116"] call bis_fnc_fire seems to have no effect sometimes
forceWeaponFire seemed to be more reliable but we'd also need to handle locality issues

BrettMayson and others added 3 commits July 15, 2026 04:41
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
@@ -0,0 +1,3 @@
#include "script_component.hpp"

GVAR(destroyRadius) = 20;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems to be used in QGVAR(destroyProjectile) which is global
so should just be in XEH_preInit or will be undefined on dedicated, (I think)

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.

6 participants