This is what Zdoom Wiki describes:
https://zdoom.org/wiki/Actor_flags#INVULNERABLE
https://zdoom.org/wiki/Actor_flags#NODAMAGE
And here is DECORATE code
Code: Select all
actor undead: DoomImp
{
+INVULNERABLE
+NODAMAGE //If this flag is not set, the actor never feels pain. But if it is set, the monster enter Pain state all the time.
PainChance 256
}