AddPlayerRain: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{codepointer|description=Heretic hell rain setup |usage='''A_AddPlayerRain''' |notes= If in multiplayer, checks if player index from counter 1 exists and is alive. If in single player, it just checks if the only player is alive. Each player can have at most two rains active. If less are active, then this codepointer sets the free slot to this current actor. If both are occupied, then it clears the one with less health, reducing it to 16 if greater, and replaces it with...") |
(No difference)
|
Latest revision as of 15:52, 24 October 2024
Description
Heretic hell rain setup
Usage
A_AddPlayerRain
Parameters
No parameters.
Examples
No examples given.
Notes
If in multiplayer, checks if player index from counter 1 exists and is alive. If in single player, it just checks if the only player is alive.
Each player can have at most two rains active. If less are active, then this codepointer sets the free slot to this current actor. If both are occupied, then it clears the one with less health, reducing it to 16 if greater, and replaces it with the calling actor.
Essentially the purpose of this codepointer is to register the calling actor as an active player rain, and to limit the count to 2 per player.