Bug Tracker – Bug 1286

never switch enabled not working with first sg/plasma pickup

Last modified: 2020-04-14 13:41:31 UTC
Bug 1286 - never switch enabled not working with first sg/plasma pickup
Summary: never switch enabled not working with first sg/plasma pickup
Status: NEW
Alias: None
Product: Odamex
Classification: Unclassified
Component: Client (show other bugs)
Version: 0.8.x
Hardware: All Other
: P5 normal
Assignee: Odamex Bug Reporter
URL:
Depends on:
Blocks:
 
Reported: 2019-07-20 19:13 UTC by Nick
Modified: 2020-04-14 13:41 UTC (History)
3 users (show)

See Also:

Attachments

Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2019-07-20 19:13:31 UTC
With weapon preferences set to never switch, if you pick up the shotgun or plasma rifle as your first weapon you will switch.
Comment 1 Maëllig Desmottes 2019-07-25 13:10:02 UTC
Have you found a way to reproduce this problem ?
Comment 2 HeX_Vulture 2019-12-22 19:03:43 UTC
I also could not reproduce this error. I joined a doom 2 deathmatch server with "switch on pickup: never" set and tried to run over every gun and never switched from the pistol. I tried in single player and online. The only time I switched is if the server enforced doom 2 weapon switch behavior, which is identical to "switch on pickup: always"
Comment 3 Nick 2020-04-14 13:41:31 UTC
This issue only occurred online. This is because of an ordering difference online vs single player exposing a bug with the ammo pickup code. Vanilla doom has checks to switch weapons when you are on pistol and you pickup up shells / cell ammo causing the problem.

Fixed in this PR for 0.9:
https://github.com/odamex/odamex/pull/145