A_CustomMeleeAttack bleed property
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.
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.
- 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
Setting the bleed property of A_CustomMeleeAttack to 1 or true does not make targets bleed when attacked.
-
- Posts: 5043
- Joined: Sun Nov 14, 2010 12:59 am
Re: A_CustomMeleeAttack bleed property
Working fine for me.
- 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
So something like this works just fine?
Must be my mod then, not sure what it is about using modified blood actors but something always messes up when you do.
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
-
- Posts: 5043
- Joined: Sun Nov 14, 2010 12:59 am
Re: A_CustomMeleeAttack bleed property
As far as I know, melee attacks only generate blood decals. And that's what the "bleed" parameter is for.
- 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
Ahh i see, so it wont generate actual blood like the players melee attacks. That's not inconsistent at all 

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: A_CustomMeleeAttack bleed property
It's a completely different kind of attack. The player uses a short range hitscan attack. Monsters just damage their target.
- 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
So, in theory i could have them perform a short range hitscan attack as well to achieve the same effect.Graf Zahl wrote:It's a completely different kind of attack. The player uses a short range hitscan attack. Monsters just damage their target.
Edit: Yep, that works very well and has the added benefit of being able to specify a range for it.

Edit2: Nevermind, I forgot that hitscans still don't like the species property

- ChronoSeth
- Posts: 1631
- Joined: Mon Jul 05, 2010 2:04 pm
- Location: British Columbia
Re: A_CustomMeleeAttack bleed property
Use a damagetype on the puff...
- 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
the problem with this is that setting a damagefactor to 0.0 will still cause the attack to spawn blood on that actor.ChronoSeth wrote:Use a damagetype on the puff...
- 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
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.
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.
- 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
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.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.
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.
Re: A_CustomMeleeAttack bleed property
You sound quite disillusioned...
- 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
I'm sorry, i get frustrated easily.randy wrote:You sound quite disillusioned...
Re: A_CustomMeleeAttack bleed property
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.)
- 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
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.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 understand now why its not working, if there is solution to the problem then that's all i wanted to bring to attention.