[1764] Melee weapons not "sticking" ...

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

[1764] Melee weapons not "sticking" ...

Post by Project Shadowcat »

When attacking monsters from the underside or above, melee weapons such as the chainsaw do not snap or grab the player towards the target. In the case of the chainsaw, in addition to before, the attack sound doesn't change, however damage is still being dealt as normal. Try latching onto a cacodemon while it descends and see what happens.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: [1764] Melee weapons not "sticking" ...

Post by NeuralStunner »

I tried this one a bit. Those blasted cacodemons just don't cooperate... I had a hard time even getting one over me.

As for the lack of "pull", I would suspect this has to do with the player already having crossed the monster's center axis. I don't know for sure about the sound issue, I couldn't tell if it was actually doing damage. The caco kept moving out of range (Because, yes, the chainsaw wasn't "grabbing").
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: [1764] Melee weapons not "sticking" ...

Post by bagheadspidey »

Could it have something to do with the new autoaim flags for weapons? Melee weapons should autoaim by default (so maybe they should have that new flag in zdoom.pk3). Just a guess.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [1764] Melee weapons not "sticking" ...

Post by Graf Zahl »

No, this has nothing to do with autoaim. The code just isn't equipped to handle a hit from above or below. That was never an option in Doom originally.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [1764] Melee weapons not "sticking" ...

Post by Graf Zahl »

Since you seem to know how to reproduce this, can you please create a savegame which can be used for testing? Otherwise I can almost guarantee that this report will rot here until eternity or a stroke of dumb luck.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: [1764] Melee weapons not "sticking" ...

Post by Project Shadowcat »

I'll do even better. Give me a minute to make a simple level where this can be recreated.
It's also been 150 revisions...
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: [1764] Melee weapons not "sticking" ...

Post by Project Shadowcat »

Load this up in Doom II. Let the Cacodemon approach you and try to cut down the underside. The chainsaw won't stick, won't sound a hit, but will still do damage.

God mode is already activated and you already have a chainsaw.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [1764] Melee weapons not "sticking" ...

Post by Graf Zahl »

Damn. As I feared. This won't be easy to fix. It's precisely as I suspected: The hit from above or below just was never considered possible when all this was written.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: [1764] Melee weapons not "sticking" ...

Post by Project Shadowcat »

Graf Zahl wrote:Damn. As I feared. This won't be easy to fix. It's precisely as I suspected: The hit from above or below just was never considered possible when all this was written.
That might have been why floating monsters automatically descended to your level when you approached them.
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Re: [1764] Melee weapons not "sticking" ...

Post by Kate »

You wanna know what's really funny? I mentioned this before and it got ignored.
I, in the other thread, wrote:EDIT: Now here's a strange fact that I noticed: if you hit the top of an object while looking down at it, it doesn't count as a hit to melee or A_JumpIfCloser, but if you're literally standing on top of the object so that the object is "behind" you and you attack straight down (I'm using GZDoom to test this since it would be impossible due to the constrained freelook), it does count as a hit.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [1764] Melee weapons not "sticking" ...

Post by Graf Zahl »

Here's a hint: A demo WAD that's easy to debug works wonders in getting a bug fixed.

If you just report an odd situation without providing any assistance in reproducing it chances are slim that it gets addressed.


Speaking of this, you recently reported a bug over at the GZDoom forums but did not respond to any of my follow-up posts or the PM I sent you. So please don't be surprised that the bug is still open.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: [1764] Melee weapons not "sticking" ...

Post by HotWax »

Project Dark Fox wrote:That might have been why floating monsters automatically descended to your level when you approached them.
Doubtful. Remember you couldn't look up or down at all in Doom, and you couldn't stand on top of or under enemies, so I'm sure they never considered the case of a directly vertical hit because you couldn't possibly be in a position to fire one. The auto-levelling feature I'm sure was there so that cacodemons and other floating enemies wouldn't sit there pelting the player from above while he could do little about it because he couldn't look up to see where they were.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: [1764] Melee weapons not "sticking" ...

Post by Project Shadowcat »

While I did say "might", that was probably the biggest reason. Thanks for pointing it out, I admit I forgot.
User avatar
Tails Butt
Posts: 46
Joined: Mon Apr 06, 2009 8:50 pm
Location: GA: United States

Re: [1764] Melee weapons not "sticking" ...

Post by Tails Butt »

A little easier with the cacodemon as a fish in a barrel and friendly.
Attachments
HitscanBug.wad
(4.71 KiB) Downloaded 61 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [1764] Melee weapons not "sticking" ...

Post by Graf Zahl »

HotWax wrote:
Project Dark Fox wrote:That might have been why floating monsters automatically descended to your level when you approached them.
Doubtful. Remember you couldn't look up or down at all in Doom, and you couldn't stand on top of or under enemies, so I'm sure they never considered the case of a directly vertical hit because you couldn't possibly be in a position to fire one.

In fact, even ZDoom couldn't do it until version 2.1.0. Before that such shots just went through.
Post Reply

Return to “Closed Bugs [GZDoom]”