by Zhs2 » Sun Feb 11, 2018 1:13 pm
+PUFFGETSOWNER on an actor spawned by P_SpawnBlood is supposed to set the spawned blood actor's target field to the actor the blood originated from, but the target field won't be set on such a blood actor when the inflictor of the damage isn't another actor, e.g. damage is dealt by a crushing sector or polyobject. I suspect this problem arises because of something deeper in how damage mechanics work, so I'm not sure just how unintentional this behavior may be. As it is, this can be easily tested with the simple ZScript lump below on MAP06, the mastermind crusher (versus shooting any actor with your pistol or something).
- Attachments
-
- zscript.txt
- It's just one lump, didn't bother to zip it
- (1.12 KiB) Downloaded 30 times
+PUFFGETSOWNER on an actor spawned by P_SpawnBlood is supposed to set the spawned blood actor's target field to the actor the blood originated from, but the target field won't be set on such a blood actor when the inflictor of the damage isn't another actor, e.g. damage is dealt by a crushing sector or polyobject. I suspect this problem arises because of something deeper in how damage mechanics work, so I'm not sure just how unintentional this behavior may be. As it is, this can be easily tested with the simple ZScript lump below on MAP06, the mastermind crusher (versus shooting any actor with your pistol or something).