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

Magazine Weight Fix #1707

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

KheirFerrum
Copy link
Collaborator

Summary

SUMMARY: Bugfixes "Magazine weight was not being added to items with a magazine."

Purpose of change

Fixes #1677.

Describe the solution

Item weight code lacked a check for whether an item had a magazine, and thus did not add the relevant weight to the gun.

Describe alternatives you've considered

Ignore for another 2 months

Testing

Spawn M4A1, 10 round STANAG magazine and SIG 552. Record all weights, unload both bullets and magazines from all 3. Checked both guns without magazine, with empty magazine, and with full 10 round STANAG magazine. Confirmed numbers are as expected.

Additional context

@Coolthulhu Coolthulhu self-assigned this Jul 9, 2022
@Coolthulhu Coolthulhu merged commit b1b021f into cataclysmbnteam:upload Jul 11, 2022
@KheirFerrum KheirFerrum deleted the Magazine-weight-fix branch July 11, 2022 11:31
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.

Gun magazine's weight disappears when loaded into weapon.
2 participants