config help

Can anyone help me with this:
I used to have these few lines in my config ( my class selector )
As you can see i had a separate cfg per class to change a few settings like a different fov for panzer etc. For some reason these separate scripts won't exec anymore. Anyone an idea what is the correct command?

// Classcript

bind F5 "vstr medic"
bind F4 "vstr engi"
bind F6 "vstr fdop"
bind F7 "vstr sten"
bind F8 "vstr panz"
bind F9 "vstr rifle"
bind F12 "vstr sniper"

set engi "class e 1; echo ^g>> ^7engi;exec engi.cfg"
set rifle "class e 2; echo ^1>> ^7rifler;exec rifle.cfg"
set medic "class m ; echo ^2>> ^7medic;exec medic.cfg"
set fdop "class f ; echo ^3>> ^7fops;exec fops.cfg"
set sten "class c 1; echo ^5>> ^7covops;exec cvops.cfg"
set panz "class s 4; echo ^6>> ^7panzer;exec soldier.cfg"
set sniper "class c 3; echo ^9>> ^7covops;exec sniper.cfg"
Comments
9
just create a separate .cfg file
autoexec_medic
autoexec_engineer etc
could be simple as needing to write seta instead of set.
you don't need vstrs at all tbh, just bind it like you would anything else

bind x "class x; echo x; exec x"

but imo it's dumb to change your class and exec that class' config with the same key (or have class-specific configs at all for that matter) since you will inevitably end up in a situation where you'll have the wrong config loaded
I tried this and it said something like "couldn't exec x". :(
Parent
try it with a capital X
Parent
now its working thx
Parent
bind F8 "class m 1; exec config/class_medic.cfg; echo ^7medic^7/^7smg; say_team ^7medic^7/^7smg"

mine
To this day I do not understand why you need to add "smg" to classes that can be smg only. "medic smg" .. like you could have any other weapon as medic? :SSS
Parent
cos im too lazy too change it :D
Parent
Back to top