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

Allow debug menu to directly spawn irremovable item mods #2746

Conversation

KheirFerrum
Copy link
Collaborator

@KheirFerrum KheirFerrum commented May 1, 2023

Summary

SUMMARY: Bugfixes "Allow debug menu to directly spawn irremovable item mods"

Purpose of change

Requiring people to debug spawn irremovable item/gun mods like conversion kits via map editor is unintuitive and annoying.

Describe the solution

Removes that consideration in i_add_or_drop(). Instead the check is done directly on mod removal. Also updates the wish function for non-count_by_charges items to be slightly more efficient.

Describe alternatives you've considered

Testing

Spawn conversion mods without issue. Still can't uninstall irremovable mods.

Additional context

Game doesn't even allow you to try to uninstall irremovable mods, so this seems somewhat extraneous.

Can now spawn irremovable mods directly onto the player via debug menu.

Streamline wish for non-count_by_charges()
@github-actions github-actions bot added the src PR changes related to source code. label May 1, 2023
@KheirFerrum KheirFerrum changed the title Update wish and i_add_or_drop Allow debug menu to directly spawn irremovable gunmods May 1, 2023
@KheirFerrum KheirFerrum changed the title Allow debug menu to directly spawn irremovable gunmods Allow debug menu to directly spawn irremovable item mods May 2, 2023
Copy link
Member

@scarf005 scarf005 left a comment

Choose a reason for hiding this comment

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

image
image

  1. spawned shortened barrel from debug panel
  2. successfully installed it
  3. it was not possible to remove gunmod shortened barrel from sawn-off M4A1

@scarf005 scarf005 merged commit d37780b into cataclysmbnteam:upload May 3, 2023
@KheirFerrum KheirFerrum deleted the Allow-wishing-irremovable-gunmods branch May 3, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src PR changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants