Well I'm trying to do a strafe script for evading LG, because I really really hate to deal with LG against me My idea was instead of normal strafing -> a, d, a, d to pump up only one key like z for instance, so in order to work I need when z is pressed for the first time to go a bit to the left, when pressed 2nd time to go to the right and when pressed 3rd time to go left again and so on. Here I think 'wait' will be a disaster.
Ok I did it like this:
bind z "vstr z1"
set z1 "-moveright;+moveleft;bind z vstr z2"
set z2 "-moveleft;+moveright;bind z vstr z1"
And it's working but with the unfortunate 'bonus' that when I stop pumping 'z' I'm stuck at the last direction i.e. left or right no matter what I do except manually to write in the console -moveright/-moveleft accordingly, any suggestion to fix this? How could "bind a +moveleft" invoke +cmd and -cmd but when we have vstr as addition to the bind -cmd got omitted?