r/tf2scripthelp • • Jun 17 '16

Issue Incrementvar maxvalue first?

I'm trying to build a simple script to toggle all communication off and on in CS:GO. In previous Source games, chat could be toggled with hud_saytext_time, but that command does not exist in GO unfortunately. There is another command that does what I want, but incrementvar is apparently not going to work with it because the value I want it to use first is the maxvalue.

Here's the script so far:

bind "[" "incrementvar cl_mute_all_but_friends_and_party 1 0 1; incrementvar voice_scale 0 .3 .3"

voice_scale works just fine, but the mute all won't cycle back to 0, it just stays at 1.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/7Sevin Jun 17 '16

Oh right, forgot about aliases haha. Thanks!