binding more then 1 weapon to a key, and model ?

Locked
Xenozx
Posts: 5
Joined: Wed Jan 18, 2006 7:04 am

binding more then 1 weapon to a key, and model ?

Post by Xenozx »

OK I am UT 2004 player and recently a few friends got me to play Q3. I like it not better then UT but I will play it w/ them here and there.

My question is in UT I have it set so when I scroll down on the mouse wheel it only switches between 2 weapons, those being flak and shock. WHen I scroll up it switches between Mini, link, assault. I was currious if there was a way to do this with Quake 3?

I basically just want to bind it so

Scroll up = Plasma and Machine gun
Scroll dowjn = Rockets, grenade
Scroll left = Rail
Scroll right = Shotty

Any way to do this?

Also I can force the "Slash" model through the CFG, but when I switch that name to "Yuriko" it does not work. I believe that skin was added w/ one of the patches is there any way to force the yuriko skin, and if so what am I doing wrong?
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

Try forcing it to "Slash/Yuriko" if Yuriko is a skin for the Slash model.

Regarding the key binds, you need to open your CFG and make a bind something like this:

bind x "vstr weaponset1"
set weapons1 "vstr gun5"
set gun5 "weapon 5;set weapons1 vstr gun4"
set gun4 "weapon 4;set weapons1 vstr gun5"

This would cause button X to switch between weapon 5 (RL) and weapon 4 (GL).

Adapt as needed. I think I got the vstr stuff right. You should find more config resources in the sticky threads.
"Maybe you have some bird ideas. Maybe that’s the best you can do."
― Terry A. Davis
Xenozx
Posts: 5
Joined: Wed Jan 18, 2006 7:04 am

Post by Xenozx »

Thanks I will try those, and update accordingly to help others :D
foralarx2k3
Posts: 306
Joined: Wed Feb 01, 2006 9:56 pm

Post by foralarx2k3 »

Hey Xenozx,

I've played both all U-Series and all Q-Series game versions. As a UT player you may recognise my name from either the hellcat or Unreal forums as I did a list of Keepers (maps) thread. Anyways, finding a config that is suitable has been difficult for me, but over the years I've developed this system, it's based on the alt fire idea. (ie: 1 key = two weaps).

movement:-

W,A,S,D = forward, strafe left, back, strafe right
x = show scores
c = crouch
space = walk
mouse 1 (left button) = fire
mouse 3 (middle button) = jump

weapons:-

mouse 2 (right button) = switch between rail and rocket
q = switch between lightning and machine gun
e, r (sometimes I miss the e) = switch between plasma and shotgun

left shift = prev weap

that's my basics. Here's the config script lines:-

bind w "+forward"
bind a "+moveleft"
bind d "+moveright"
bind s "+back"
bind MOUSE3 "+moveup"
bind SPACE "+speed"
bind c "+movedown"
bind shift "weapprev"
bind MOUSE1 "+attack"

bind y "messagemode2"
bind t "messagemode"
bind v "+button3"

// trueligthning
set cg_trueLightning "0.69"
// LG / MG Multiple-Weaponbind
set lg "weapon 2; weapon 6; set mglgweaps vstr mg"
set mg "weapon 6; weapon 2; set mglgweaps vstr lg"
set mglgweaps "vstr lg"
bind q "vstr mglgweaps"

// SG / PG Multiple-Weaponbind
set sg "weapon 8; weapon 3; set sgpgweaps vstr pg"
set pg "weapon 3; weapon 8; set sgpgweaps vstr sg"
set sgpgweaps "vstr sg"
bind e "vstr sgpgweaps"
bind r "vstr sgpgweaps"

// RL / RG Multiple-Weaponbind Script
set rl "weapon 7; weapon 5; set rlrgweaps vstr rg"
set rg "weapon 5; weapon 7; set rlrgweaps vstr rl"
set rlrgweaps "vstr rl"
bind MOUSE2 "vstr rlrgweaps"

now what you want to do really is create a new text file in your baseq3 folder and call it "autoexec.cfg" then add your lines into that text file. The autoexec.cfg is an "Automatic Executing File" that q3 recognises and runs all commands in it at start up, having already run the commands stored in the q3config, so the autoexec overides the q3config file. The thing to remember here is that the q3config is overwritten everything you exit Quake3 so you don't really want to add lines to that file for that very reason.

Feel free to give me a shout if you need any further assistance, and I hope you enjoy the games you have.

Regards

Fora.
Xenozx
Posts: 5
Joined: Wed Jan 18, 2006 7:04 am

Post by Xenozx »

Thanks for the info. I tried to use those vstrs but they wouldnt really work. I copied and pasted exactly and just changed the weapon #'s to fit my needs, and changed the bind key to my liking. I eventually gave up, but think I have a set of binds that does the trick.

I basically binded

Rail = mouse 2
shotgun = scroll right
LG = Scroll right
Rockets = scroll down
Plasma = scroll up
Machine gun = thumb button on mouse
Grenade LR = Tumb button on Nostromo

WASD to move, and Space to jump
e for rocket jump

Seems to do the trick for now. I still would prefer to bind two weapons to each key. Can I do it like shown below or am I doing something wrong?

// SG / PG Multiple-Weaponbind
set sg "weapon 8; weapon 6; weapon 2; set sgpgweaps vstr pg"
set pg "weapon 2; weapon 6; weapon 8; set sgpgweaps vstr sg"
set sgpgweaps "vstr sg"
bind MWHEELUP "vstr sgpgweaps"

