hey guys, need some help :)

Locked
nix0rs
Posts: 3
Joined: Sat Feb 09, 2008 11:15 pm

hey guys, need some help :)

Post by nix0rs »

hey ive come here all the way from ut99 community, i installed quake to start playing it again, last time i played it was a while ago!
i have a question which answer i looked for in the beginners guide and forum and couldnt find, guess i didnt look deep enough but im sure this has been asked before.
anyways here is the deal i was wondering if it was posible to bind multiple guns to 1 key, in ut you can for example bind gun1 and gun 2 to one key so that you can switch between those guns just by pressing one key. can this be done in quake 3? if not then how do you atleast bind a single gun?
corncobman
Posts: 304
Joined: Fri Aug 08, 2003 7:00 am

Re: hey guys, need some help :)

Post by corncobman »

Yes

create a text file, and put in it

set weap1 "weapon 2; bind x vstr weap2"
set weap2 "weapon 3; bind x vstr weap1"
bind x vstr weap1

for example to switch between the machinegun and shotgun every time you press the x key.

You change the extension of the text file to .cfg and exec it in game by typing

/exec name-of-file

or create a .cfg file called autoexec in the baseq3 folder and in it put

exec name-of-file
Last edited by corncobman on Sun Feb 10, 2008 5:07 am, edited 1 time in total.
-It is not the fall that kills you. It's the sudden stop at the end. (Douglas Adams)-

[url=http://www.violationentertainment.com/misc/ccm]-An eyeful a day is bloody fantastic!-[/url]
nix0rs
Posts: 3
Joined: Sat Feb 09, 2008 11:15 pm

Re: hey guys, need some help :)

Post by nix0rs »

i tried and i got an error ingame saying Cbuf_InsertText overflowed :/

set weap1 "weapon 2; vstr weap2"
set weap2 "weapon 3; vstr weap1"
bind c vstr weap1

set weap2 "weapon 7; vstr weap3"
set weap3 "weapon 5; vstr weap2"
bind x vstr weap2

set weap3 "weapon 6; vstr weap4"
set weap4 "weapon 8; vstr weap3"
bind z vstr weap2
corncobman
Posts: 304
Joined: Fri Aug 08, 2003 7:00 am

Re: hey guys, need some help :)

Post by corncobman »

You're getting that message because they're going in an infinite loop. You should have different numbers for each set. I also did it wrong (corrected above post):

set weap1 "weapon 2; bind c vstr weap2"
set weap2 "weapon 3; bind c vstr weap1"
bind c vstr weap1

set weap3 "weapon 7; bind x vstr weap4"
set weap4 "weapon 5; bind x vstr weap3"
bind x vstr weap3

set weap5 "weapon 6; bind z vstr weap6"
set weap6 "weapon 8; bind z vstr weap5"
bind z vstr weap5
-It is not the fall that kills you. It's the sudden stop at the end. (Douglas Adams)-

[url=http://www.violationentertainment.com/misc/ccm]-An eyeful a day is bloody fantastic!-[/url]
nix0rs
Posts: 3
Joined: Sat Feb 09, 2008 11:15 pm

Re: hey guys, need some help :)

Post by nix0rs »

works awesome! thanks a lot :D
edit: exec command turned out to work only with .cfg at the end
Locked