A_RailAttack that supports autoaim?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

A_RailAttack that supports autoaim?

Post 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 [wiki]A_RailAttack[/wiki], 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?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49184
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_RailAttack that supports autoaim?

Post by Graf Zahl »

No, it never was added, and now with scripting you can do it yourself.
User avatar
Beed28
Posts: 598
Joined: Sun Feb 24, 2013 4:07 pm
Location: United Kingdom

Re: A_RailAttack that supports autoaim?

Post 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.
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: A_RailAttack that supports autoaim?

Post by Accensus »

Graf Zahl wrote:No, it never was added, and now with scripting you can do it yourself.
How?
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US

Re: A_RailAttack that supports autoaim?

Post 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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49184
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_RailAttack that supports autoaim?

Post by Graf Zahl »

The important thing is to call AimLineAttack to calculate the shooting angle.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US

Re: A_RailAttack that supports autoaim?

Post by Ed the Bat »

Return to “Editing (Archive)”