Page 1 of 1

I can't get NOINFIGHTING and A_PainAttack to work

Posted: Fri Jun 08, 2018 6:45 pm
by 3saster
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.

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
}
I'm running into two problems:
  • 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)
This might be a bug, but it is probably me not doing stuff properly. What am I doing wrong?