I wasn't sure whether to call this a bug or to request this feature as other blood does have this, but weapons that have +WEAPON.AXEBLOOD are supposed to call an axeblood actor instead of regular blood; https://zdoom.org/wiki/Classes:AxeBlood
While all of this works, it appears axeblood does not have a target pointer set, while regular blood does. This is problematic in my mod, where zombies have green blood over red blood for humans. This only works with regular blood, while the code is identical. I do need axeblood to simulate more blood.
Axeblood appears to have no target with +PUFFGETSOWNER
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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Axeblood appears to have no target with +PUFFGETSOWNER
The code actually sets it, even without the PUFFGETSOWNER flag. You will have to provide a runnable example where you think something doesn't work.
Re: Axeblood appears to have no target with +PUFFGETSOWNER
Oops. I forgot to provide the example wad I made back when I reported it on Zandronum.Graf Zahl wrote:The code actually sets it, even without the PUFFGETSOWNER flag. You will have to provide a runnable example where you think something doesn't work.
https://zandronum.com/tracker/file_down ... 2&type=bug
Go to the map DEBUG, and have bots walk over the stimpacks. Then simply shoot them with any doom 2 weapon to notice green blood. Then give yourself the shotgun2 weapon, and shoot again. Notice how it's red blood now. It should be green.
The first two actors in there are all that are needed to be checked. NewBlood is spawned by normal weapons, while MoreBlood is spawned by weapons with the +WEAPON.AXEBLOOD flag. As you see, they are identical basically, apart from a bit more blood spawn with the latter.
I should mention that I need this fixed in order for it to be backported into Zandronum.
Re: Axeblood appears to have no target with +PUFFGETSOWNER
From actors/effects/blood.dec
Please check A_JumpIfInTargetInventory's offset and compare it to the next state definition. It should be TNT1 A 0 ... but not TNT1 AAA 0 ... there.
Code: Select all
actor MoreBlood : Blood
{
// <...>
States
{
Spawn:
// <...>
TNT1 A 0 A_JumpIfInTargetInventory("IsZombie", 1, 2)
TNT1 AAA 0 A_SpawnItem("BloodSpawner")
stop
TNT1 AAA 0 A_SpawnItem("ZombieBloodSpawner")
stop
}
}
Re: Axeblood appears to have no target with +PUFFGETSOWNER
Wow, I made this mistake years ago and never noticed it. Thank you for the help!