So, I wanted to make a script that utilized universaldelta (that thing where you can hold a key and use the scroll wheel and it does stuff), but I couldn't figure out how, so I just took the easy route and added on to the mouse binds :D
Note: I didn't think I needed to spell this out, but, I decided I will anyway, just in case. This script allows you to hold Q and scroll, and it will adjust your sensitivity in increments of 0.05 (in assaultcube of course, this is cubescript )
EDIT: This script is now obsolete, see below for v2
Code:
alias mouse_sens_inc [
if $sens_active [
sensitivity (+f $sensitivity 0.05)
sensitivity
] []
]
alias mouse_sens_dec [
if $sens_active [
sensitivity (-f $sensitivity 0.05)
sensitivity
] []
]
bind MOUSE4 [if $sens_active [mouse_sens_inc] [universaldelta 1]]
bind MOUSE5 [if $sens_active [mouse_sens_dec] [universaldelta -1]]
bind Q [ if $editing [ domodifier 1 ] [ alias sens_active 1 ; onrelease [ alias sens_active 0 ] ] ]
Note: I didn't think I needed to spell this out, but, I decided I will anyway, just in case. This script allows you to hold Q and scroll, and it will adjust your sensitivity in increments of 0.05 (in assaultcube of course, this is cubescript )
EDIT: This script is now obsolete, see below for v2