lastinv bind doesn't work with cigarette
Steps to reproduce:
- Install Addon
- Pull out some other SWEP
- Switch to cig SWEP
- Press key bound to
lastinv
(or enterlastinv
in consone) - We do not change back to the previous gun
It seems TTT has a file gamemode/cl_wepswitch.lua
with the function QuickSlot()
that runs the lastinv
console command.
I don't know why the cigarette would block switching to another weapon. Maybe something to do with the SWEP:Holster()
code?
Upon further inspection it appears SWEP:Holster()
is called when pressing a number key -> clicking and when TTT fast weapon switching is enabled, but lastinv
still does not function.
Even more perplexing is that lastinv
works once in a blue moon, but I'm not sure what causes it to function.