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

add setting to disable disposable launchers #1125

Merged
merged 8 commits into from
May 1, 2019
Merged

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Apr 28, 2019

When merged this pull request will:

  • add setting to disable disposable launchers
  • only if enabled (default) will disposable launcher be replaced with used tube after firing
  • only if enabled will disposable launcher magazines in cargo be replaced with loaded disposable launchers
  • if disabled, disposable launchers can be reloaded
  • tooltips for auto-drop-used-launcher setting

@commy2 commy2 added this to the 3.11 milestone Apr 28, 2019
@@ -20,6 +20,8 @@ Author:
commy2
---------------------------------------------------------------------------- */

if (!GVAR(replaceDisposableLauncher)) exitWith {};
Copy link
Contributor

Choose a reason for hiding this comment

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

This runs before Settings Initialized
might need to use

["CBA_settingsInitialized", {
    ["All", "Init", FUNC(replaceMagazineCargo), nil, nil, true] call CBA_fnc_addClassEventHandler;
}] call CBA_fnc_addEventHandler;

@commy2 commy2 merged commit eb7228f into master May 1, 2019
@commy2 commy2 deleted the disposable-setting branch May 1, 2019 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants