dwarfed centipede
08-04-2007, 10:04 PM
Iv tried a lot of stuff now. I want my mouse4 button to switch back and forth from _weapon1 and _weapon2. The "alias" command doesnt work and vstr doesnt work. Anyone know how I can get a .cfg file to actually exec something?
//autoexec.cfg file
bind mouse4 "exec nextweap.cfg"
//nextweap.cfg file
bind mouse4 _weapon1
vstr mouse4
bind mouse4 "exec nextweap2.cfg"
//nextweap2.cfg file
bind mouse4 "_weapon2"
vstr mouse4
bind mouse4 "exec nextweap.cfg"
If possible, anyone know how to put all these in my autoexec.cfg file? I keep getting error messages when I tried this:
set nextweap "bind mouse4 _weapon1; vstr mouse4; bind mouse4 $nextweap2"
set nextweap2 "bind mouse4 _weapon2; vstr mouse4; bind mouse4 $nextweap"
bind mouse4 $nextweap
//autoexec.cfg file
bind mouse4 "exec nextweap.cfg"
//nextweap.cfg file
bind mouse4 _weapon1
vstr mouse4
bind mouse4 "exec nextweap2.cfg"
//nextweap2.cfg file
bind mouse4 "_weapon2"
vstr mouse4
bind mouse4 "exec nextweap.cfg"
If possible, anyone know how to put all these in my autoexec.cfg file? I keep getting error messages when I tried this:
set nextweap "bind mouse4 _weapon1; vstr mouse4; bind mouse4 $nextweap2"
set nextweap2 "bind mouse4 _weapon2; vstr mouse4; bind mouse4 $nextweap"
bind mouse4 $nextweap