A_AddPlayerRain

From ZDoom Wiki
Jump to navigation Jump to search

A_AddPlayerRain
(no parameters)

Does nothing if the calling actor has no valid target, or its target is dead. This function is meant to be called by a projectile, and uses the caller's target field to know who shot the caller.

If the target does not already have a RainTracker it its inventory, creates one and puts it in. A rain tracker can only store two "rains", so if an existing one is already tracking two existing rains, the oldest of the two is set to terminate and the calling actor replaces it. The way it does so is by setting to 16 the health of the rain with the smallest amount of hit points, and let A_SkullRodStorm whittle the rest away quickly.

This codepointer is restricted to HornRodFX2 and derived classes.