Upvote Upvoted 1 Downvote Downvoted
CFG help
posted in Q/A Help
1
#1
0 Frags +

I want my rl sens to be 4.2 but I want my shotty sens to be around 2.5.

How do i do that?

I want my rl sens to be 4.2 but I want my shotty sens to be around 2.5.

How do i do that?
2
#2
5 Frags +

bind "MWHEELUP" "slot1; sensitivity 4.2"
bind "MWHEELDOWN" "slot2; sensitivity 2.5"
bind "q" "slot3; sensitivity 2.5"

put that in your soldier class cfg. change the binded keys to whatever you use

bind "MWHEELUP" "slot1; sensitivity 4.2"
bind "MWHEELDOWN" "slot2; sensitivity 2.5"
bind "q" "slot3; sensitivity 2.5"

put that in your soldier class cfg. change the binded keys to whatever you use
3
#3
0 Frags +
Phrakturebind "MWHEELUP" "slot1; sensitivity 4.2"
bind "MWHEELDOWN" "slot2; sensitivity 2.5"
bind "q" "slot3; sensitivity 2.5"

put that in your soldier class cfg. change the binded keys to whatever you use

to reset you can put this in your other class configs

bind mwheelup slot1
bind mwheeldown slot2
bind q slot3

sensitivity x

Note on quote marks, you don't need them unless you are stringing commands together in a place where only one command would normally go, or if a command includes spaces and you need to keep them together. So because keys don't have any spaces, you don't have to put quotes around them. However, the "slot1; sensitivity 4.2" is correct because otherwise the sens setting won't be part of the bind and will be executed along with the config.

Personally I would do this via aliases, like so

In autoexec

bind 1 primary
bind 2 secondary
bind 3 melee

soldier.cfg

alias primary "slot1; sensitivity 4.2"
alias secondary "slot2; sensitivity 2.5"
alias melee "slot3; sensitivity 2.5"

other class.cfg files

alias primary slot1
alias secondary slot2
alias melee slot3

sensitivity x
[quote=Phrakture]bind "MWHEELUP" "slot1; sensitivity 4.2"
bind "MWHEELDOWN" "slot2; sensitivity 2.5"
bind "q" "slot3; sensitivity 2.5"

put that in your soldier class cfg. change the binded keys to whatever you use[/quote]

to reset you can put this in your other class configs

[code]bind mwheelup slot1
bind mwheeldown slot2
bind q slot3

sensitivity x[/code]


Note on quote marks, you don't need them unless you are stringing commands together in a place where only one command would normally go, or if a command includes spaces and you need to keep them together. So because keys don't have any spaces, you don't have to put quotes around them. However, the "slot1; sensitivity 4.2" is correct because otherwise the sens setting won't be part of the bind and will be executed along with the config.

Personally I would do this via aliases, like so

In autoexec
[code]bind 1 primary
bind 2 secondary
bind 3 melee[/code]

soldier.cfg
[code]alias primary "slot1; sensitivity 4.2"
alias secondary "slot2; sensitivity 2.5"
alias melee "slot3; sensitivity 2.5"[/code]

other class.cfg files
[code]alias primary slot1
alias secondary slot2
alias melee slot3

sensitivity x[/code]
4
#4
-1 Frags +
Phrakturebind "MWHEELUP" "slot1; sensitivity 4.2"
bind "MWHEELDOWN" "slot2; sensitivity 2.5"
bind "q" "slot3; sensitivity 2.5"

put that in your soldier class cfg. change the binded keys to whatever you use

Do i need to restart tf2 now?

[quote=Phrakture]bind "MWHEELUP" "slot1; sensitivity 4.2"
bind "MWHEELDOWN" "slot2; sensitivity 2.5"
bind "q" "slot3; sensitivity 2.5"

put that in your soldier class cfg. change the binded keys to whatever you use[/quote]


Do i need to restart tf2 now?
5
#5
1 Frags +

