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

Update fn_weaponShopMags to get all available Ammo #627

Open
wants to merge 4 commits into
base: v5.X.X
Choose a base branch
from

Conversation

Blauschimmel
Copy link
Contributor

@Blauschimmel Blauschimmel commented Mar 14, 2020

Didn't make an issue yet, but as you guys can see, this is a rework of that file, now also inculding all muzzles, meaning that all kinds of shotguns and grenade launchers, even from other modpack are included now. Tested and working!

Resolves #.

Changes proposed in this pull request:

  • I have tested my changes and corrected any errors found

Blauschimmel and others added 4 commits March 14, 2020 20:09
The current version is a hotfix I suggested a while ago. As I just realized, bohemia changed several config entries, so I came up with a way to cover all "muzzles" (all underbarrel weapons) and as using the magazineWell entries, I'm now able to adress all crossover ammo from other mods etc. I'm about to test it asap.
Copy link
Member

@DomT602 DomT602 left a comment

Choose a reason for hiding this comment

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

Hi @Blauschimmel, thanks for the PR, please could you update your PR to the current standards of the framework, we seem to have gone backwards in some areas such as usage of private, and counting arrays instead of checking for blank etc. Also the framework utilises 4 spaces instead of tabs, hence why it failed validation.

@Blauschimmel
Copy link
Contributor Author

Blauschimmel commented Mar 28, 2020

@DomT602 What do you mean by checking for blank and no usage of private? I didn't work on Altis Life for quite a while now so what am I missing out?

@DomT602
Copy link
Member

DomT602 commented Mar 28, 2020

@DomT602 What do you mean by checking for blank and no usage of private? I didn't work on Altis Life for quite a while now so what am I missing out?

Hi @Blauschimmel, if you look at what was there previously you can see the usage of private as a Keyword (negligble performance impact) compared to the old style array. We were also moving away from count _muzzles > 0 as !(_muzzles isEqualTo []) is proven to be better.

@blackfisch
Copy link
Contributor

For file styling - try to look for an editor config-plugin for your text editor. That way you don't have to bother about spaces instead of tabs and stuff like that, cause the repo includes an editor config file

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.

4 participants