A_PoisonBagDamage

From ZDoom Wiki
Jump to navigation Jump to search

A_PoisonBagDamage

(no parameters)

A more specialized form of A_Explode.

It deals 4 damage to a distance of 40 units. The calling actor's target is considered responsible for the damage.

Additionally, it causes the calling actor to bob up and down in a way similar to if it had the FLOATBOB flag set. This codepointer would need to be called every tic to make the calling actor bob at the same speed as an actor with FLOATBOB; the PoisonCloud which calls it every two tics thus bobs at only half the speed.

Examples

See PoisonCloud for an example.