replacing blood splatters
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
replacing blood splatters
The doom games obviously spawn spurts of blood when you shoot monsters. How would I go about replacing these with my own? I cannot seem to find definitions or any way to replace them. Can it be done with DECORATE or ZSCRIPT and if so, how would I do this?
Thanks in advance.
Thanks in advance.
Re: replacing blood splatters
This is what i do:
In this case:
The Doc: https://zdoom.org/wiki/Classes:BloodSplatter
Code: Select all
ACTOR LOSBloodSplatter : BloodSplatter replaces BloodSplatter
{...
Code: Select all
ACTOR YourBloodSplatter : BloodSplatter replaces BloodSplatter
{...
Re: replacing blood splatters
While BloodSplatter is a valid replaceable class, I don't think that's what the OP was asking for.Logan MTM wrote:This is what i do:
Hidden Hands, were you asking how to replace decals that show up on walls when you hit monsters, or the blood sprites that fly out?
For decals, you should look how Nash did it.
For sprites, replace the Blood class. BloodSplatter also works, but that one only shows up if hit by a +BLOODSPLATTER projectile.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: replacing blood splatters
If I replace the BLOOD class, I'm a little confused about it. Where are the sprites for the blood actually stored? They certainly aren't in the doom WAD right? I also can't find em in GZDOOM either?
Re: replacing blood splatters
The blood sprites are indeed in the Doom wads.
They are named BLUDA0, BLUDB0 and BLUDC0.
If you don't need to specify custom behavior, you can just replace the sprites and leave the class alone.
They are named BLUDA0, BLUDB0 and BLUDC0.
If you don't need to specify custom behavior, you can just replace the sprites and leave the class alone.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: replacing blood splatters
Ah ok, so one last question. In the DECORATE code for BLUD it has this:
What is SPRY? That's a sprite? Because the BLUD sprites are all thats needed I thought but I'm trying to understand it is all.
Code: Select all
Spray:
SPRY ABCDEF 3
SPRY G 2Re: replacing blood splatters
Those are Strife-specific sprites and state, as the wiki says:
If you don't include those sprites, then it won't jump to this state.Wiki wrote:If the game is Strife, and damage is greater then 13, it shifts to the Spray state (if it exists), otherwise it adds 2 to the damage check for the previous checks.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: replacing blood splatters
Ah ok cool. Thank you for all your help
.
