Falling counter - EDukeWiki

# Falling counter

From EDukeWiki

falling_counter is incremented by 1 for each tic the player's poszv value is greater than 2400. It is initialized to 0 and is used to determine the amount of damage you receive from a fall.

If the counter exceeds 8, the player will take (falling_counter - [Random 0 to 3]) damage upon touching the floor of a sector not lotag 1 or 2.

If the counter exceeds 37, the player will begin screaming as he falls.

If the counter exceeds 62, the player has hit "terminal velocity" and will die upon impact.

The maximum value for falling_counter is 255.

Also see tutorial for limiting damage from falls or prevent falling death.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Falling_counter&oldid=8676"
Category:

- Player structure members