How to spawn puff via A_FireBullets, even when actor hit?
Posted: Wed Aug 14, 2013 9:15 am
So, the docs from the A_FireBullets function says,
But, on the puff documentation, there's another note,Optionally you can specify a puff type that is spawned when hitting a wall or a non-bleeding actor. The puff also determines the damage type of the attack.
However, I tried adding +PUFFONACTORS and +ALWAYSPUFF to a puff associated with A_FireBullets, and it doesn't seem to spawn on actors that bleed. What am I missing?by default, puffs are only spawned as a result of a hitscan attack hitting a wall, or an actor with one or more of NOBLOOD, INVULNERABLE and DORMANT flags set. In order for puffs to appear in other circumstances, certain flags must be in effect on either the puff actor or the target actor. The ALWAYSPUFF flag applied to the puff actor makes it spawn even for missed attacks. The PUFFONACTORS flag applied to the puff actor will make it spawn (instead of Blood) even if the hit actor does not have any of the aforementioned flags.