Skip to content

Persist weapon fire mode & grenade launcher data#440

Merged
themrdemonized merged 3 commits intothemrdemonized:prfrom
Tosox:weapon-states-fix
Feb 28, 2026
Merged

Persist weapon fire mode & grenade launcher data#440
themrdemonized merged 3 commits intothemrdemonized:prfrom
Tosox:weapon-states-fix

Conversation

@Tosox
Copy link
Contributor

@Tosox Tosox commented Feb 24, 2026

Related to issue #401

@damoldavskiy
Copy link
Contributor

Just wanted to say, a new attachment system is being worked on, so at some point scope attaching/detaching won't cause weapon respawning and all script-side logic related to it is going to become obsolete. I'd suggest to wait, or at least limit the fix to sensitive state parameters, like loaded shell in GL.

@Tosox
Copy link
Contributor Author

Tosox commented Feb 25, 2026

Thanks for pointing this out, but yes, I am aware that after we get the new attachment system this will be barely relevant anymore. But it will still fix alife_clone_weapon calls in the future, when for example addons use this function.

@Tosox Tosox marked this pull request as ready for review February 27, 2026 19:40
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022-wpo to pr February 28, 2026 00:30
@themrdemonized themrdemonized merged commit adfa7a5 into themrdemonized:pr Feb 28, 2026
17 of 18 checks passed
@Tosox Tosox deleted the weapon-states-fix branch March 1, 2026 11:19
themrdemonized added a commit that referenced this pull request Mar 1, 2026
This reverts commit adfa7a5, reversing
changes made to b4fad0d.
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.

3 participants