Repository navigation
Conversation
Kharote
marked this pull request as ready for review
November 24, 2026 11:34
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
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 this changes
Players running close past an NPC (a guard) lost stamina, then health, as if hit, though the NPC never attacked. The game takes stamina for a bump of two bodies as for a blow. KCDS already makes a bump of the local player cost nothing (the collision's velocities made still before the game rates it), but only while both bodies move no faster than 4.5 m/s, a jog; a run or a sprint on foot is faster, so brushing past a person at a run still cost.
How it was tested
Kit, one game: the player sprinted 8 m straight through a standing NPC, stamina and health logged twice a second. The client logged the bump and kept the stamina (
COLLISION bump: the local player keeps state 1 at 119.07); stamina fell only by the sprint's own drain (126.7 to 116.3 over 3 s, back to 126.7 after), health stayed 100. Before, a bump at a sprint cost 24.5 stamina at once.Checklist
python Dev/tools/format_source.py --checkpasses.