halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[CS] Weird issue with alias (script)

Open shazamza opened this issue 13 years ago • 4 comments

Hi, I have the following script which

alias +straf "sensitivity 9999;+strafe;sensitivity" alias -straf "sensitivity 4.8;-strafe;sensitivity" bind alt "+straf"

So when I'm pressing alt I should be able to "strafe" with sensitivity 9999 and when I release the button, it put back my sentivity to 4.8 and stop the "strafing" The thing is that it work 1 time out of 3. I've added sensitivity at the end to help me "debug" the issue.

After using it, my console shows sensitivity 4.8 but my sensitivity is still at 9999 for some obscure reason.

Thanks

shazamza avatar May 30 '13 06:05 shazamza

https://github.com/ValveSoftware/halflife/issues/205

When you are in a map (i.e connected to a server) you are limited to changing sensitivity at most once every 30 seconds, to prevent game exploits.

ghost avatar May 30 '13 06:05 ghost

huh nope, I just tried 10 different sensitivity in less than 10 seconds.

shazamza avatar May 30 '13 07:05 shazamza

You can only change sensitivity every 30 seconds in CS, your script will just cause you to clamp to one of the values. What you are trying to do is considered an in game exploit so that is why we prevent it (no, you cannot possibly get vac banned for it).

alfred-valve avatar May 30 '13 16:05 alfred-valve

huh nope, I just tried 10 different sensitivity in less than 10 seconds.

^ and how can this be considered an exploit?

shazamza avatar May 30 '13 19:05 shazamza