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

Change radar_enable_seat_icons Setting to List #228

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

mrschick
Copy link
Contributor

@mrschick mrschick commented Oct 9, 2024

ref #209 (comment)
follow-up to #223

  • Improves on the new enable_seat_icons setting by making it a list with 3 options:
    • Never show
    • Only show for group members in the same vehicle
    • Always show (default)

@mrschick
Copy link
Contributor Author

mrschick commented Oct 9, 2024

Maybe a fourth option could be to show only for units within LOS 🤔

Though it probably makes sense to move some of the LOS checking code to its own function for that

private _vis = [vehicle _unit, "VIEW"] checkVisibility [eyePos _player, AGLToASL (_unit modelToWorldVisual (_unit selectionPosition "Spine2"))];

@mrschick mrschick changed the title Change diwako_dui_radar_enable_seat_icons Setting to List Change radar_enable_seat_icons Setting to List Oct 9, 2024
@diwako
Copy link
Owner

diwako commented Oct 9, 2024

Maybe a fourth option could be to show only for units within LOS 🤔

Though it probably makes sense to move some of the LOS checking code to its own function for that

private _vis = [vehicle _unit, "VIEW"] checkVisibility [eyePos _player, AGLToASL (_unit modelToWorldVisual (_unit selectionPosition "Spine2"))];

I would say to keep it simple, more LOS checks are not needed. It might make sense in a cramped vehicle like a BMP, but LOS checks within vehicles are kind of scuffed.

@mrschick
Copy link
Contributor Author

mrschick commented Oct 9, 2024

Fully agree, I only meant LOS checks from foot to buddies in a vehicle, or at least to the vehicle itself.

@mrschick
Copy link
Contributor Author

Rethinking it, the current implementation should be fine.

@diwako diwako added this to the 1.12.0 milestone Oct 12, 2024
@diwako
Copy link
Owner

diwako commented Oct 12, 2024

ready for merge?

@mrschick
Copy link
Contributor Author

Fine by me 👍🏻

@diwako diwako merged commit cb73f68 into diwako:master Oct 13, 2024
4 checks passed
@mrschick mrschick deleted the feature/passenger-icon-improv branch October 13, 2024 10:20
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.

2 participants