You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fall damage and jump/fall animations for the hero (VR and Flat) #499
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).
#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.
Activity
[-]Fall damage for the hero (VR and Flat)[/-][+]Fall damage and jump/fall animations for the hero (VR and Flat)[/+]JaXt0r commentedon Nov 12, 2026
Appreciate it. When can we have it? 😅
BoroBongo commentedon Nov 30, 2026
#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.