I'm trying to create a custom blood effect, but I have a problem. If I spawn "NewBlood" (in front of the player) using the console, everything works correctly, however when a monster takes damage, "Bloodimpact" does not spawn all of the time when the monster bleeds. Can someone explain to me why this is happening and offer a fix? Here's the code:
Question
Neccronixis
Hi,
I'm trying to create a custom blood effect, but I have a problem. If I spawn "NewBlood" (in front of the player) using the console, everything works correctly, however when a monster takes damage, "Bloodimpact" does not spawn all of the time when the monster bleeds. Can someone explain to me why this is happening and offer a fix? Here's the code:
actor NewBlood replaces blood
{
+FORCEXYBILLBOARD
+ALLOWPARTICLES
+PUFFGETSOWNER
+NOBLOCKMAP
+NOTELEPORT
+NOTONAUTOMAP
+THRUACTORS
+DONTSPLASH
States
{
Spawn:
TNT1 A 0 Nodelay A_spawnitemEx("Bloodimpact", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERTRANSLATION)
TNT1 AAAAAAAA 0 A_spawnitemEx("Flyingbloodparticle", frandom(-5,5), frandom(-5,5), frandom(-5,5), frandom(2,4), frandom(0,0), frandom(-4,4), frandom(0,360), SXF_TRANSFERTRANSLATION)
TNT1 A 0 A_spawnitemEx("FlyingBlood",0,0,0,frandom(-2,2),frandom(-4,4),frandom(8,10),frandom(0,360), SXF_TRANSFERTRANSLATION, 128)
TNT1 A 0 A_spawnitemEx("Blooddrop",0,0,0,frandom(-4,4),frandom(-4,4),frandom(0,0),frandom(0,360), SXF_TRANSFERTRANSLATION, 192)
Stop
}
}
actor Bloodimpact : Newblood
Edited by Neccronixis{
+NOINTERACTION
States
{
Spawn:
BLOD BCD 3
Stop
}
}
Share this post
Link to post
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.