-
Notifications
You must be signed in to change notification settings - Fork 172
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
Improve player vehicle exit logic #726
base: main
Are you sure you want to change the base?
Conversation
The player can now no longer accelerate whilst exiting a vehicle. This prevents Claude from floating next to the vehicle if the player accelerates during the exit animation.
rwgame/states/IngameState.cpp
Outdated
// The player cannot accelerate while exiting. | ||
// He can, however, brake in the opposite direction of movement. | ||
int velocitySign = vehicle->getVelocity() >= 0 ? 1 : -1; | ||
int movementSign = movement.x >= 0 ? 1 : -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and lines below have some tab characters, indent with spaces only.
I replaced those tab character |
Codecov Report
@@ Coverage Diff @@
## master #726 +/- ##
==========================================
- Coverage 18.12% 11.14% -6.99%
==========================================
Files 252 252
Lines 22938 22946 +8
Branches 5769 5794 +25
==========================================
- Hits 4158 2557 -1601
- Misses 17659 18860 +1201
- Partials 1121 1529 +408
Continue to review full report at Codecov.
|
The player can now no longer accelerate whilst exiting a vehicle.
This prevents Claude from floating next to the vehicle if the player accelerates during the exit animation.
At the same time, this behaviour is closer to the exit vehicle behaviour in the actual game.