Automatic SR50

General discussion of the port and Doom-related chat.
Post Reply
User avatar
Leonard
Developer
Posts: 166
Joined: Sat Mar 30, 2013 8:09 pm

Automatic SR50

#1

Post by Leonard » Sat May 03, 2014 11:33 am

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.
[spoiler]

Code: Select all

<@WaTaKiD> punish me
* Seanphone gets his belt out
<+Seanphone> all right WaTaKiD bend over

Code: Select all

<Kokiri> capo whos your fav pony?
<capo> i like them all

Code: Select all

cobalt changes topic to 'ZDoom 2.6.1 progress: at r3771, 23 revisions left (98% complete)'
<edward-san> omg
<edward-san> almost finished!!!
<Sean> !!!!!!!!!!!!!!
<Sean> Plot twist: This is the status of Half-Life 3.
<Dusk> plot twist: the percentage count suddenly begins to decline instead
<Sean> Torr makes a forum post "We're going back to 2.5.0"
<Dusk> and we do so incrementally
[/spoiler]

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Automatic SR50

#2

Post by Ænima » Sat May 03, 2014 11:45 am

Cooool. Thanks.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
uggi121
Forum Regular
Posts: 220
Joined: Thu Dec 20, 2012 12:24 pm

RE: Automatic SR50

#3

Post by uggi121 » Sat May 03, 2014 12:38 pm

Nice job !
"I want to learn French. Hope I'm taught how to gif French kiss."

User avatar
Slim
Zandrone
Posts: 1112
Joined: Sat Mar 16, 2013 7:11 am
Location: Zero Space
Clan: Can't fit it in here
Clan Tag: -=FSR=-
Contact:

RE: Automatic SR50

#4

Post by Slim » Sat May 03, 2014 5:30 pm

Dropping this in my .ini and autoexec. Nice job.
Image

"Your childish antics grow tiring. If you dare to fight me, then I accept your challenge: Anytime, anywhere." - Zero, Megaman X5
Spoiler: Quotes (Open)
5:54 PM - Slim: you're complaining about something so small that
5:54 PM - Lance: so? we do that all the time
5:55 PM - Lance: we're a bunch of losers complaining at a bar minus the bar
Spoiler: Galactus tried evading (Open)
Image

User avatar
SwordGrunt
Forum Regular
Posts: 377
Joined: Thu Jun 07, 2012 8:43 pm

RE: Automatic SR50

#5

Post by SwordGrunt » Sun May 04, 2014 4:24 am

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

legion
Retired Staff / Community Team Member
Posts: 315
Joined: Sat Jun 02, 2012 7:36 am

RE: Automatic SR50

#6

Post by legion » Sun May 04, 2014 5:23 pm

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
Image

Snail
New User
Posts: 6
Joined: Sun Jun 03, 2012 3:57 am
Location: AU

RE: Automatic SR50

#7

Post by Snail » Wed May 07, 2014 3:47 am

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.

Post Reply