Upvote Upvoted 1 Downvote Downvoted
Volume increaser and decreaser bind.
posted in Customization
1
#1
0 Frags +

So I want to increase and decrease my volume by using my arrow keys:
Ive tried:
bind UPARROW "incrementvar volume 0 10 0.5"
bind DOWNARROW "incrementvar volume 0 10 -0.5"

But my volume only seems to go to a maximum of 0.1 and minimum of 0.5?

So I want to increase and decrease my volume by using my arrow keys:
Ive tried:
bind UPARROW "incrementvar volume 0 10 0.5"
bind DOWNARROW "incrementvar volume 0 10 -0.5"

But my volume only seems to go to a maximum of 0.1 and minimum of 0.5?
2
#2
0 Frags +

isn't the max value for volume only 1.0? If so, this script would be really really wonky because of the large steps being taken.

isn't the max value for volume only 1.0? If so, this script would be really really wonky because of the large steps being taken.
3
#3
0 Frags +
smoboisn't the max value for volume only 1.0? If so, this script would be really really wonky because of the large steps being taken.

I dont think so, maybe. Ill just change it to 0.01 steps then and see how that goes.

[quote=smobo]isn't the max value for volume only 1.0? If so, this script would be really really wonky because of the large steps being taken.[/quote]

I dont think so, maybe. Ill just change it to 0.01 steps then and see how that goes.
4
#4
0 Frags +

Yeah, volume max definition is 1. You could always just try toggling set volume settings like .2 .5 and 1

Yeah, volume max definition is 1. You could always just try toggling set volume settings like .2 .5 and 1
5
#5
0 Frags +

This is one I use. People helped me make it work though

http://teamfortress.tv/thread/19605/this-is-script-is-crashing-my-game

This is one I use. People helped me make it work though

http://teamfortress.tv/thread/19605/this-is-script-is-crashing-my-game
6
#6
0 Frags +

here's the script I use for volume: http://pastebin.com/zMEMkXKi

been using it for like 5/6 years

here's the script I use for volume: http://pastebin.com/zMEMkXKi

been using it for like 5/6 years
7
#7
0 Frags +

try this:

bind uparrow "incrementvar volume 0 1 .05"
bind downarrow "incrementvar volume 0 1 -.05"

if you want smaller/more steps, you can simply change the .05 and -.05 to .025 and -.025 (or however small you want your steps). ditto for bigger/fewer steps (.1 and -.1 for example).
volume in tf2 goes from 0 to 1, like smobo and pwny_ said.

try this:
[quote]bind uparrow "incrementvar volume 0 1 .05"
bind downarrow "incrementvar volume 0 1 -.05"[/quote]

if you want smaller/more steps, you can simply change the .05 and -.05 to .025 and -.025 (or however small you want your steps). ditto for bigger/fewer steps (.1 and -.1 for example).
volume in tf2 goes from 0 to 1, like smobo and pwny_ said.
8
#8
0 Frags +

Thanks all. using numlockeds version now and seems to be working fine:)

Thanks all. using numlockeds version now and seems to be working fine:)
9
#9
0 Frags +
ShooshThanks all. using numlockeds version now and seems to be working fine:)

the one numlocked posted is just an unnecessary wall of text (no offense!). the 2-lined script i posted does exactly the same.
besides, the wait command is restricted on most servers, so the whole developer 0, developer 1 stuff isn't even going to work on those servers.
it's a drag if you ever wanted to make changes, too.

oh well..

[quote=Shoosh]Thanks all. using numlockeds version now and seems to be working fine:)[/quote]

the one numlocked posted is just an unnecessary wall of text (no offense!). the 2-lined script i posted does exactly the same.
besides, the wait command is restricted on most servers, so the whole developer 0, developer 1 stuff isn't even going to work on those servers.
it's a drag if you ever wanted to make changes, too.

oh well..
10
#10
0 Frags +

