Repository navigation
fix: a hero who dies in water no longer swims - the corpse, the view and the death menu stay still, 'New game' and 'Load' can be hit - #586
Open
BoroBongo wants to merge 2 commits into
Conversation
…ath menu stay still, "New game" and "Load" can be hit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… stops it all at once, a loaded game starts over without reading the old world's hero Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
AI review (architecture-reviewer + gothic-reviewer)
Fixed in this PR:
Deferred on purpose (YAGNI): one shared "hero movement frozen" answer for all movement adapters. Death is the only reason today that leaves the hero in water with input; a knocked-out or sleeping hero is already locked by the player locks. Verified locally:
Reports and answers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A hero who dies in water no longer swims. Before, the corpse kept bobbing and the player's hands kept stroking: the grip plus a hand moving towards the death menu pushed the rig, so the menu swayed and "New game" / "Load" were hard to hit.
On
HeroDied,VRSwimDivestops everything at once:StopDiving, and the dark fade ends).The mode stays as it was. Loading a game (
LoadGameStart) starts over: the old world's hero isn't read while the new world loads, andWorldSceneLoadedleaves the water if the hero spawns on land.Why
Playtest (G1 Mroczne Tajemnice, a Gothic 1 mod, VR simulator): after dying while swimming the death menu kept swaying with the floating corpse and couldn't be clicked.
How to test manually
killon yourself, or a monster). The log shows[VRSwimDive] The hero died (Swim) - swimming stops until a game is loaded., the corpse and the view stay still, and "New game" / "Load" in the death menu can be hit.Save/load
Nothing is saved. A load clears the stop and the old hero references.
Known gaps / follow-ups
.claude/review/fix-dead-hero-stops-swimming/(architecture: fits with concerns -> bobbing and event-driven stop fixed; gothic: no bugs, three nits fixed). Kept for later on purpose: one shared "hero movement frozen" answer for all movement adapters, because death is the only reason today (YAGNI).🤖 Generated with Claude Code