reenable user input on featurecam (#8653)

This commit is contained in:
GhostIsSpooky 2021-11-02 17:24:40 -03:00 committed by GitHub
parent 6d223d9d96
commit 8372f69f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,13 +89,12 @@ GVAR(bloodTickCounter) = 0;
if (_newCamera == "") then { // switched back to player view
private _status = IS_UNCONSCIOUS(_unit);
[!_status, _unit] call EFUNC(common,setVolume);
[QUOTE(ADDON), _volume, _status] call EFUNC(common,setHearingCapability);
["unconscious", _status] call EFUNC(common,setDisableUserInputStatus);
} else { // camera view
[true, _unit] call EFUNC(common,setVolume);
[QUOTE(ADDON), 1, false] call EFUNC(common,setHearingCapability);
["unconscious", false] call EFUNC(common,setDisableUserInputStatus);
};
}] call CBA_fnc_addPlayerEventHandler;