I can't get NOINFIGHTING and A_PainAttack to work
Posted: Fri Jun 08, 2018 6:45 pm
So experimenting with converting Scythe X's monsters to decorate, I ran into some problems. The idea is to have the projectiles the imps shoot at you turn into "ghosts" on impact that should rush towards you, then exist as free entities. Below is a more simplified example.
I'm running into two problems:
Code: Select all
Actor SoulBaron:BaronofHell
{
states
{
Missile:
BOSS EF 8 A_FaceTarget
BOSS G 8 A_CustomMissile("SoulPlasma")
Goto See
}
}
Actor SoulPlasma:ArachnotronPlasma
{
states
{
Death:
APBX AB 5 Bright
APBX C 5 Bright A_PainAttack("SoulImp")
stop
}
}
Actor SoulImp:DoomImp
{
Health 1
RenderStyle Add
Alpha 0.75
+NOINFIGHTING
+NOTARGET
+FLOAT
+NOGRAVITY
}
- The A_PainAttack is always directed toward the source that fired it (in this case the SoulBaron)
- The SoulImp can and very often does infight the SoulBaron that fired it, despite having a NOINFIGHTING flag and not taking damage (otherwise it would be dead)