CMCharacter Modules 0.1.0

Crush Damage

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

Kills a character squeezed against the world. Crushers and closing doors become hazards.

Being squeezed between a moving object and the world kills. Crushers, closing doors and lowering ceilings become hazards.

Inspector
▼Crush Damage⋮
CharacterCharacter (Character Motor)
Damage Per Second400
The Crush Damage component in the Inspector, with its defaults.
Origin. Doom (1993) crushing ceilings; Quake (1996) doors.

How it works

Changes no state: it only reports or reacts.

Crush Damage: hurts the character while it is squeezed between surfaces it cannot get out from, such as a lift coming down onto it. The motor reports those steps as Crushed events.

Combine it

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

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Damage Per SecondDamage per second while crushed.0 or more400

Additional resources