-
Notifications
You must be signed in to change notification settings - Fork 740
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
Refuel - change nozzle position calc #5279
Conversation
@@ -21,7 +21,7 @@ params [["_unit", objNull, [objNull]], ["_target", objNull, [objNull]]]; | |||
private _fuel = [_target] call FUNC(getFuel); | |||
|
|||
[ | |||
REFUEL_PROGRESS_DURATION * 2.5, | |||
TIME_PROGRESSBAR(REFUEL_PROGRESS_DURATION * 2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't REFUEL_PROGRESS_DURATION
be a GVAR()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is not flow rate, it's how long it takes to check current fuel level of a vehicle. Macro is 2s, so this makes it 4s.
#define TIME_PROGRESSBAR(X) ((X) * 0.075) | ||
#else | ||
#define TIME_PROGRESSBAR(X) (X) | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do that globally, and just set it to 0 or 0.5 (so it's visible that it happens at least) when defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIME_PROGRESSBAR
is already in rearm
Rearm, Refuel are the main ones with some long progress bars that make testing tedious.
Might actually cause problems on some things like repacking and medical surgery, not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Would be done separate of this PR anyways.
Fix #5143
Removes the old binary search and now uses
lineIntersectsSurfaces
Default is to aim at player's viewing angle (what you see is what you get) instead of using model center