Skip to content

Missileguidance - Minor code cleanup#11266

Merged
PabstMirror merged 4 commits intomisc-optimise-configPropertiesfrom
missileguidance-cleanup
Jan 30, 2026
Merged

Missileguidance - Minor code cleanup#11266
PabstMirror merged 4 commits intomisc-optimise-configPropertiesfrom
missileguidance-cleanup

Conversation

@johnb432
Copy link
Copy Markdown
Contributor

When merged this pull request will:

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

@johnb432 johnb432 added this to the 3.20.3 milestone Jan 29, 2026
@johnb432 johnb432 added the kind/cleanup Release Notes: **CHANGED:** label Jan 29, 2026
TRACE_4("enabled",_shooter,_ammo,_projectile,typeOf _shooter);
TRACE_4("enabled",_shooter,typeOf _projectile,_projectile,typeOf _shooter);

private _config = configFile >> "CfgAmmo" >> _ammo >> QUOTE(ADDON);
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.

clgp does some odd stuff and we need to keep the old way using _ammo
https://github.com/acemod/ACE3/blob/master/addons/missile_clgp/functions/fnc_submunition_ammoFired.sqf#L25-L28
calls this func with the first stage projectile but ammo set to the submunition (that actually gets the guidance)

@PabstMirror PabstMirror merged commit 6ecdfc0 into misc-optimise-configProperties Jan 30, 2026
3 checks passed
@PabstMirror PabstMirror deleted the missileguidance-cleanup branch January 30, 2026 17:19
PabstMirror pushed a commit that referenced this pull request Feb 1, 2026
* Replace configProperties wherever possible

* Update fnc_parseConfigForInjuries.sqf

* Update fnc_cycleAttackProfileKeyDown.sqf

* Update fnc_onFired.sqf

* Revert count change

* Update fnc_onFired.sqf

* Missileguidance - Minor code cleanup (#11266)

* Code cleanup

* Revert _ammo changes

* Update fnc_onFiredGetArgs.sqf

* Revert some changes

* Do cheaper check first

* Add config command test cases

* Use configClasses instead of configProperties wherever parent can't inherit subclasses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Release Notes: **CHANGED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants