A_CustomRailgun with spawnofs_xy and aim:2 swaps offset axis

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

A_CustomRailgun with spawnofs_xy and aim:2 swaps offset axis

Post by InsanityBringer »

https://drive.google.com/file/d/12APs6A ... sp=sharing

Take this archive that has a basic port of the Gladiator enemy from Quake II. It has two monsters, Gladiator and AimGladiator. The Gladiator has aim:2 in its A_CustomRailgun call, and this causes the spawnofs_xy param to move forwards and backwards instead of left to right. The AimGladiator, however, has aim:1 for the railgun, and it moves the railgun source left/right as needed.

This bug seems to be fairly longstanding, since the actor isn't very complex at all, I was able to load it in one of the last dev builds of zdoom that supported zscript (far back enough that the -zscript param was needed), and the railgun seems to have the same issue there.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49188
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_CustomRailgun with spawnofs_xy and aim:2 swaps offset

Post by Graf Zahl »

InsanityBringer wrote: This bug seems to be fairly longstanding
Meaning that actually changing behavior is not an option. Who knows how many mods depend on it.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: A_CustomRailgun with spawnofs_xy and aim:2 swaps offset

Post by InsanityBringer »

any chance of a corrective flag, then? (or heck just a scripted version of the function...) I would like to be able to use the proper behavior for aim mode 2.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49188
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_CustomRailgun with spawnofs_xy and aim:2 swaps offset

Post by Graf Zahl »

Not for 4.1. That's too close.

Return to “Bugs [GZDoom]”