Skip to content

Fall damage and jump/fall animations for the hero (VR and Flat) #499

Open

Description

@BoroBongo

In Gothic, gravity hurts the hero too. A fall deeper than the guild's FALLDOWN_HEIGHT costs FALLDOWN_DAMAGE HP per meter, minus the armor's PROT_FALL (Species.d). A deep fall kills.

Today only NPCs take fall damage (NpcJumpFall.ApplyFallDamage, which raises GlobalEventDispatcher.FallDamage). The player can jump or walk off any cliff without losing HP.

Wanted: fall damage

  • The hero uses the same engine rule. The fall height is measured from the moment the rig / character controller leaves the ground until it lands, in VR and in Flat.
  • HP changes through NpcService.SetAttribute (so hit numbers and bars update). A deep fall kills the hero, like in the engine.
  • No fall damage for water landings (swimming), Marvin's god mode (cheat god), or teleports and scripts that move the hero.

Wanted: jump and fall animations (VR hero body)

  • Jumping plays Gothic's jump. When standing: T_STAND_2_JUMP, then S_JUMP in the air, then T_JUMP_2_STAND on landing. When running: T_RUNL_2_JUMP, then S_JUMP, then T_JUMP_2_RUNL.
  • Falling starts with S_FALLDN and switches to S_FALL when the fall gets deep, the same rule as NpcJumpFall. The landing plays the fall's end (T_FALLDN_2_STAND, or T_FALL_2_FALLEN and stand up after a deep fall).

Found while play-testing the wave 2 stack.

Activity

  1. changed the title [-]Fall damage for the hero (VR and Flat)[/-] [+]Fall damage and jump/fall animations for the hero (VR and Flat)[/+] on Nov 6, 2026
  2. JaXt0r commented on Nov 12, 2026

    @JaXt0r
    Contributor

    Appreciate it. When can we have it? 😅

  3. BoroBongo commented on Nov 30, 2026

    @BoroBongo
    ContributorAuthor

    #584 (feature/hero-jump-fall, stacked on #583 -> #567) adds fall damage for the hero (HeroFallService, HeroAirborneDomain) and the VR body's jump/fall/landing animations (VrHeroJumpFall, VrHeroLocomotion, VrHeroDownPose).
    One difference from this issue, on purpose: damage only when the hero lands lying (see ADR 2026-11-29-hero-jump-fall).
    Will be closed by #584 once merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions