Falling counter: Difference between revisions
Jump to navigation
Jump to search
LordMisfit (talk | contribs) mNo edit summary |
LordMisfit (talk | contribs) m Adding in a small formula for the damage from falling based on the source code. >.> |
||
Line 1: | Line 1: | ||
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. | 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 | 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 '''37''', the player will begin screaming as he falls. |
Revision as of 22:44, 15 October 2007
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.