Death Specials on lines don't activate if damager isn't player or monster

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Zikar
Posts: 4
Joined: Tue Feb 08, 2022 2:03 pm

Death Specials on lines don't activate if damager isn't player or monster

Post by Zikar »

It seems that Death Specials on lines with health won't activate if the damage was caused by something other than a player or a monster.

I tried damaging a wall through LineAttack(ACS) and, while it does reduce the wall's HP, it won't activate its special.

Barrel explosions activated with OPEN scripts also don't activate a wall's Death Special, but if the barrel is destroyed with an ENTER script then it will work.

I haven't tested sector damage or Damage Specials.

The WAD contains 4 walls, one with a barrel destroyed by and ENTER script, one destroyed an OPEN script and one with a switch that fires a LineAttack.
The other is just for shooting to show it works normally.
You do not have the required permissions to view the files attached to this post.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49118
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Death Specials on lines don't activate if damager isn't player or monster

Post by Graf Zahl »

The problem you are facing here is that the cases that don't work are not triggered by players. This means you need to enable the 'monsters can activate' flag for any line that is damageable and supposed to be triggered by non-player actors.

This cannot simply be disabled because modders may want to have items only the player can trigger.
In case of the barrels, the ENTER script is activated by a player which gets transferred to the barrel, while the OPEN script has no activator, making the barrel the source of the wall's damage.

Return to “Closed Bugs [GZDoom]”