[Can't fix] [2.8pre-1190] Projectiles bounce improperly off Actor tops

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[2.8pre-1190] Projectiles bounce improperly off Actor tops

Postby Yholl » Sun Feb 15, 2015 10:55 am

I've been working on a weapon that uses the various bounce states to have different impact effects based on what surfaces and actors etc. it hits. This works perfectly, except for one major problem; a bouncing projectile that strikes the top of a monster's hitbox will not go to any bounce state, and will also do no damage. So shooting enemies from above causes your shots to harmlessly ricochet off their heads into the distance.

I've got a test wad put together here that shows off the effect. Give all weapons, go above an enemy with the test chaingun and your shots will bounce off.

Also of note is that the killing shot on a bleeding actor calls Bounce.Actor instead of Bounce.Actor.Creature, not sure if intended or not. Thought I'd mention it.
User avatar
Yholl
I will hit you with my Decorate.
 
Joined: 17 Dec 2012
Location: Here, stupid.

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Turret49 » Fri Jul 22, 2016 4:00 am

I've got this same problem as well, tested with "Doom", "Hexen" and "Grenade" bounce types. When hitting the top or bottom of an actor (be it a monster or a solid decoration), the bouncy projectile will not collide with the actor and instead "slide" over/under them. You can try this out with vanilla ZDoom simply by using the console to summon a spider mastermind, fly over it, then summon a "Grenade" actor onto it. the grenade will just slide over the mastermind's hitbox instead of bouncing or exploding. It's also possible to have the sliding bug occur if a bouncable projectile hits the underside of a monster, like a cacodemon or pain elemental.

This bug happens in both ZDoom and GZdoom.
(tested in [2.9pre-1100-gb2a88c1] & [g2.2pre-1846-gbce9929] respectively, the latest dev builds at time of posting)
Turret49
 
Joined: 29 Aug 2015

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Edward-san » Fri Jul 22, 2016 5:30 am

Does it happen with gzdoom 1.8.6?
Edward-san
Mathematics is the language with which God has written the universe. (Galilei)
 
Joined: 17 Oct 2009

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Graf Zahl » Fri Jul 22, 2016 5:41 am

This is most likely something very old. The entire bouncing code is quite a mess, all inherited from Hexen and Strife.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Turret49 » Fri Jul 22, 2016 11:18 am

Edward-san wrote:Does it happen with gzdoom 1.8.6?

I went and downloaded it fresh from the archive, seems so. Also, it's worth mentioning that if the projectile has no x/y velocity, it will just sit there on top of the actor's head.
Spoiler:

Graf Zahl wrote:This is most likely something very old. The entire bouncing code is quite a mess, all inherited from Hexen and Strife.

There actually was an old bug that was fixed where bounce actors landing on top of others would get stuck, perhaps that's related to this?
viewtopic.php?f=7&t=26804
Turret49
 
Joined: 29 Aug 2015

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Talon1024 » Sat Jul 23, 2016 8:19 pm

On a related note, projectiles that have the THRUGHOST flag will bounce off the top of GHOST actors when they should go through them. See this issue for specific details.
Talon1024
 
 
 
Joined: 28 Jun 2016
Github ID: Talon1024
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Graf Zahl » Mon Dec 26, 2016 3:58 pm

So, here's the problem: The missile got the unconditional 'bounce on actors' flag, and the vertical bouncing respects that. The horizontal bouncing does not. And fixing this would break a lot of stuff. Unfortunately the entire thing is such a clusterfuck of messed up ideas that the attempt of fixing it is bound to backfire.

What this needs is some complete deprecation of the entire thing and starting fresh, but that's not something I want to attempt.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Major Cooke » Mon Dec 26, 2016 4:05 pm

Oh shitstains, that's not good.
User avatar
Major Cooke
Do unto others as you would have unto you. Judge yourself first.
 
Joined: 28 Jan 2007

Re: [2.8pre-1190] Projectiles bounce improperly off Actor to

Postby Graf Zahl » Mon Dec 26, 2016 4:10 pm

What so you expect. If I make it respect that flag properly, crowd A screams because it breaks their mods, if I change the bouncing off the top crowd B will scream. There is no sane way to fix something this comprehensively fucked up.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: Awario [RSS] and 0 guests