This could work but I haven't tested it yet.
It's a more simplified version of the config numlocked posted if anyone is interested.

alias v0 "volume 0;bind UPARROW v1;unbind DOWNARROW"
alias v1 "volume 0.025;bind UPARROW v2;bind DOWNARROW v0"
alias v2 "volume 0.05;bind UPARROW v3;bind DOWNARROW v1"
alias v3 "volume 0.075;bind UPARROW v4;bind DOWNARROW v2"
alias v4 "volume 0.1;bind UPARROW v5;bind DOWNARROW v3"
alias v5 "volume 0.125;bind UPARROW v6;bind DOWNARROW v4"
alias v6 "volume 0.15;bind UPARROW v7;bind DOWNARROW v5"
alias v7 "volume 0.175;bind UPARROW v8;bind DOWNARROW v6"
alias v8 "volume 0.2;bind UPARROW v9;bind DOWNARROW v7"
alias v9 "volume 0.25;bind UPARROW v10;bind DOWNARROW v8"
alias v10 "volume 0.3;bind UPARROW v11;bind DOWNARROW v9"
alias v11 "volume 0.35;bind UPARROW v12;bind DOWNARROW v10"
alias v12 "volume 0.4;bind UPARROW v13;bind DOWNARROW v11"
alias v13 "volume 0.45;bind UPARROW v14;bind DOWNARROW v12"
alias v14 "volume 0.5;bind UPARROW v15;bind DOWNARROW v13"
alias v15 "volume 0.6;bind UPARROW v16;bind DOWNARROW v14"
alias v16 "volume 0.7;bind UPARROW v17;bind DOWNARROW v15"
alias v17 "volume 0.8;bind UPARROW v18;bind DOWNARROW v16"
alias v18 "volume 0.9;bind UPARROW v19;bind DOWNARROW v17"
alias v19 "volume 1;unbind UPARROW;bind DOWNARROW v18"

"volume X;bind UPARROW vU; bind DOWNARROW vD"

-Save this as volumeconfig.cfg
-Put "exec volumeconfig.cfg" in your autoexec.
-Replace X with your desired default volume..
-Replace "vU" with the closest "v number" bigger than your set X volume.
-Replace "vD" with the closest "v number" smaller than your set X volume.

Example:

I want tf2 to start with the volume 0.1 so I set X to 0.1
Then I set my "vU" value to "v3 and my "vD" value to "v5".

Reference chart due to the messy looking config:

v0: Volume 0

v1: Volume 0.025

v2: Volume 0.05

v3: Volume 0.075

v4: Volume 0.1

v5: Volume 0.125

v6: Volume 0.15

v7: Volume 0.175

v8: Volume 0.2

v9: Volume 0.25

v10: Volume 0.3

v11: Volume 0.35

v12: Volume 0.4

v13: Volume 0.45

v14: Volume 0.5

v15: Volume 0.6

v16: Volume 0.7

v17: Volume 0.8

v18: Volume 0.9

v19: Volume 1

Basically what it does is launch tf2 with your preferred default volume and then you can reliably raise your volume in a (in my opinion) reasonable scale pressing the up and down arrows. It's (given I actually did it right) sure to give you most of the desired volumes between mute and max as people tend to be less picky at higher volumes.

This could work but I haven't tested it yet.
It's a more simplified version of the config numlocked posted if anyone is interested.

[code]alias v0 "volume 0;bind UPARROW v1;unbind DOWNARROW"
alias v1 "volume 0.025;bind UPARROW v2;bind DOWNARROW v0"
alias v2 "volume 0.05;bind UPARROW v3;bind DOWNARROW v1"
alias v3 "volume 0.075;bind UPARROW v4;bind DOWNARROW v2"
alias v4 "volume 0.1;bind UPARROW v5;bind DOWNARROW v3"
alias v5 "volume 0.125;bind UPARROW v6;bind DOWNARROW v4"
alias v6 "volume 0.15;bind UPARROW v7;bind DOWNARROW v5"
alias v7 "volume 0.175;bind UPARROW v8;bind DOWNARROW v6"
alias v8 "volume 0.2;bind UPARROW v9;bind DOWNARROW v7"
alias v9 "volume 0.25;bind UPARROW v10;bind DOWNARROW v8"
alias v10 "volume 0.3;bind UPARROW v11;bind DOWNARROW v9"
alias v11 "volume 0.35;bind UPARROW v12;bind DOWNARROW v10"
alias v12 "volume 0.4;bind UPARROW v13;bind DOWNARROW v11"
alias v13 "volume 0.45;bind UPARROW v14;bind DOWNARROW v12"
alias v14 "volume 0.5;bind UPARROW v15;bind DOWNARROW v13"
alias v15 "volume 0.6;bind UPARROW v16;bind DOWNARROW v14"
alias v16 "volume 0.7;bind UPARROW v17;bind DOWNARROW v15"
alias v17 "volume 0.8;bind UPARROW v18;bind DOWNARROW v16"
alias v18 "volume 0.9;bind UPARROW v19;bind DOWNARROW v17"
alias v19 "volume 1;unbind UPARROW;bind DOWNARROW v18"

"volume X;bind UPARROW vU; bind DOWNARROW vD"[/code]

-Save this as volumeconfig.cfg
-Put "exec volumeconfig.cfg" in your autoexec.
-Replace X with your desired default volume..
-Replace "vU" with the closest "v number" bigger than your set X volume.
-Replace "vD" with the closest "v number" smaller than your set X volume.

Example:

I want tf2 to start with the volume 0.1 so I set X to 0.1
Then I set my "vU" value to "v3 and my "vD" value to "v5".


Reference chart due to the messy looking config:

[u]v0: Volume 0

v1: Volume 0.025

v2: Volume 0.05

v3: Volume 0.075

v4: Volume 0.1

v5: Volume 0.125

v6: Volume 0.15

v7: Volume 0.175

v8: Volume 0.2

v9: Volume 0.25

v10: Volume 0.3

v11: Volume 0.35

v12: Volume 0.4

v13: Volume 0.45

v14: Volume 0.5

v15: Volume 0.6

v16: Volume 0.7

v17: Volume 0.8

v18: Volume 0.9

v19: Volume 1
[/u]

Basically what it does is launch tf2 with your preferred default volume and then you can reliably raise your volume in a (in my opinion) reasonable scale pressing the up and down arrows. It's (given I actually did it right) sure to give you most of the desired volumes between mute and max as people tend to be less picky at higher volumes.
11
#11
0 Frags +

This script works as it is supposed to, the only problem being that volume is capped at 1.0 as a maximum, as previously mentioned. You can check this by typing "volume" in console. The corresponding output is:

"volume" = "1.000000" ( def. "1.0" ) min. 0.000000 max. 1.000000

You need to make the increments and decrements smaller, say 0.05, to have a greater range of possible volumes. Currently, this only has 3: [0.0, 0.5, 1.0]. Something like the following makes more sense:

bind UPARROW "incrementvar volume 0 1 0.05"
bind DOWNARROW "incrementvar volume 0 1 -0.05"

The only difference between this and Twisted's config (other than being more simple) is that the script above will loop whereas Twisted's will not. If you are at the max value of volume, clicking UPARROW will bring you back to the minimum and vice versa for DOWNARROW.

This script works as it is supposed to, the only problem being that volume is capped at 1.0 as a maximum, as previously mentioned. You can check this by typing "volume" in console. The corresponding output is:

[code]"volume" = "1.000000" ( def. "1.0" ) min. 0.000000 max. 1.000000[/code]

You need to make the increments and decrements smaller, say 0.05, to have a greater range of possible volumes. Currently, this only has 3: [0.0, 0.5, 1.0]. Something like the following makes more sense:

