halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[Engine] Num-Lock, keypad numbers and SHIFT.

Open MPNumB opened this issue 13 years ago • 0 comments

This is a bit complicated issue, but let me try to explain. If Num-Lock is enabled, and you are holding shift... Pressing and holding any keypad number key will release SHIFT until you release the number key.

CS example why it can be bad:

alias rifle_power1 "ak47;m4a1;echo RiflePower1;speak fvox/weapon_pickup"
alias rifle_power2 "galil;famas;echo RiflePower2;speak fvox/weapon_pickup"
alias rifle_power rifle_power1
alias +walk "+speed;alias rifle_power rifle_power2"
alias -walk "-speed;alias rifle_power rifle_power1"
bind KP_PGUP rifle_power
bind SHIFT +walk

This method will buy ak47 or m4a1 by pressing keypad number 9, but if you are holding SHIFT as well, it should buy galil or famas. Well, problem is, that if Num-Lock is enabled, it will buy ak47 or m4a1 no matter if you are holding SHIFT or not.

Extra info: It's an old issue, what what was in the game even before the fix when Num-Lock was also registered as PAUSE key.

Side note: Keypad numbers seem to loop if being hold, regardless of Num-Lock being enabled or disabled (which should and make no difference anyway). Point is, should they loop at all?

MPNumB avatar Apr 13 '13 07:04 MPNumB