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

CBA_fnc_headDir broken in 1.92 #1128

Closed
derbismarck opened this issue Apr 30, 2019 · 0 comments · Fixed by #1129
Closed

CBA_fnc_headDir broken in 1.92 #1128

derbismarck opened this issue Apr 30, 2019 · 0 comments · Fixed by #1129
Labels
Milestone

Comments

@derbismarck
Copy link

derbismarck commented Apr 30, 2019

Arma 3 Version: 1.92 (stable)
CBA Version: 3.10.1 (stable)

Mods:

- CBA_A3
- ACE3

Description:

  • CBA_fnc_headDir returns four distinct values rather than a smooth range of values as the player turns in a circle.

Steps to reproduce:

  • Monitor the value of [player] call CBA_fnc_headDir as the player turns in a circle.

Where did the issue occur?

  • SP/Local MP

RPT log file:

  • N/A

Here's a video: https://streamable.com/h6a0l

It seems like this could potentially be related to the changes that BI made to position commands (like setPos, for example, player setPos [6969696, 0, 0] results in the player ending up at world position [500000, 0, 0] - they've capped a lot of things it seems), look at this line of the CBA function: https://github.com/CBATeam/CBA_A3/blob/master/addons/common/fnc_headDir.sqf#L68

EDIT - AGLToASL positionCameraToWorld [0, 0, 99999999]; gets capped out at [-500000,-500000,500000], [500000,-500000,500000], [500000,500000,500000], or [-500000,500000,500000] based on the direction you're facing. This is definitely the issue!

That's definitely a 🤔

@commy2 commy2 added this to the 3.10.2 milestone Apr 30, 2019
@commy2 commy2 added the Bug label Apr 30, 2019
@commy2 commy2 modified the milestones: 3.10.2, 3.11 Apr 30, 2019
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 a pull request may close this issue.

2 participants