// RL / RG Multiple-Weaponbind Script
set rl "weapon 5; weapon 4; set rlrgweaps vstr rg"
set rg "weapon 4; weapon 5; set rlrgweaps vstr rl"
set rlrgweaps "vstr rl"
bind MWHEELDOWN "vstr rlrgweaps"
bind Mouse2 "weapon 7"
bind N "weapon 3"
foralarx2k3
Posts: 306
Joined: Wed Feb 01, 2006 9:56 pm

Post by foralarx2k3 »

Hey Xenozx,

Got your pm, sorry .. been playing RA3 all night so this is the first chance I've had to check the forums... hence the delay in replying.

Ok, let's have a little lookie here:-

// SG / PG Multiple-Weaponbind
set sg "weapon 8; weapon 6; weapon 2; set sgpgweaps vstr pg"
set pg "weapon 2; weapon 6; weapon 8; set sgpgweaps vstr sg"
set sgpgweaps "vstr sg"
bind MWHEELUP "vstr sgpgweaps"

Your problem here is fairly simple to spot once you understand what this bind is doing and how it will work... let's step through it.

The first line creates a vstr called "sg" that is called from the vstr "sgpgweaps" which is bound to MWHEELUP (scroll mouse wheel towards the front of the mouse). What this line does is this, when you scroll one notch of the mouse wheel it selects weapon 8 - plasma gun (if you have it), then it selects weapon 6 - ligthning gun (if you have it), then it selects weapon 2 - machine gun (you always have this so it will always get this, regardless of it you have ammo). ...... the last thing it does is set the vstr "sgpgweaps" to call the second line vstr "pg".

On the next scroll notch of the mouse wheel the pg vstr is invoked. This one does this.... selects the machine gun (you always have this so it will select it), then it selects the ligthning gun (if you have it), then it selects the plasma gun (if you have it) and then sets the vstr "sgpgweaps" to call the first line vstr "sg" again and so forth.

So, say you had the lightning gun and the machine gun, the first scroll notch will give you the machine gun. The second scroll notch will give you the lightning gun.

I'm guessing here you want the mouse wheel to behave as follows:-

1 notch = mg
2 notches = lg
3 notches = pg
4 notches = back to mg

If that's the case then the script needs to look something like this:-

// LG / PG / MG Multiple-Weaponbind
set mwup1 "weapon 6; set mwupweaps vstr wmup2"
set mwup2 "weapon 8; set mwupweaps vstr wmup3"
set mwup3 "weapon 2; set mwupweaps vstr wmup1"
set mwupweaps "vstr mwup1"
bind MWHEELUP "vstr mwupweaps"

I think you'll probably get the gist from this post and be able to do the rest yourself, but please feel free to give me a shout if you get stuck.

Regards

Fora.
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post by FragaGeddon »

Here's one I made a long time ago.

Code: Select all

//+++++++++++++++++++++++
//+    Weapon Script    +
//+++++++++++++++++++++++
//
//---->Weapon Reset
set group1reset "set group2 vstr group2a;set group3 vstr group3a;set group4 vstr group4a"
set group2reset "set group1 vstr group1a;set group3 vstr group3a;set group4 vstr group4a"
set group3reset "set group1 vstr group1a;set group2 vstr group2a;set group4 vstr group4a"
set group4reset "set group1 vstr group1a;set group2 vstr group2a;set group3 vstr group3a"
set group5reset "set group1 vstr group1a;set group2 vstr group2a;set group3 vstr group3a;set group4 vstr group4a"
set group6reset "set group1 vstr group1a;set group2 vstr group2a;set group3 vstr group3a;set group4 vstr group4a"
//
//---->Weapon Grouping
//~~~~~~~~~~~~~~~~~~~~
//-->Gauntlet & BFG10K
set group1a "weapon 1;cg_drawcrosshair 8;set group1 vstr group1b;vstr group1reset;vstr gore1"
set group1b "weapon 9;cg_drawcrosshair 8;set group1 vstr group1a;vstr group1reset;vstr gore2"
//-->Lightning Gun & Plasma Gun
set group2a "weapon 6;cg_drawcrosshair 0;set group2 vstr group2b;vstr group2reset;vstr gore2"
set group2b "weapon 8;cg_drawcrosshair 8;set group2 vstr group2a;vstr group2reset;vstr gore3"
//-->Machine Gun & Shot Gun
set group3a "weapon 2;cg_drawcrosshair 8;set group3 vstr group3b;vstr group3reset;vstr gore3"
set group3b "weapon 3;cg_drawcrosshair 8;set group3 vstr group3a;vstr group3reset;vstr gore3"
//-->Rail Gun
set group4a "weapon 7;cg_drawcrosshair 1;set group4 vstr group4b;vstr group4reset;vstr gore0"
set group4b "weapon 7;cg_drawcrosshair 1;set group4 vstr group4a;vstr group4reset;vstr gore0"
//-->Grenade Launcher
set group5a "weapon 4;cg_drawcrosshair 8;vstr group5reset;vstr gore2;vstr railoff"
//-->Rocket Launcher
set group6a "weapon 5;cg_drawcrosshair 8;vstr group6reset;vstr gore3;vstr railoff"
//
//---->Initialization
set group1 vstr group1a;set group2 vstr group2a;set group3 vstr group3a;set group4 vstr group4a;set group5 vstr group5a;set group6 vstr group6a
//
//---->Blood & Guts Settings
set gore1 "com_blood 1;cg_gibs 1;cg_marks 1"
set gore2 "com_blood 1;cg_gibs 1;cg_marks 0"
set gore3 "com_blood 0;cg_gibs 1;cg_marks 0"
set gore4 "com_blood 0;cg_gibs 0;cg_marks 0"
Locked