PDA

View Full Version : Weaponbank


Blazin
03-26-2008, 01:10 PM
This is what I used for W:ET

I have tried to decode this into ETQW, but it doesn't work, does anyone know how to or give a example for 1 weapon?

//
// * Weaponbank
//
bind 1 "weaponbank 1;cg_drawgun 1;cg_fov 110;set sensitivity 0.33;bind MOUSE1 +attack;cg_crosshairsize 55"
bind 2 "weaponbank 2;cg_drawgun 0;cg_fov 105;set sensitivity 0.202;bind MOUSE1 +attack;cg_crosshairsize 60"
bind 3 "weaponbank 3;cg_drawgun 0;cg_fov 105;set sensitivity 0.202;bind MOUSE1 +attack;cg_crosshairsize 60"
bind 4 "weaponbank 4;cg_drawgun 1;cg_fov 110;set sensitivity 0.33;bind MOUSE1 +attack;cg_crosshairsize 55"
bind 5 "weaponbank 5;cg_drawgun 1;cg_fov 110;set sensitivity 0.33;bind MOUSE1 +attack;cg_crosshairsize 55"
bind 6 "weaponbank 6;cg_drawgun 1;cg_fov 110;set sensitivity 0.33;bind MOUSE1 +attack;cg_crosshairsize 55"
bind 7 "weaponbank 7;cg_drawgun 1;cg_fov 110;set sensitivity 0.33;bind MOUSE1 +attack;cg_crosshairsize 55"

Verticae
03-26-2008, 01:23 PM
The weapon selection commands start with an underscore in ETQW, and you can't chain stuff to them, sadly.

Blazin
03-26-2008, 01:27 PM
I know lol, the version I made in ETQW coding style isn't here anyone, I removed it cos it didnt work. And it's a big bum you can't chain em. Isn't there any other way to achieve the same as this?:( :mad: :O

Szakalot
03-26-2008, 01:32 PM
there is no way to script that, its not a bug, its an anticheat policy of SD so u would not achieve things like a recoil script.

Blazin
03-26-2008, 03:40 PM
Here it is :

bind "1" "_weapon0; seta sensitivity 0.33 ;seta g_fov 110"
bind "2" "_weapon1; seta sensitivity 0.202 ;seta g_fov 105"
bind "3" "_weapon2; seta sensitivity 0.202 ;seta g_fov 105"
bind "4" "_weapon3; seta sensitivity 0.33 ;seta g_fov 110"
bind "5" "_weapon4; seta sensitivity 0.33 ;seta g_fov 110"
bind "6" "_weapon5; seta sensitivity 0.33 ;seta g_fov 110"
bind "7" "useWeapon weapon_binocs" "" "default"

Ifurita
03-26-2008, 07:01 PM
Does that actually work?

Blazin
03-26-2008, 07:08 PM
Nope, it doesn't. I wish it did :):dance:

Nail
03-26-2008, 07:20 PM
can you set sensitivity by class ?

Blazin
03-26-2008, 08:14 PM
can't you do like:

bind "3" "_weapon2"
bind "3" "seta sensitivity 0.202;seta g_fov 105"

or

bind "3" "_weapon2"
bind "3" "set sensitivity 0.202
bind "3" "set g_fov 105"

gunsmoke
03-26-2008, 09:18 PM
that will just bind 3 to the last bound command ... unfortunately. I miss hiding my gun and showing grenades so i don't blow myself up in W:ET

DugDanger
03-26-2008, 09:45 PM
that will just bind 3 to the last bound command ... unfortunately. I miss hiding my gun and showing grenades so i don't blow myself up in W:ET


I think this might of been fixed in pie mod????

http://www.collectivecomputing.com/~reed/etqw/pie/docs/

And maybe so in others..
Does anyone have a server that runs something like this???
I would really like 2 know because the HUD scale looks ace.

Burnzy
03-27-2008, 02:03 AM
can you set sensitivity by class ?

Well, I never tried it, but it should be possible if you have a classcript and you add ;sensitivity "x"

so prolly something like this:

bind "LEFTARROW" "clientTeam Strogg; clientClass Aggressor 0;wait;sayTeam '^7'Respawning as an'^m'[Aggressor]'^7'with a '^d'Lacerator'^7'.;wait;seta sensitivity 1.8" "" "aggressor"

Two things though, im not sure if seta is needed and second, the only problem with this its that its going to change your sensitivity at the moment that you decide to change class, so if exemple you're alive and wanna go aggressor with lacerator next spawn, so you click your key, and your now tech and your tech sensitivity is exemple 2.5, its going to slow down right away. If you've also bound kill to that key, this aint a problem anymore.

EDIT: So that means that you should be able to do the same kind of stuff with g_fov or whichever cmd you want to put for one class only.

Try it and tell me some news.

Blazin
03-27-2008, 05:08 PM
I just want it per weaponbank though, not per class :)

gunsmoke
03-27-2008, 08:40 PM
you could have a toggle button set up with several different sensitivities and switch it when you switch weapons...

Burnzy
03-27-2008, 09:43 PM
I just want it per weaponbank though, not per class :)

I know blazin, but nail was asking by class. But yeah, the way your saying is actualy impossible sadly... Id like to have some fov script like in ET :) (changes fov while shooting)

PuP
03-27-2008, 10:25 PM
can't be done. the code you quote is reyalP's. i posted the same question several months ago, and he confirmed that it's not possible.

GENETX
03-28-2008, 04:40 PM
Well I guess it is possible with multiple CFG's at least.

Like:
bind x exec gun.cfg

Gun.cfg

_weapon1
cg_fov "110"
...
...


But since you also have the "doubleclick" to activate some guns my script may be interresting too, binding all weapons to just one key like in W:ET and all other games:
http://community.enemyterritory.com/forums/showpost.php?p=324009&postcount=248

reyalp
03-28-2008, 09:28 PM
Well I guess it is possible with multiple CFG's at least.

You guess, as in, you haven't tried it ?

Burnzy
03-29-2008, 08:14 PM
Well I guess it is possible with multiple CFG's at least.

Like:
bind x exec gun.cfg

Gun.cfg

_weapon1
cg_fov "110"
...
...


But since you also have the "doubleclick" to activate some guns my script may be interresting too, binding all weapons to just one key like in W:ET and all other games:
http://community.enemyterritory.com/forums/showpost.php?p=324009&postcount=248

Does it actualy work?