Bug #1203

Random switching of weapons

Added by Timothy 3 months ago. Updated about 1 month ago.

Status:Fixed% Done:

100%

Priority:UrgentSpent time:-
Assignee:Aranud
Category:Mod CGAME
Target version:2.77
OS: Arch:

Description

When a player picks up ammo or a gun, sometimes the weapon is switched without the intention to do so. Haven’t been able to figure out the exact conditions for this to happen.

Associated revisions

Revision e1ae3877
Added by Aranud 3 months ago

game: fix overwriting of ammo count instead of add at spawning

And make generic misc weapon add on upgrade skill

Revision 7cf651b7
Added by Aranud 3 months ago

game: fix throwing nade when leaning

Revision dea351a6
Added by Aranud 3 months ago

cgame: fix weapon alt reloads was deleted by accident ...

Revision b0ec96d0
Added by Aranud 3 months ago

mod: simplify satchel ammo usage

Revision 0c6526c9
Added by Aranud about 1 month ago

cgame: possible fix random switching of weapons, refs #1203

History

#1 Updated by IR4T4 3 months ago

  • Related to Bug #804: Fix restrictions added

#2 Updated by Spyhawk 3 months ago

  • Priority changed from Normal to Urgent

#3 Updated by Spyhawk 3 months ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 50

The issue doesn’t seem to appear again on the dev server running latest master. Some minor changes were done, maybe they fixed the issue.

#4 Updated by IR4T4 3 months ago

We should restrict weapons and have real players on the server to test this issue. The behaviour when bots are connected is different related to weapon restrictions. There is a line in the code where bots are able to select a weapon even when this is restricted (to avoid an endless loop).

#5 Updated by Spyhawk 2 months ago

Throwing nade while leaned seem to still have some issues:

Bystry: throwing grenades while leaning is still bugged
Bystry: nope, sometimes you can’t start timing a nade while leaned
Bystry: sometimes it works though
Bystry: sometimes when i try to start timing a nade while leaned it switches back to smg

#6 Updated by Spyhawk about 1 month ago

  • Status changed from Feedback to Fixed
  • Assignee set to Aranud
  • % Done changed from 50 to 100

#7 Updated by Spyhawk 26 days ago

  • Related to deleted (Bug #804: Fix restrictions)

Also available in: Atom PDF