Skip to content
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

Added scaleLifetimeOffset and Centered Ripple Projectiles #10292

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SomeonesShade
Copy link
Contributor

@SomeonesShade SomeonesShade commented Oct 26, 2024

Added scaleLifetimeOffset for one main purpose: to offset scale lifetime bullets
For example, ripple now has its projectile centered, no need to adjust the velocityRnd to do so.

For testing that the centering works
Set the inaccuracy = 0, shoot.shots = 100, and range = 1000

out.mov

Before

bout.mov

After

aout.mov

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

Changed ripple to have its shot centered, calculated by: (1 - velocityRnd/2)^-1
@SomeonesShade
Copy link
Contributor Author

(uncertain if this is a good name, a simple rename/refactor probably works)

@SomeonesShade SomeonesShade changed the title Added scaleLifetimeOffset and Ripple Projectiles Centered Added scaleLifetimeOffset and Centered Ripple Projectiles Oct 26, 2024
one last adjustement, hopefully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant