View Full Version : hud_weaponautoswitch not working correctly

10-05-2016, 04:40 AM
The hud_weaponautoswitch cvar isn't working correctly. When you spawn, the crowbar ends up being selected instead of a better weapon, even if the cvar is set to switch to better weapons.

How to reproduce:
Start stadium4

You should now spawn with a crowbar.

I debugged this once, and it looked like the server side setting was being wiped out and set to 0 (which disables auto switch) after the first time you've spawned. I couldn't figure out why, but i'm sure it can be found by setting a data breakpoint on the player's server side cached variable.

Silencer and Keen have both experienced this.

10-05-2016, 04:49 AM
There is a similar problem with mp_weaponstay 1 where game_player_equip won't give you the specified weapons more than once unless 15 seconds have passed. (per-player recollect cooldown)

12-05-2016, 01:30 AM
Especially annoying if you get revived while some fighting goes on, until you have chosen a weapon other than the cowbar you are dead again.