[code]
bind UPARROW "incrementvar volume 0 1 0.05"
bind DOWNARROW "incrementvar volume 0 1 -0.05"
[/code]

The only difference between this and Twisted's config (other than being more simple) is that the script above will loop whereas Twisted's will not. If you are at the max value of volume, clicking UPARROW will bring you back to the minimum and vice versa for DOWNARROW.
12
#12
1 Frags +

i made something neat

depress mouse3 and scroll to change volume, volume will be displayed in the dev console
release mouse3 and scroll wheel will return to it's normal function

alias vol+ "incrementvar volume 0 1 .02"
alias vol- "incrementvar volume 0 1 -.02"
alias yolo "whatever mwheelup is usually bound to"
alias tolo "whatever mwheeldown is usually bound to"
alias +m3alt "con_filter_text volume;con_filter_enable 1;developer 1;alias mwheelupalt vol+;alias mwheeldownalt vol-"
alias -m3alt "con_filter_text "";con_filter_enable 0;developer 0;alias mwheelupalt yolo;alias mwheeldownalt tolo"
bind mouse3 +m3alt
bind mwheelup mwheelupalt
bind mwheeldown mwheeldownalt
i made something neat

depress mouse3 and scroll to change volume, volume will be displayed in the dev console
release mouse3 and scroll wheel will return to it's normal function

[code]alias vol+ "incrementvar volume 0 1 .02"
alias vol- "incrementvar volume 0 1 -.02"
alias yolo "whatever mwheelup is usually bound to"
alias tolo "whatever mwheeldown is usually bound to"
alias +m3alt "con_filter_text volume;con_filter_enable 1;developer 1;alias mwheelupalt vol+;alias mwheeldownalt vol-"
alias -m3alt "con_filter_text "";con_filter_enable 0;developer 0;alias mwheelupalt yolo;alias mwheeldownalt tolo"
bind mouse3 +m3alt
bind mwheelup mwheelupalt
bind mwheeldown mwheeldownalt[/code]
13
#13
0 Frags +
hoolii made something neat

looks good!

but doesn't this bold part break that line (because of those "" thingies)?
alias -m3alt "con_filter_text "";con_filter_enable 0;developer 0;alias mwheelupalt yolo;alias mwheeldownalt tolo"

edit: i ask because i thought that those "" thingies determine the start and end of a 'definition', when it comes to tf2 scripting

[quote=hooli]i made something neat[/quote]

looks good!

but doesn't this bold part break that line (because of those "" thingies)?
alias -m3alt "[b]con_filter_text ""[/b];con_filter_enable 0;developer 0;alias mwheelupalt yolo;alias mwheeldownalt tolo"

edit: i ask because i thought that those "" thingies determine the start and end of a 'definition', when it comes to tf2 scripting
14
#14
1 Frags +

the line doesn't break, the " is just a way to define strings

the line doesn't break, the " is just a way to define strings
15
#15
0 Frags +
BucakeShooshThanks all. using numlockeds version now and seems to be working fine:)
the one numlocked posted is just an unnecessary wall of text (no offense!). the 2-lined script i posted does exactly the same.
besides, the wait command is restricted on most servers, so the whole developer 0, developer 1 stuff isn't even going to work on those servers.
it's a drag if you ever wanted to make changes, too.

oh well..

I know it's unnecessary, I've had it since I first started playing and not bothered changing it :) it still works so there's no need :>

[quote=Bucake][quote=Shoosh]Thanks all. using numlockeds version now and seems to be working fine:)[/quote]

the one numlocked posted is just an unnecessary wall of text (no offense!). the 2-lined script i posted does exactly the same.
besides, the wait command is restricted on most servers, so the whole developer 0, developer 1 stuff isn't even going to work on those servers.
it's a drag if you ever wanted to make changes, too.

oh well..[/quote]
I know it's unnecessary, I've had it since I first started playing and not bothered changing it :) it still works so there's no need :>
Please sign in through STEAM to post a comment.