MantisBT - Zandronum
View Issue Details
0002865Zandronum[All Projects] Bugpublic2016-10-07 18:262018-09-30 22:00
unknownna 
Torr Samaho 
urgentmajoralways
closedfixed 
3.0-beta 
3.03.0 
0002865: PWO is broken in 3.0 when using switchonpickup alias
I was just casually testing some survival in the latest 3.0 build when I noticed something odd with the PWO. I had it set very basic, SSG above all other weapons yet it somehow kept making me pick up chainguns while having the SSG selected.

I investigated the issue further and noticed that I'm using an alias that prevents any weapon switch whenever I'm firing the currently selected weapon. For some reason the alias causes the PWO to fail in 3.0, and has you end up with switching over to every weapon you come across.
Name=+attack2
Command=+attack; switchonpickup 0
Name=-attack2
Command=-attack; switchonpickup 3
No tags attached.
Issue History
2016-10-07 18:26unknownnaNew Issue
2016-10-09 11:44Torr SamahoNote Added: 0015834
2016-10-09 11:45Torr SamahoAssigned To => Torr Samaho
2016-10-09 11:45Torr SamahoStatusnew => needs testing
2016-10-09 11:47Torr SamahoNote Edited: 0015834bug_revision_view_page.php?bugnote_id=15834#r9638
2016-10-09 11:48Torr SamahoNote Revision Dropped: 15834: 0009637
2016-10-09 17:55Torr SamahoTarget Version => 3.0
2016-10-09 19:08unknownnaNote Added: 0015853
2016-10-09 21:06unknownnaStatusneeds testing => resolved
2016-10-09 21:06unknownnaFixed in Version => 3.0
2016-10-09 21:06unknownnaResolutionopen => fixed
2018-09-30 22:00Blzut3Statusresolved => closed

Notes
(0015834)
Torr Samaho   
2016-10-09 11:44   
(edited on: 2016-10-09 11:47)
I noticed that switchonpickup was internally clamped to [0,2] instead of [0,3], so I'd guess PWO didn't work at all in 3.0.

Please check if this works any better.

(0015853)
unknownna   
2016-10-09 19:08   
The PWO seemingly worked well until I pressed +attack2. After pressing it once, the PWO started to fail. I could see that switchonpickup was set to 3 and also to 3 after pressing +attack2, but since it was internally clamped to [0,2] it naturally failed to work properly as you say.

Anyway, the binary fixes the issue. Good work.