yes

yes
6
#6
2 Frags +
Phraktureyes

Actually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.

[quote=Phrakture]yes[/quote]
Actually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.
7
#7
-1 Frags +
AndKennethPhraktureyesActually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.

jsut did. doesn't seem to work. sens stays at 4.2 on both wep slots.

[quote=AndKenneth][quote=Phrakture]yes[/quote]
Actually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.[/quote]

jsut did. doesn't seem to work. sens stays at 4.2 on both wep slots.
8
#8
0 Frags +

how time consuming is restarting tf2?

how time consuming is restarting tf2?
9
#9
-2 Frags +

Whenever I die with the shotty, i respawn with the rl at 2.5, but when I get a kill, it goes back to 4.2 and 2.5 respectively

Whenever I die with the shotty, i respawn with the rl at 2.5, but when I get a kill, it goes back to 4.2 and 2.5 respectively
10
#10
1 Frags +

you have to hit the binded key to change the sensitivity

you have to hit the binded key to change the sensitivity
11
#11
0 Frags +
dyzAndKennethPhraktureyesActually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.
jsut did. doesn't seem to work. sens stays at 4.2 on both wep slots.

Do you use quickswitch to change weapons?

[quote=dyz][quote=AndKenneth][quote=Phrakture]yes[/quote]
Actually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.[/quote]

jsut did. doesn't seem to work. sens stays at 4.2 on both wep slots.[/quote]

Do you use quickswitch to change weapons?
12
#12
-1 Frags +
elementdyzAndKennethPhraktureyesActually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.
jsut did. doesn't seem to work. sens stays at 4.2 on both wep slots.

Do you use quickswitch to change weapons?

I use mwheelup for slot 1, mwheeldown for slot 3, and mouse 3 for slot 2

[quote=element][quote=dyz][quote=AndKenneth][quote=Phrakture]yes[/quote]
Actually no, all he would have to do is switch off of soldier and then back on and the class file will execute. Or type exec soldier.cfg in the console.[/quote]

jsut did. doesn't seem to work. sens stays at 4.2 on both wep slots.[/quote]

Do you use quickswitch to change weapons?[/quote]


I use mwheelup for slot 1, mwheeldown for slot 3, and mouse 3 for slot 2
13
#13
0 Frags +

You should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.

If you're using mousewheel this might work out better for you.

http://pastebin.com/p0RbEL8f

Have not tried it personally since i use Q,E,F but friends have told me good things about it.

You should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.

If you're using mousewheel this might work out better for you.

http://pastebin.com/p0RbEL8f

Have not tried it personally since i use Q,E,F but friends have told me good things about it.
14
#14
-1 Frags +
BenroadsYou should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.

If you're using mousewheel this might work out better for you.

http://pastebin.com/p0RbEL8f

Have not tried it personally since i use Q,E,F but friends have told me good things about it.

Seems complicated as fuck.

[quote=Benroads]You should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.

If you're using mousewheel this might work out better for you.

http://pastebin.com/p0RbEL8f

Have not tried it personally since i use Q,E,F but friends have told me good things about it.[/quote]


Seems complicated as fuck.
15
#15
0 Frags +

The best solution would be just to pick one sensitivity and use it for all weapons. It's less complex and you don't have to worry about the game screwing it up when you spawn, run out of ammo, etc. Plus it's better for consistency's sake.

The best solution would be just to pick one sensitivity and use it for all weapons. It's less complex and you don't have to worry about the game screwing it up when you spawn, run out of ammo, etc. Plus it's better for consistency's sake.
16
#16
0 Frags +
dyzBenroadsYou should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.

If you're using mousewheel this might work out better for you.

http://pastebin.com/p0RbEL8f

Have not tried it personally since i use Q,E,F but friends have told me good things about it.

Seems complicated as fuck.

