Page 1 of 1

bind x weapon 4

Posted: Mon Nov 24, 2008 6:33 pm
by Rawing
This is exactly what I don't like "/bind x weapon 4" or some other weapon. So I've replaced all those weapon 1, weapon 2, ... in ui_shared and ui_controls2. I can't find anything else like "weapon 6" but it simply doesn't work. I had to define new keys for all weapons (of course) for testing. I did it in the setup menu and all those buttons are now bound "railgun", "rocketlauncher" or something else. But everytime you press them, game says unknown cmd railgun. :mad: I been trying this and that, but I can't get it right...

Re: bind x weapon 4

Posted: Tue Nov 25, 2008 8:53 am
by ^misantropia^
The error message kinda gives it away: "weapon" is a command. Look up the commands[] structure in cgame/cg_consolecmds.c, then the CG_Weapon_f() function in cgame/cg_weapons.c.

Re: bind x weapon 4

Posted: Tue Nov 25, 2008 5:50 pm
by Rawing
okay, I'll look into it; although I don't have a clue about how to get this damn function to work without its numbers right now :cool:

Re: bind x weapon 4

Posted: Mon Dec 15, 2008 6:57 pm
by Rawing
solved - not the way I tried to do it, but it works.