I'm experiencing a weird issue where missiles created by A_FireBullets don't receive correct offset at close distances (around 400 units), instead their offset is 0.
The behavior is showcased here: https://streamable.com/r46ak
It's shown in the current version of Beautiful Doom, but I'm also attaching a barebones example in a pk3, and the same issue can be observed with it.
GZDoom version is g55e00f350.
I added a message showing distance when fired but the distance factor is inconsistent; the bug may appear or not appear at the same distances. The problem lies specifically with the missiles part of the function, because the bullets are offset correctly (which can be seen by bulletpuffs or blood on monsters).
UPD: the issue may be connected to the fact that missiles are aimed at puffs, and puffs don't normally spawn if a monster was hit.
UPD2: yes, this is definitely it. If the puff used has +PUFFONACTORS, the missiles will get the correct offset at any distance.
Missiles fired by A_FireBullets don't get offsets
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!
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!
-
- Global Moderator
- Posts: 1116
- Joined: Mon Jul 21, 2008 4:08 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia (Modern GZDoom)
Missiles fired by A_FireBullets don't get offsets
You do not have the required permissions to view the files attached to this post.
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Missiles fired by A_FireBullets don't get offsets
This was one of these unfortunate external code submissions that were just broken by design. To be honest, this code should never have been added to that function.