bind x weapon 4

Locked
Rawing
Posts: 107
Joined: Tue Oct 23, 2007 1:40 pm

bind x weapon 4

Post 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...
[color=#FF0000]/callvote kick all_enemies[/color]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: bind x weapon 4

Post 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.
Rawing
Posts: 107
Joined: Tue Oct 23, 2007 1:40 pm

Re: bind x weapon 4

Post 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:
[color=#FF0000]/callvote kick all_enemies[/color]
Rawing
Posts: 107
Joined: Tue Oct 23, 2007 1:40 pm

Re: bind x weapon 4

Post by Rawing »

solved - not the way I tried to do it, but it works.
[color=#FF0000]/callvote kick all_enemies[/color]
Locked