Difference between revisions of "Fall Damage"

Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Falling damage is calculated at the time the actor lands. Damage increases non-linearly.
+
Falling damage is calculated at the time the actor lands. Damage increases non-linearly, based on the maximum health of the character.
Since the origin is at the very top left of a map, the height <math>h</math> the actor fell is calculated with <math>h=y_{actor}-y_{fall\_start}\,</math>.
+
Fall damage pierces any shield effects and cannot be absorbed.
 
 
The height of the fall is then mapped to the percentage of HP the actor should lose:
 
 
 
<math>{damage} = \frac{5h^2 - 341h - 110215}{10000}</math>
 
  
 
Quick facts:
 
Quick facts:
 
* The smallest height to sustain fall damage is 192 pixels, and causes damage equal to 1% of the player's maximum HP.
 
* The smallest height to sustain fall damage is 192 pixels, and causes damage equal to 1% of the player's maximum HP.
* Falling anything in excess or equal to 507 pixels will knock you out.
+
* Falling anything in excess or equal to 507 pixels will knock a player out.
 
* Falling 451 pixels causes damage equal to 75% of the player's maximum HP.
 
* Falling 451 pixels causes damage equal to 75% of the player's maximum HP.
 
* Falling 386 pixels causes damage equal to 50% of the player's maximum HP.
 
* Falling 386 pixels causes damage equal to 50% of the player's maximum HP.
 
* Falling 305 pixels causes damage equal to 25% of the player's maximum HP.
 
* Falling 305 pixels causes damage equal to 25% of the player's maximum HP.
* Only players or monsters that side players sustain fall damage.
+
* Only players or monsters that side players sustain fall damage, hostile monsters do not.
* Actors that have the STATUS_FLYING status effect and monsters that are always flying (stat_flies flag) do not sustain fall damage.
+
* Actors that have the STATUS_FLYING status effect and monsters that are always flying do not sustain fall damage.
 +
 
 +
[[Category: Game Mechanics]]

Latest revision as of 16:56, 21 October 2018

Falling damage is calculated at the time the actor lands. Damage increases non-linearly, based on the maximum health of the character. Fall damage pierces any shield effects and cannot be absorbed.

Quick facts:

  • The smallest height to sustain fall damage is 192 pixels, and causes damage equal to 1% of the player's maximum HP.
  • Falling anything in excess or equal to 507 pixels will knock a player out.
  • Falling 451 pixels causes damage equal to 75% of the player's maximum HP.
  • Falling 386 pixels causes damage equal to 50% of the player's maximum HP.
  • Falling 305 pixels causes damage equal to 25% of the player's maximum HP.
  • Only players or monsters that side players sustain fall damage, hostile monsters do not.
  • Actors that have the STATUS_FLYING status effect and monsters that are always flying do not sustain fall damage.