by Jukki » Wed Apr 27, 2011 4:15 pm
Actualy i have a nice litle piece of code done in qc wich uses aliases and impulses to check holding and key press and key releases. I also made it support doble tapping. So in my game i have hand grenades when you press the throw it starts throwing. If a value HOLDING Is true (set true when key down impulse [+alias] is pressed and false when key up [-alias]) it will hold the nade and if you release the button it throws it. If you quickly double tap it. It will chabge grenade type then. I would give the code but i dont have acces to computer atm. I hope i still gved you basic idea how to do it.