Ond kaja wrote:
grape wrote:tried to make a simpler version, little less fancy but it still works and i doubt it should bug in any way
alias +scope "+attack2;mat_show_ab_hdr_hudelement 1"
alias -scope "-attack2;"
alias +shoot "+attack;mat_show_ab_hdr_hudelement 0"
alias -shoot "-attack"
bind mouse1 +shoot
bind mouse2 +scope
It's not actually possible to make a script that never bugs out. If someone jumps while scoped using your script, the hud will disappear until you shoot. My script (the one in the OP) only bugs out if you misclick (trying to zoom in when the scope isn't ready yet) or using autorezoom, or holding in the right mouse button to zoom and unzoom without releasing it inbetween.
or you could just create a jump alias that re-enables it and bind it to spacebar.