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

Fixed nametag display inconsistency #190

Merged
merged 2 commits into from
May 20, 2021
Merged

Conversation

derbismarck
Copy link
Contributor

@derbismarck derbismarck commented May 11, 2021

The cursorObject command will return an object representing the weapon a player is holding (or the launcher on their back) if you point at that when cursorObject is queried. This change piggybacks off of the new LIS check functionality in order to find what the cursorObject likely would have been, as there's no way to get from the weapon object to the unit who's holding it. See screenshots.

https://i.imgur.com/5MJPV4F.jpg
https://i.imgur.com/Uomn6Z3.jpeg

…eapon object instead of unit when pointing at launchers/other weapons on units
@diwako diwako requested a review from jokoho48 May 11, 2021 20:54
addons/nametags/functions/fnc_onDraw.sqf Outdated Show resolved Hide resolved
@diwako
Copy link
Owner

diwako commented May 14, 2021

Tested in local MP, it works there, shame it does not work in SP, but that is just a tidbit and can be ignored imo.

Will test in a larger op today or on Sunday and see if it works in a dedicated server environment.

@diwako diwako added the enhancement New feature or request label May 14, 2021
@diwako diwako added this to the 1.9.2 milestone May 14, 2021
@diwako diwako merged commit efa1660 into diwako:master May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants