Page 1 of 1

Automatic SR50

Posted: Sat May 03, 2014 11:33 am
by Leonard
I have discovered that by using the console command "turnspeeds 1 1 1 1" and doing +left or +right for exactly 1 tic, your angle changes by exactly 0.000046 in fixed point number.
By knowing that, you can calculate the fastest turnspeed possible to aim where you want with only a maximal "margin of error" of 0.000023.
Using this I was able to make an automatic SR-50 with complex use of the test command that aims at the right angle for you.

It works like this: you straferun like you usually would and by pressing the sr50 key it will automatically aim and set the strafe speeds and stuff depending on your direction. It is also possible to change your strafing direction once you pressed it and it will still aim for you once you release it.

Here's the current configuration:

Code: Select all

set moves 0
set sr50ing 0

Code: Select all

//Under [Doom.ConsoleAliases]
Name=+newleft
Command=+moveleft;eval + $moves 1 moves;test = $sr50ing 1 "+left"
Name=-newleft
Command=-moveleft;eval - $moves 1 moves;test = $sr50ing 1 "-left"

Name=+newright
Command=+moveright;eval + $moves 2 moves;test = $sr50ing 1 "+right"
Name=-newright
Command=-moveright;eval - $moves 2 moves;test = $sr50ing 1 "-right"

Name=+sr50
Command=turnspeeds 382 382 382 382;test = $moves 2 "+left;wait;-left;+strafe;+right;turnspeeds 65536 65536 65536 65536" "test = $moves 1 \"+right;wait;-right;+strafe;+left;turnspeeds 65536 65536 65536 65536\" \"turnspeeds 0 0 0 0\"";set sr50ing 1
Name=-sr50
Command=wait;-strafe;turnspeeds 381 381 381 381;wait 2;turnspeeds 0 0 0 0;-left;-right;set sr50ing 0
Notes:
You must put it directly in your config file because it uses multi-level test commands but you can still split it in multiple alias yourself if you want.
You will obviously have to bind +newleft/right to your left/right keys and +sr50 to whatever you want
Spoiler: Here's a little demonstration (WARNING: Heavy GIF) (Open)
Image
I might make it possible to use backward sr-50 if you really want it. (who does this anyway)
It is of course possible to use the same "auto-aiming" method to make 2 directional sr-50 keys if you have this kind of config.

RE: Automatic SR50

Posted: Sat May 03, 2014 11:45 am
by Ænima
Cooool. Thanks.

RE: Automatic SR50

Posted: Sat May 03, 2014 12:38 pm
by uggi121
Nice job !

RE: Automatic SR50

Posted: Sat May 03, 2014 5:30 pm
by Slim
Dropping this in my .ini and autoexec. Nice job.

RE: Automatic SR50

Posted: Sun May 04, 2014 4:24 am
by SwordGrunt
So does this allow you to look around while using SR50

If so it's revolutionary

If not, what's the point? A small angle adjustment, is that what it is? I must've read wrong

RE: Automatic SR50

Posted: Sun May 04, 2014 5:23 pm
by legion
this is not a cheat and will never be recognized as such (you won't get banned for it)

if you choose not to use it, well then it's your call

RE: Automatic SR50

Posted: Wed May 07, 2014 3:47 am
by Snail
Interesting alias, but I don't think I will use it since I tend to move at a nearly-correct SR50 angle when I play. However, it does looks very useful for those who are inexperienced with SR50.