-
Notifications
You must be signed in to change notification settings - Fork 41
Field Rations - Disable for virtual units, Hide HUD in feature cameras #206
Conversation
@@ -66,7 +67,7 @@ _player setVariable [QGVAR(hunger), _hunger, _doSync]; | |||
[_player, _thirst, _hunger] call FUNC(handleEffects); | |||
|
|||
// Handle showing/updating or hiding of HUD | |||
if (_thirst > GVAR(hudShowLevel) || {_hunger > GVAR(hudShowLevel)} || {GVAR(hudInteractionHover)}) then { | |||
if (!ACEGVAR(common,OldIsCamera) && {_thirst > GVAR(hudShowLevel) || {_hunger > GVAR(hudShowLevel)} || {GVAR(hudInteractionHover)}}) then { |
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 we just use feature camera from CBA? I forget how this variable is linked to it.
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.
This is variable is true if a CBA registered feature camera is active, false otherwise. reference
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.
That's just for backwards compatibility though, should we really use that variable here?
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.
Could change this to either:
call CBA_fnc_getActiveFeatureCamera == ""
- Add a "featureCamera" event that similarly keeps a variable updated
I think the second might be a bit better since this runs every second.
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 think this is fine, checking a gvar is faster than doing the _fnc call
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.
For that, it's fine to use the ACE3 one. But that could and probably should be part of CBA really.
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.
cba also has cba_events_oldFeatureCamera
but that's a string instead of a bool
When merged this pull request will:
VirtualMan_F