halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[HL25] lastinv skips held gun when new weapon is picked up

Open dagla opened this issue 3 years ago • 1 comments

In multiplayer build 9891 (possibly also in single player, harder to test)

Pressing the lastinv button (default: Q) expected functionality is to always switch to the last held weapon.

In case after player picks up a new weapon and cl_autowepswitch is set to 1, lastinv switches to the weapon held 1 weapon switch before the gun was picked up.

for example: Player spawns with glock in hand, switches to crowbar, then swithces back to glock. Now if a new weapon is picked up like mp5 and Q is pressed, player has a crowbar in hand, when it should be the glock. When Q is pressed again, it switches to the newly picked up mp5, it is ignoring the glock that was actually held in hand when new weapon was picked up.

dagla avatar Nov 23 '23 17:11 dagla

Another example of this not working well, if you spawn in, pick up a weapon (without switching to anything in your hand before), then lastinv does not do anything when pressed, the newly picked up weapon remains in hand.

dagla avatar Nov 24 '23 00:11 dagla