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.
With the release of the February update, the RidableHorse and BaseRidableAnimal classes have been deprecated and replaced by RidableHorse2. However, all hooks and class fields remained in the old classes, even though the old horses are no longer present on the server.
This pull request migrates previous modifications and introduces three new hooks.
1. The OnRidableAnimalTow hook is called before attempting to tow a horse to siege weapons. Returning a non-null value overrides the default behavior.
2. The OnRidableAnimalDetach hook is called before attempting to detach (untow) a horse from a siege weapon. Returning a non-null value overrides the default behavior.
3. The OnSaddleSwap hook is called before attempting to switch the saddle between single and double. Returning a non-null value overrides the default behavior.
4. Fields of the classes that were not modified, as they were not found in RidableHorse2:
4. Other changes: