Falling counter
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.