Falling counter

From EDukeWiki
Revision as of 00:47, 7 November 2009 by TX (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.