-
-
Notifications
You must be signed in to change notification settings - Fork 110
[Highly Customized] Jumpjet Tilts While Moving #1521
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
[Highly Customized] Jumpjet Tilts While Moving #1521
Conversation
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
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.
Looks good, few style and readability issues.
I have a few suggestions though:
- Ability to control how much the jumpjet tilts, I imagine via separate factors for forward and sideway tilts.
- Ability to account acceleration for directional tilt (when accelerating - tilt forwards, decelerating - tilt backwards to decelerate). This could work additionally to movement-dependant tilt.
- Debatable: ability to account speed for rotational tilt, because static helicopter rotating via tilt looks weird, and to do sharp turns at high speed you must tilt a lot. But maybe could just remove rotation sideways tilt when not moving.
JumpjetTilt.ForwardAccelFactor ; FAF
JumpjetTilt.ForwardSpeedFactor ; FSF
JumpjetTilt.SidewaysRotationFactor ; SRF
JumpjetTilt.SidewaysSpeedFactor ; SSF
Pseudocode to show what I mean:
arf += movement_acceleration * FAF + movement_speed * FSF
ars += rotation_speed * SRF * movement_speed * SSF
(By the way, I am not sure I understand the current sideways rotation logic correctly. What does it depend on?)
What do you think?
If a tilting jumpjet is affected by EMP, it'll gradually resume to normal stance while being EMP'd. Not sure if it should behave like that |
2128644
to
799ea22
Compare
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.
maybe there's no need to set it globally since you'll still have to customize those factors for each jumpjet. Otherwise LGTM
How about move |
I imagined that perhaps there is no need for global label? |
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.
I can imagine some quick/nimble helicopters tilting up to 90 degrees, so it would be good to have that as the limitation instead of 45. I doubt it will hamper usability, so why not?
Otherwise I have no complaints regarding this feature. Maybe it's worth adding a GIF to the docs? I suggest to use GifCam, as it doesn't make the GIF lose the quality.
That probably also requires modifying the shadow matrix to make it more effective. I will add it later. |
Oh, that's a fair comment, I didn't think of that. Feel free to merge as is then, the 90 degree adjustment can be made later. The shadow drawing doesn't make a lot of sense in the vanilla game so it needs a good rewrite. |
JumpjetTilt
to true.In
rulesmd.ini
: