A_RailAttack that supports autoaim?

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

A_RailAttack that supports autoaim?

Postby wildweasel » Wed Dec 14, 2016 11:59 am

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?
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 16 Jul 2003

Re: A_RailAttack that supports autoaim?

Postby Graf Zahl » Wed Dec 14, 2016 12:05 pm

No, it never was added, and now with scripting you can do it yourself.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: A_RailAttack that supports autoaim?

Postby Beed28 » Wed Dec 14, 2016 12:15 pm

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.
User avatar
Beed28
Making entire worlds bounce up and down.
 
Joined: 24 Feb 2013
Location: United Kingdom

Re: A_RailAttack that supports autoaim?

Postby Accensus » Wed Dec 14, 2016 12:27 pm

Graf Zahl wrote:No, it never was added, and now with scripting you can do it yourself.

How?
User avatar
Accensus
Vector, locked in.
 
Joined: 11 Feb 2016
Location: Somalia
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: A_RailAttack that supports autoaim?

Postby Ed the Bat » Wed Dec 14, 2016 12:46 pm

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
Ed the Bat
I'm tired. I want to go home.
 
Joined: 03 May 2012
Location: Maryland, US

Re: A_RailAttack that supports autoaim?

Postby Graf Zahl » Wed Dec 14, 2016 4:10 pm

The important thing is to call AimLineAttack to calculate the shooting angle.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: A_RailAttack that supports autoaim?

Postby Ed the Bat » Mon Feb 27, 2017 12:57 pm

User avatar
Ed the Bat
I'm tired. I want to go home.
 
Joined: 03 May 2012
Location: Maryland, US


Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 0 guests