A_CustomMeleeAttack bleed property

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.
Post Reply
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

A_CustomMeleeAttack bleed property

Post by Xtyfe »

Setting the bleed property of A_CustomMeleeAttack to 1 or true does not make targets bleed when attacked.
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: A_CustomMeleeAttack bleed property

Post by Blue Shadow »

Working fine for me.
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

So something like this works just fine?

Code: Select all

	Melee:
		TNT1 A 0 A_PlaySound ("imp/swing", 6, 1, 0)
		TROO EF 5 A_FaceTarget
		TNT1 A 0 A_CustomMeleeAttack (5, "imp/melee", "", "Melee", 1)
		TROO G 10 A_FaceTarget
		Goto See
Must be my mod then, not sure what it is about using modified blood actors but something always messes up when you do.
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: A_CustomMeleeAttack bleed property

Post by Blue Shadow »

As far as I know, melee attacks only generate blood decals. And that's what the "bleed" parameter is for.
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

Ahh i see, so it wont generate actual blood like the players melee attacks. That's not inconsistent at all :p
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_CustomMeleeAttack bleed property

Post by Graf Zahl »

It's a completely different kind of attack. The player uses a short range hitscan attack. Monsters just damage their target.
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

Graf Zahl wrote:It's a completely different kind of attack. The player uses a short range hitscan attack. Monsters just damage their target.
So, in theory i could have them perform a short range hitscan attack as well to achieve the same effect.

Edit: Yep, that works very well and has the added benefit of being able to specify a range for it. :D
Edit2: Nevermind, I forgot that hitscans still don't like the species property :(
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: A_CustomMeleeAttack bleed property

Post by ChronoSeth »

Use a damagetype on the puff...
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

ChronoSeth wrote:Use a damagetype on the puff...
the problem with this is that setting a damagefactor to 0.0 will still cause the attack to spawn blood on that actor.
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: A_CustomMeleeAttack bleed property

Post by NeuralStunner »

You'd have to throw the BLOODLESSIMPACT flag on it, and somehow spawn the blood yourself in the puff's XDeath state (which is entered if it hts a bleeding actor).

PUFFGETSOWNER, DONTHARMSPECIES, and [wiki]A_Explode[/wiki] (with full radius damage) can be used to make a species-friendly hitscan. (Bleeding issues, see above.)

Note that melee attacks are typically so short in range, hitting other monsters isn't an issue anyway. If you want a longer range attack and you're that worried about intra-species damage, use projectiles. They actually don't work too badly.
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

NeuralStunner wrote:You'd have to throw the BLOODLESSIMPACT flag on it, and somehow spawn the blood yourself in the puff's XDeath state (which is entered if it hts a bleeding actor).

PUFFGETSOWNER, DONTHARMSPECIES, and [wiki]A_Explode[/wiki] (with full radius damage) can be used to make a species-friendly hitscan. (Bleeding issues, see above.)

Note that melee attacks are typically so short in range, hitting other monsters isn't an issue anyway. If you want a longer range attack and you're that worried about intra-species damage, use projectiles. They actually don't work too badly.
My tests with short range hitscans seem to be that they only work with a range of 64, or else the monster will try to do the attack without being close enough. Also it seems to be very possible for them to hit something else with it as i have replicated the behavior many times.

Just to make them bleed from close range attacks, I love that i gotta use such a hacky method to do something that should be simple, I love zdoom so much. Honestly i'm wondering if its even worth it to mod for zdoom anymore since its in development hell and it has so many problems hindering what i want to do.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: A_CustomMeleeAttack bleed property

Post by randi »

You sound quite disillusioned...
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

randy wrote:You sound quite disillusioned...
I'm sorry, i get frustrated easily.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: A_CustomMeleeAttack bleed property

Post by randi »

So where would you suggest the blood spawn? Since melee attacks are simply calls to P_DamageMobj, there is no point of impact at which to spawn the blood as there is with a line attack. (Not that it can't be done; you're just the first person who has voiced a problem with the way melee attacks are.)
User avatar
Xtyfe
Posts: 1490
Joined: Fri Dec 14, 2007 6:29 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: A_CustomMeleeAttack bleed property

Post by Xtyfe »

randy wrote:So where would you suggest the blood spawn? Since melee attacks are simply calls to P_DamageMobj, there is no point of impact at which to spawn the blood as there is with a line attack. (Not that it can't be done; you're just the first person who has voiced a problem with the way melee attacks are.)
I have the gift of seeing things that people don't, im a picky person. I strive for perfection in what I do despite how small it might be.

I understand now why its not working, if there is solution to the problem then that's all i wanted to bring to attention.
Post Reply

Return to “Closed Bugs [GZDoom]”