Repository navigation
Cheats: Improved horse controls - #1172
Open
Quorthon13 wants to merge 2 commits into
Open
Quorthon13 wants to merge 2 commits into
Quorthon13 wants to merge 2 commits into
Conversation
One option for the ridden horse, in Cheats, off by default. It replaces Sure-footed horse and adds to it: - The horse answers the stick at once. The game squares the stick's x, eases the steering in slowly (rate 0.06 per 30 fps frame) and cuts it to a half at the gallop; with the option on the stick goes in as it is, the steering follows it about three times as fast, and the canter and gallop keep more of it (0.93 and 0.7). - The horse keeps its speed through a turn. A turn blends the gallop into a turning run that covers less ground (a fifth less at a sharp turn); the option raises the horse's play rate by what that run loses. - A running horse no longer stops dead and rears at an obstacle or a cliff edge (Sure-footed horse, unchanged). The option's ini key is improved_horse. The old sure_footed key is no longer read: anyone who had Sure-footed horse on turns the new option on.
With Improved horse controls on, a horse at a walk, trot or canter still stopped at a big obstacle (a root too high to step on), with a short rear (Dislike) when the stop came right after a spur. The horse's stop check stops it at gears 1 to 3 whenever one of its probe rays finds nothing ahead, and only the top gear's look-ahead was patched. With the option on the whole stop check now answers "keep going", so no obstacle stops the horse at any gear; it gallops on and slides along what it can't climb. Stopping by pulling back is untouched: that stop comes from the gear the update picks. It also no longer holds a walking or standing horse back at a cliff edge: the option already said it doesn't stop at cliff edges, and its description now says so for every pace. The patch site moves from the look-ahead to the stop check's entry.
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
Riding a horse feels slow to respond, worst at a full gallop: the horse turns late and gently, and a sharp turn costs speed. The original game behaves the same way. Frame rate isn't the cause, since the steering already uses the frame time.
This replaces Sure-footed horse (#961) in Cheats > Travel with one option, Improved horse controls, off by default. It keeps what Sure-footed horse did and changes three things.
The horse follows the stick right away. The game squares the stick's x, so small nudges do almost nothing, eases the steering in slowly (rate 0.06 per 30 fps frame) and cuts it down at the canter and gallop, to half at the gallop. With the option on, the stick goes in as it is, the steering follows it about three times as fast, and the canter and gallop keep more of it (0.93 and 0.7).
The horse keeps its speed through a turn. At the gallop, a turn blends the straight run into a turning run that covers less ground, about a fifth less in a sharp turn. The option raises the horse's play rate by what the turning run loses, so the speed stays flat.
Obstacles don't stop the horse at any pace. Sure-footed horse covered only the top gear, so at a walk, trot or canter a big obstacle like a tree root still stopped the horse, with a short rear if you had just spurred. The option makes the horse's stop check always say to keep going, so the horse runs on and slides along whatever it can't climb. Pulling back still stops the horse, because that stop comes from the gear the game picks and not from the stop check.
The same stop check holds a horse back at cliff edges, so with the option on a horse goes over an edge even at a walk. The menu text and
docs/cheats-and-assists.mdsay so.Road following and the horse's own steering around obstacles stay as the game has them. Horses have no handling stat of their own (steering is the same on every horse), so no difference between horses is lost.
The ini key is
improved_horse. The oldsure_footedkey is no longer read, so anyone who had Sure-footed horse on has to turn the new option on. The patches are found by pattern intools/game_sites.pyas an optional group, so a game version without them just doesn't get the option. The option is translated for all 13 languages.How it was tested
Windows 11, RTX 5070 Ti, 2560x1440, game 1.9.0, Xbox controller, around 220 fps.
tools/test_game_sites.pyandtools/i18n_check.pypass.Checklist
testand opened againsttest