In-game voice/volume changer

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending igot5 points.
  • Post: Give igot5 your thoughts on this Script.
  • Vote: Help igot5 win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

Changes the volume of game and voices seperately in cs:go

44 lines | 2 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//VOICE AND GAME VOLUME ON THE FLY CHANGER by iGot5 #TRYPANTS
// twitch.tv/igot55
// STEAM GROUP TRYPANTS

//REBIND f5-f2 To what you want the up and down keys to be

//voice volume

bind "F5" "ngup"
bind "f4" "ngdn"

//game volume

bind "f2" "vgdn"
bind "f3" "vgup"

//GAME VOLUME CONTROL by iGot5
alias "vgmin" "volume 0;echo |*__________| VOLUME  0% MINIMUM!;alias vgup vg1;alias vgdn vgmin"
alias "vg1" "volume 0.1;echo  |_*_________| VOLUME  10%;alias vgup vg2;alias vgdn vgmin"
alias "vg2" "volume 0.2;echo  |_*_________| VOLUME  20%;alias vgup vg4;alias vgdn vg1"
alias "vg4" "volume 0.4;echo  |_*_________| VOLUME  40%;alias vgup vg6;alias vgdn vg2"
alias "vg6" "volume 0.6;echo  |_*_________| VOLUME  60%;alias vgup vg7;alias vgdn vg4"
alias "vg7" "volume 0.7;echo  |_*_________| VOLUME  70%;alias vgup vg8;alias vgdn vg6"
alias "vg8" "volume 0.8;echo  |_*_________| VOLUME  80%;alias vgup vg9;alias vgdn vg7"
alias "vg9" "volume 0.9;echo  |_*_________| VOLUME  90%;alias vgup vg10;alias vgdn vg8"
alias "vg10" "volume 1;echo  |_*_________| VOLUME  100% maximum;alias vgup vg2;alias vgdn vg9"


alias "vgup" "vg1"
alias "vgdn" "vg1"


//by iGot5
alias "ngmin" "voice_scale 0;echo |*__________| VOICE   0% MINIMUM!;alias ngup ng1;alias ngdn ngmin"
alias "ng1" "voice_scale 0.1;echo  |_*_________| VOICE  10%;alias ngup ng2;alias ngdn ngmin"
alias "ng2" "voice_scale 0.2;echo  |__*________| VOICE  20%;alias ngup ng3;alias ngdn ng1"
alias "ng3" "voice_scale 0.3;echo  |___*_______| VOICE  30%;alias ngup ng4;alias ngdn ng2"
alias "ng4" "voice_scale 0.4;echo  |____*______| VOICE  40%;alias ngup ng5;alias ngdn ng3"
alias "ng5" "voice_scale 0.5;echo  |_____*_____| VOICE  50%;alias ngup ng6;alias ngdn ng4"
alias "ng6" "voice_scale 0.6;echo  |______*____| VOICE  60%;alias ngup ng7;alias ngdn ng5"
alias "ng7" "voice_scale 0.7;echo  |_______*___| VOICE  70%;alias ngup ng8;alias ngdn ng6"
alias "ng8" "voice_scale 0.8;echo  |________*__| VOICE  80%;alias ngup ng9;alias ngdn ng7"
alias "ng9" "voice_scale 0.9;echo  |_________*_| VOICE  90%;alias ngup ng10;alias ngdn ng8"
alias "ng10" "voice_scale 1;echo  |__________*| VOICE 100% MAXIMUM!;alias ngdn ng9"
//VOICE AND GAME VOLUME ON THE FLY CHANGER by iGot5 #TRYPANTS // twitch.tv/igot55 // STEAM GROUP TRYPANTS //REBIND f5-f2 To what you want the up and down keys to be

Posts

  • 2y
    I like what you did.  Read the comment about an easier way, but I like that yours has output to the console regarding the current volume.  Maybe that's easier somehow too, IDK.  Anyway, your volume adjustment script is all jacked up.  You did a poor job at the cut & paste but it was easy enough to fix.

    Bananite
  • 3y
    r4nd0mt4sk avatar
    r4nd0mt4sk Offline
    Member Joined 3y
    Hate to point this out because you've done some good work here but you can actually do this much more simply:

    bind "key1" "incrementvar volume 0 1 0.1"
    bind "key2" "incrementvar volume 0 1 -0.1"

    key1 will increase volume from current value by 0.1, key2 will decrease by 0.1. You could also make console print the new volume by adding ";volume" at the end of each bind. If you wanted your more detailed message you would still have to use your script with an alias for each volume obviously.
    Bananite

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

iGot5
iGot5

Submitter

igot5 avatar
igot5 Offline
Member Joined 4y

igot5
Creator
Send a Private Message to the submitter

Category

Stats

Posts
2
Views
24,652
Date Added
4y
bcp.crwdcntrl.net tracking pixel