• Getting bound keys- IN_KEYs are inadequate
    6 replies, posted
I'm working on a gamemode at the moment, and I wish to use the flashlight key to drop the player's active weapon. The issue I have is that half of the IN_KEYs don't actually correspond to any of the keys you're able to bind from the options menu. I don't want to use input.IsKeyDown(), as I want the keys to be rebindable. I'm hoping there's a way to access keys like "Spare 1" or "Gravity Gun". I'm using [url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexa077.html]this[/url] for reference, and it seems to be accurate so far as I can tell. Is there a way to get other keys, or will I have to compromise and use the walk key or something?
have you tried using [url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4d65.html]Gamemode.PlayerBindPress[/url]
Thanks! That works perfectly. The example given happens to be exactly what I wanted, but is there a list of binds anywhere? I wouldn't have expected "impulse 100" to toggle the flashlight.
try checking the options and use "find" to search stuff in the console for example "find inv" should get you some concommands for weapon switching (and all sorts of other uselsess crap)
or just type bind f in console impulse 101 is for spraying i believe
[QUOTE=skar;37666588]impulse 101 is for spraying i believe[/QUOTE] That's impulse 201 Impulse 101 is a cheat for weapons
[QUOTE=my_hat_stinks;37667116]That's impulse 201 Impulse 101 is a cheat for weapons[/QUOTE] go away
Sorry, you need to Log In to post a reply to this thread.