Page 1 of 1

A_RailAttack that supports autoaim?

Posted: Wed Dec 14, 2016 11:59 am
by wildweasel
Admittedly, I don't play ZDoom with autoaim enabled, which is why it surprised me when /newstuff reviewer Csonicgo complained that the Tri-laser in ww-mixed3 didn't work well for him. Upon looking at A_RailAttack, I find there's no flag that enables it to autoaim at all...am I missing something? Or should I consider a different approach than rail attacks?

Re: A_RailAttack that supports autoaim?

Posted: Wed Dec 14, 2016 12:05 pm
by Graf Zahl
No, it never was added, and now with scripting you can do it yourself.

Re: A_RailAttack that supports autoaim?

Posted: Wed Dec 14, 2016 12:15 pm
by Beed28
I support this. I sometimes play some mods on a Windows Tablet, which only has keyboard, and I find the lack of autoaim on Railgun weapons jarring.

Re: A_RailAttack that supports autoaim?

Posted: Wed Dec 14, 2016 12:27 pm
by Accensus
Graf Zahl wrote:No, it never was added, and now with scripting you can do it yourself.

How?

Re: A_RailAttack that supports autoaim?

Posted: Wed Dec 14, 2016 12:46 pm
by Ed the Bat
I spent years waiting for this in an official capacity.

This was my stopgap.

When ZScript came out, I began steadily converting this over to all-ZScript, but I haven't 100% moved it out of ACS. If anyone can teach us the best way to do it, please tell us.

Re: A_RailAttack that supports autoaim?

Posted: Wed Dec 14, 2016 4:10 pm
by Graf Zahl
The important thing is to call AimLineAttack to calculate the shooting angle.

Re: A_RailAttack that supports autoaim?

Posted: Mon Feb 27, 2017 12:57 pm
by Ed the Bat