Zandronum Chat on our Discord Server Get the latest version: 3.2.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004564Zandronum[All Projects] Bugpublic2025-09-27 11:512025-10-24 16:52
ReporterFused 
Assigned To 
PriorityhighSeverityminorReproducibilityrandom
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004564: Players with +NOMORPHLIMITATIONS randomly have weapons taken on map change.
DescriptionThe flag seems to have a bug where weapons do not persist. This seems semi-random but I personally have it persistently take the rocketlauncher when it does trigger.

During ZH2 testing, the super shotgun and jacksgun were randomly taken. This does not happen every time.

Happens both online and offline.
Steps To ReproduceOpen pk3s with Doom 2.
Puke 2 to give weapons.
Puke 3 to change map.

Weapons given: shotgun, chaingun, rocketlauncher
On map change, I personally never had the rocketlauncher anymore.
Attached Fileszip file icon MorphWeaponRemovalBug.zip [^] (1,698 bytes) 2025-09-27 11:51

- Relationships

-  Notes
User avatar (0024591)
Ru5tK1ng (updater)
2025-10-24 03:22
edited on: 2025-10-24 03:45

After some debugging, turns out this issue has nothing to do with level changes or +NOMORPHLIMITATIONS. I found the cause of why weapons disappear:

bool correctweapon = !!(player->MorphStyle & MORPH_LOSEACTUALWEAPON);

As per the ZDOOM wiki, that flag basically causes an unmorphing player to lose a weapon they obtained after they first morphed. Without it set, the engine just takes away whatever weapon was selected when unmorphing began. DECORATE cannot set MorphStyle flags but ZScript added the ability to.

I'm not sure what the best solution for this is. I will submit what I think makes the most sense currently given we don't have access to MorphStyle.

Edit: Turns out you set the MorphStyle via the morph power up definition.

User avatar (0024592)
Ru5tK1ng (updater)
2025-10-24 03:51

Should be fixed with this:'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/345 [^]'
User avatar (0024593)
Ru5tK1ng (updater)
2025-10-24 16:52

Closing:'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/345#note_489320 [^]'

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2025-09-27 11:51 Fused New Issue
2025-09-27 11:51 Fused File Added: MorphWeaponRemovalBug.zip
2025-10-24 03:22 Ru5tK1ng Note Added: 0024591
2025-10-24 03:45 Ru5tK1ng Note Edited: 0024591 View Revisions
2025-10-24 03:51 Ru5tK1ng Note Added: 0024592
2025-10-24 03:51 Ru5tK1ng Status new => needs review
2025-10-24 16:52 Ru5tK1ng Note Added: 0024593
2025-10-24 16:52 Ru5tK1ng Status needs review => closed
2025-10-24 16:52 Ru5tK1ng Resolution open => no change required






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker