Falling counter

From EDukeWiki
Revision as of 23:44, 15 October 2007 by LordMisfit (talk | contribs) (Adding in a small formula for the damage from falling based on the source code. >.>)
Jump to navigation Jump to search

A counter initialized when the player is falling. The end value when you reach the ground is used to determine the amount of damage you receive from a fall.

If the counter reaches or exceeds 9, the player will take (falling_counter - [Random 0 to 3]) damage

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

If the counter reaches or exceeds 62, the player has hit 'terminal velocity' and will die upon hitting the ground.

Appearantly the player's poszv value must reach or exceed 2560 for this value to begin counting.

Tutorial for limiting damage from falls or prevent falling death.