that's probably because it is, script needs to know what weapon you're on and what one you were on so that quickswitch does work and so do viewmodel settings. I've never cared for scrollwheel but to have the sens thing work you'd need to add an additonal command to this part

alias equip_primary   "slot1; r_drawviewmodel 0; qs_primary; sensitivity ___"
alias equip_secondary "slot2; r_drawviewmodel 1; qs_secondary; sensitivity ___"
alias equip_melee     "slot3; r_drawviewmodel 1; qs_melee; sensitivity ___"

Replace with desired sens for each slot

[quote=dyz][quote=Benroads]You should not need to restart TF2 for anything involving scripts, do make sure you have saved the cfg file AND re execed it via the console.

If you're using mousewheel this might work out better for you.

http://pastebin.com/p0RbEL8f

Have not tried it personally since i use Q,E,F but friends have told me good things about it.[/quote]


Seems complicated as fuck.[/quote]

that's probably because it is, script needs to know what weapon you're on and what one you were on so that quickswitch does work and so do viewmodel settings. I've never cared for scrollwheel but to have the sens thing work you'd need to add an additonal command to this part

[code]alias equip_primary "slot1; r_drawviewmodel 0; qs_primary; sensitivity ___"
alias equip_secondary "slot2; r_drawviewmodel 1; qs_secondary; sensitivity ___"
alias equip_melee "slot3; r_drawviewmodel 1; qs_melee; sensitivity ___"[/code]

Replace with desired sens for each slot
17
#17
0 Frags +

Fuck. I don't know what I did. Now none of my cfg's will work. It's just using everything default

Fuck. I don't know what I did. Now none of my cfg's will work. It's just using everything default
18
#18
7 Frags +

http://puu.sh/4mHdk/98a15ebc71.jpg

[img]http://puu.sh/4mHdk/98a15ebc71.jpg[/img]
19
#19
0 Frags +

This kinda stuff is MUCH easier to do with numberkeys. If you did want to use those I could whip up something really quick.

This kinda stuff is MUCH easier to do with numberkeys. If you did want to use those I could whip up something really quick.
20
#20
-2 Frags +

Something quick and simple (I think). You only need your mouse.

// Rocket
alias "+rocket" "slot1;+attack;r_drawviewmodel 0;viewmodel_fov 80;sensitivity 4.2"
alias "-rocket" "-attack"
// Shotgun
alias "+shotgun" "slot2;+attack;r_drawviewmodel 0;viewmodel_fov 80;sensitivity 2.5"
alias "-shotgun" "-attack"
// Shovel
alias "+shovel" "slot3;+attack;r_drawviewmodel 1;viewmodel_fov 80;sensitivity XX"
alias "-shovel" "-attack"
// BINDINGS
bind "mouse1" "+rocket"
bind "mouse2" "+shotgun"
bind "mouse3" "+shovel"

Delete or edit r_drawviewmodel and viewmodel_fov if you want to use your own.
Edit binds if you dont want to use your mouse for that. Don't know your melee sensitivity, so edit that as well.

Something quick and simple (I think). You only need your mouse.

// Rocket
alias "+rocket" "slot1;+attack;r_drawviewmodel 0;viewmodel_fov 80;sensitivity 4.2"
alias "-rocket" "-attack"
// Shotgun
alias "+shotgun" "slot2;+attack;r_drawviewmodel 0;viewmodel_fov 80;sensitivity 2.5"
alias "-shotgun" "-attack"
// Shovel
alias "+shovel" "slot3;+attack;r_drawviewmodel 1;viewmodel_fov 80;sensitivity XX"
alias "-shovel" "-attack"
// BINDINGS
bind "mouse1" "+rocket"
bind "mouse2" "+shotgun"
bind "mouse3" "+shovel"

Delete or edit r_drawviewmodel and viewmodel_fov if you want to use your own.
Edit binds if you dont want to use your mouse for that. Don't know your melee sensitivity, so edit that as well.
Please sign in through STEAM to post a comment.