CMCharacter Modules 0.1.0

Fall Damage

Kind: Modifier · Add Component: Character Modules > Gameplay > Fall Damage

Hurts on long falls and kills on very long ones. Height becomes a danger and a decision.

Long falls hurt, and very long ones kill. It makes height a danger and a decision, and its numbers are part of how far a level lets the player drop.

Inspector
▼Fall Damage⋮
CharacterCharacter (Character Motor)
Safe Height4
Deadly Height20
Minimum Landing Speed0
StepsOff ▾
First Step0.25
Second Step0.5
The Fall Damage component in the Inspector, with its defaults.
Origin. Quake (1996) and Half-Life (1998); Super Mario 64 (1996) hurts in two steps; Counter-Strike (1999) by landing speed.

How it works

Changes no state: it only reports or reacts.

Fall Damage: landing hurts once the fall is higher than safeHeight, and kills from deadlyHeight on, with a straight line between. The height is measured: from the highest point the character reached while rising (or where it left the ground) down to where it lands, so a long fall at terminal speed counts in full. Landing in water or on a surface marked No Fall Damage is free. With Steps on, damage comes in two fixed amounts instead (classic 3D platformers: a quarter of health above 12.9 m, half above 33.8 m, and only when landing faster than 18.6 m/s).

Combine it

  • Needs: Health, Air Move. The Inspector warns while one is missing.
  • Used by the presets: Arena Shooter, Competitive Shooter, Surf, Retro Platformer, Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Safe HeightHighest fall that does no damage, metres.0 or more4
Deadly HeightA fall this high or higher kills, metres (or with Steps, does the second step's damage).0 or more20
Minimum Landing SpeedLandings slower than this never hurt, m/s.0 or more0
StepsDamage in two steps instead of growing with the height, as in classic 3D platformers.Off
First StepWith Steps: share of full health a fall above Safe Height takes.0 to 10.25
Second StepWith Steps: share of full health a fall above Deadly Height takes.0 to 10.5

Additional resources