#539 cl_weaponpreselect / cl_weaponhide does not work as expected (4 bugs here)

3.0
open
dimman
None
2
2013-12-03
2013-11-20
zapekanka
No

I use latest nightbuild ezQuake 2.2 alpha (build beb6063) Nov 18 2013, 06:03:28

the setup:
b_switch 7
w_switch 8
cl_weaponpreselect 3
cl_weaponhide 2
r_viewpreselgun 1

In non "deathmatch 1" games I expect these cl_weaponpreselect / cl_weaponhide equal to disabled (0) but I get something different:

Repro steps:

1) open qw, apply the settings (or load from config)
2) connect to any ffa server (I used Playground #0)
important: do not select any weapon before you take your first gun
3) take e.g RL (IT DOES NOT switch to RL!) --- BUG1
4) switch to RL (I use "impulse 7;weapon 7")
5) Fire until you're out of rockets,
Weapon is switched back to SG now you get "Not enough ammo" info (WHY? I don't want that message, I don't want preselect in FFA) --- BUG2
6a) pick some ROCKETS -> you're automatically switched back to RL (this is not like standard) --- BUG3
6b) If you pick rockets while firing (keeping mouse1 pressed) you will SEE the Rocked Launcher but continue firing with SG --- BUG4

Some of these bugs may also apply to other cl_weaponpreselect / cl_weaponhide values.

Discussion

  • dimman

    dimman - 2013-12-03

    I will look into this.

     
  • dimman

    dimman - 2013-12-03
    • assigned_to: dimmman
     
  • dimman

    dimman - 2013-12-03
    • Group: 2.2 --> 3.0
     
  • zapekanka

    zapekanka - 2013-12-03

    EDIT: something wrong was here
    the config is attached anyway

     
    Last edit: zapekanka 2013-12-04
  • zapekanka

    zapekanka - 2013-12-03

    P.S. the bug with autoswitching back to the selected gun when you pick ammo might be a feature, but this should be of course controlled with some parameter (e.g. a_switch 7) and by default should work like standard qw2.30