config classes

How do I make a class-config which changes my fov to 110 and drawgun 1 when I go panzer, and other classes I have 100fov and drawgun 0?

thanks

edit* got it got it thanks for help everyone
Comments
22
/bind f5 "class m 1 ;say_team ^7medic ;cg_fov 100 ;cg_Drawgun 0"
/bind f6 "class s 4 ;say_team ^7panzi ;cg_fov 110 ;cg_Drawgun 1"

copy f5 for other classes
Doesnt work cause if I change to pf when ive just spawned as medic it changes fov right away.
Parent
its not possible to have it when you spawn. You can make an extra two binds:
/bind j "cg_fov 110 ;cg_Drawgun 1"
/bind k "cg_fov 100 ;cg_Drawgun 0"
then just press J when u spawn panzer and press K when u spawn as medic/other class again.

its not possible to do it with some automatic thingy when you spawn
Parent
Nah unpractical. I got what I wanted anyway so thanks for help.
Parent
How about a single-button toggle?
Parent
My class scripts but just added the fov thing

//Classes
bind f5 "class m ;say_team ^7medic^3.^zsmg;cg_fov 100;cg_drawgun 0"
bind f9 "class b 1 ;say_team ^7covertops^3.^zsten;cg_fov 100;cg_drawgun 0"
bind f7 "class e 1 ;say_team ^7engineer^3.^zsmg;cg_fov 100;cg_drawgun 0"
bind f10 "class s 4 ;say_team ^7soldier^3.^zpanzerfaust;cg_fov 110;cg_drawgun 1"
bind f6 "class f 1 ;say_team ^7fieldops^3.^zsmg;cg_fov 100;cg_drawgun 0"
bind f8 "class e 2 ;say_team ^7engineer^3.^zrifle;cg_fov 100;cg_drawgun 0"
Doesnt work cause if I change to pf when ive just spawned as medic it changes fov right away.
Parent
dont hit it just after u spawn then? XD
Parent
Sometimes it must be changed before I spawn again cause if I get in tight situation i might not have time to switch
Parent
add in the 'wait' command for the spawntime so it will wait before it changes the fov? :d

dno if thats possible tho :s
Parent
Do that and you won't be able to do anything while it waits :D
Parent
didnt think it was possible :D
Parent
id assume by just making extra command after the classbind, though it would execute real time as you press it :<

there's no autoexec_medic kind of thing imo
bind F1 "class s 4;say_team ^1ROCKETAH;bind MOUSE2 weaponbank 3"
bind F2 "class m 1;say_team ^6REVIVAH;bind mouse2 "+vstr aids1 aids2"
ok sorry never tried it tbh :D only know autoexec_map thing

thou i use classmenu myself
Make files named "autoexec_class" like "autoexec_engineer" "autoexec_covertops"

in autoexec_soldier put:
cg_fov 110 drawgun 1

and in other class autoexecs fov 100 drawgun 0
create cfg and put it in etpro:

autoexec_soldier.cfg
put -> seta "cg_fov 110 ;cg_Drawgun 1"


autoexec_medic.cfg
put -> seta "cg_fov 100 ;cg_Drawgun 0"


autoexec_engineer.cfg
put -> seta "cg_fov 100 ;cg_Drawgun 0"


autoexec_fieldops.cfg
put -> seta "cg_fov 100 ;cg_Drawgun 0"

autoexec_covertops.cfg
put -> seta "cg_fov 100 ;cg_Drawgun 0"

np
Back to top