Skip to content

fix: use getPosASL for sector positions#101

Merged
fank merged 1 commit intomainfrom
fix/use-getPosASL-for-sector-positions
Mar 7, 2026
Merged

fix: use getPosASL for sector positions#101
fank merged 1 commit intomainfrom
fix/use-getPosASL-for-sector-positions

Conversation

@fank
Copy link
Copy Markdown
Member

@fank fank commented Mar 7, 2026

Summary

  • Changed getPosATLgetPosASL in fnc_trackSectors.sqf for sector capture/contested events
  • Fixed example comment in fnc_handleCustomEvent.sqf (getPosgetPosASL)

All recorded positions now consistently use getPosASL for accurate 3D rendering in the same absolute coordinate system as the capture loop and projectile tracking.

Test Plan

  • Verify sector capture events report correct ASL positions
  • Confirm 3D playback renders sector events at proper elevation

Sector tracking used getPosATL which gives height relative to terrain,
inconsistent with the rest of the capture pipeline (captureLoop,
projectile tracking) which all use getPosASL. For accurate 3D rendering
without a heightmap, all recorded positions must be in the same absolute
coordinate system. Also fixes the example comment in handleCustomEvent.
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request standardizes the method for reporting object positions within the recording system, specifically for sector capture and contested events. By consistently using getPosASL (Above Sea Level) across relevant functions, it ensures that all recorded positions are in the same absolute coordinate system, which is crucial for accurate 3D rendering and consistent data interpretation with other systems like capture loops and projectile tracking.

Highlights

  • Sector Position Tracking: The fnc_trackSectors.sqf file was updated to use getPosASL instead of getPosATL for recording sector positions during capture and contested events, ensuring consistent 3D coordinate reporting.
  • Example Code Correction: An example comment in fnc_handleCustomEvent.sqf was corrected to reflect the use of getPosASL for sector event data, aligning with the new standard.
Changelog
  • addons/recorder/fnc_handleCustomEvent.sqf
    • Updated an example comment to use getPosASL for sector position.
  • addons/recorder/fnc_trackSectors.sqf
    • Replaced getPosATL with getPosASL for retrieving sector positions.
Activity
  • No specific activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the sector tracking logic to use getPosASL instead of getPosATL for recording sector positions, aiming for a consistent coordinate system for 3D playback. The change is applied in fnc_trackSectors.sqf for sector capture/contested events, and a related code example in fnc_handleCustomEvent.sqf is updated from getPos to getPosASL to match. The implementation aligns with the stated goal of using ASL coordinates for all recorded positions.

@fank fank merged commit ec80d25 into main Mar 7, 2026
1 check passed
@fank fank deleted the fix/use-getPosASL-for-sector-positions branch March 7, 2026 15:16
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