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

Fix Projectile Tracking Heights #1445

Merged
merged 1 commit into from
Apr 4, 2021
Merged

Fix Projectile Tracking Heights #1445

merged 1 commit into from
Apr 4, 2021

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Apr 4, 2021

When merged this pull request will:

  • Change projectileTracking to store bullet positions as ASL instead of AGLS.
  • This makes the tracking record the correct heights while the bullet is above buildings (or other objects with walkable surface).
  • This also makes the drawn lines above the sea not wobble with the waves.
  • fix CBA_fnc_addUnitTrackProjectiles lines are wavy when over water #1444

Note Note Note:

  • Storing the positions as AGL is not an option. They have to be converted from ASL immediately before the draw command is used (same frame even): Over water, AGL is dependent on the current wave height, which means that the data is only valid at the wave height it was recorded at.

  • The big lesson here is to absolutely never use, calculate with or store AGL.

@commy2 commy2 added the Bug Fix label Apr 4, 2021
@commy2 commy2 added this to the 3.15.4 milestone Apr 4, 2021
@commy2 commy2 merged commit 92bf7f0 into master Apr 4, 2021
@commy2 commy2 deleted the fix-projectileTracking branch April 4, 2021 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CBA_fnc_addUnitTrackProjectiles lines are wavy when over water
2 participants