Autoexec for weapons?


(Cory) #1

I already know there’s autoexecs for teams and classes (autoexec_allies/autoexec_axis/autoexec_medic/etc.) but I am wondering if there’s autoexecs for weapons.

The reason I need it is because I want different binds for when I’m engineer with an mp40, I want different binds than an engineer with a rifle nade. I know I can just bind toggle but I’d much rather have it be automated…

Thanks for any help!


(Indloon) #2

As I know,no there isn´t.
But you can try this one:
bind F5 “team r 3 3 38 ; exec dupstep/dupstep_misc/fieldops.cfg” // Axis
bind F6 “team b 3 4 37 ; exec dupstep/dupstep_misc/fieldops.cfg” // Allies
bind F7 “team r 4 3 38 ; exec dupstep/dupstep_misc/covertops.cfg” // Axis
bind F8 “team b 4 4 37 ; exec dupstep/dupstep_misc/covertops.cfg” // Allies

So,now make covertops.cfg,where you put things…etc.

There is another way:
autoexec_allies
unbind F5
bind F5 “b 3 4 37 ; exec dupstep/dupstep_misc/fieldops.cfg”

and in autoexec_axis
bind F5 r 3 3 38 ; exec dupstep/dupstep_misc/fieldops.cfg"

And in Field Ops cfg(example):

// Dupsteps Field Ops Settings and Binds

say_team ^>[ ^mF^oiel^mD O^ops ^>]
wait 10 ; play sound\misc\am_pkup.wav
wait 20 ; net_restart

// Field Ops Class Scripts by Dupstep
unbind F2
unbind F3
bind F2 “vstr classsay1”
bind F3 “vstr classsay2”

// Field Ops arty script
bind b “com_maxfps 111;+zoom;+attack;com_maxfps 125;-attack;-zoom;”

// Classvsays
set classsay1 “vsay_team Welcome ^/Giving ^oout ^/ammo^s<^0:^wD”
set classsay2 “vsay_team FireInTheHole ^?Watch out, ^/planes on the way^s<^0:^wD”

// Weapon settings
bind 5 “weaponbank 5;com_maxfps 125;m_pitch 0.015001;sensitivity 2.76”


(Cory) #3

I really do appreciate the reply but I already know how to make it so if I press a button, it changes my class and binds.

I would use that but the only downfall to it is that if you’re a medic and you have mouse4 set to switch to your knife and you want to be a sniper next time you spawn and you want mouse4 to zoom in (weapalt), you will still be a medic but your mouse4 would be weapalt so you can’t switch to knife (or do whatever it is your other binds are).

I guess I’ll have to do that or I can just make a toggle on another key.

The only thing I’m hesitant about is that I think there might actually be an autoexec per weapon. I played ET for a combined 3-4+ years and I’m just finding out about autoexec_TEAM and autoexec_CLASS now. :penguin:


(stealth6) #4

There isn’t and the other ones are mod dependant afaik