-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Genericize vehicle handling for characters (no special avatar stuff) #75467
Conversation
5148114
to
7f740b4
Compare
7f740b4
to
288bae2
Compare
288bae2
to
8cd1719
Compare
Wow that's a lot of angry vehicle tests. |
db1eb8a
to
77e0dd9
Compare
Just needed an override for the tests. Though all those test failures did make me reconsider some of the changes, I went for a more conservative approach with my code changes. Now there really, absolutely should be no functional changes no matter how technical. (Hopefully I don't have to force push this branch again to make it true) |
Apparently, remote control via drive-by-wire was broken by this PR. |
Summary
None
Purpose of change
Describe the solution
Get us closer to the future. Prep the groundwork by getting rid of a bunch of assumptions that the player is the only character that can drive.
This does not enable NPCs to drive.
This is just a ton of tedious work that needs to be done before NPCs can drive, and I might as well get it out of the way.
Describe alternatives you've considered
player_in_control
and a few other functions could use a renaming, but that was more churn than I wanted to deal with right nowTesting
Did some driving around with various kinds of vehicles. Jumped into them, jumped out of them, turned them on and off and on and off. Found a bug where the player couldn't start driving anything, squashed that.
Did some autodriving too, just to be sure. No issues, plays like I expect it to. Let's see how the tests do.
Additional context
There should be no functional changes.