I have this line right here. What this override does is it makes every poisoned enemy call A_Explode. So far so good, but some enemies have +DONTHARMSPECIES, which makes this attack do practically nothing on themselves or other nearby actors of the same species if XF_NOTMISSILE is supplied. Omitting it works as expected (by me).
Here are some actors to test with:
Code: Select all
class DoomImp1 : DoomImp
{
Default
{
+DONTHARMCLASS
}
override void PostBeginPlay()
{
A_Explode (500, 260, XF_NOTMISSILE | XF_HURTSOURCE, false, 180);
Super.PostBeginPlay();
}
}
class DoomImp2 : DoomImp
{
Default
{
Species "SomeImp";
+DONTHARMSPECIES
}
override void PostBeginPlay()
{
A_Explode (500, 260, XF_NOTMISSILE | XF_HURTSOURCE, false, 180);
Super.PostBeginPlay();
}
}
The reason I'm reporting this is to determine if this is a legit bug or if a foil flag could be added to A_Explode to allow explicit damaging of same-species actors.