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
Improve unconscious volume handling #6455
Conversation
Since this wasn't being handled on dedicated/headless zeus or other could be changed into an unconscious unit and then start speaking with the radio
I've added a needs testing tag because I don't know how the lower volume feels in terms of UX.
|
// Toggle unconscious player's ability to talk in radio addons | ||
_unit setVariable ["tf_voiceVolume", [1, 0] select _unconscious, true]; | ||
_unit setVariable ["tf_unable_to_use_radio", _unconscious, true]; | ||
_unit setVariable ["acre_sys_core_isDisabled", _unconscious, true]; |
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.
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.
voiceVolume yes.. sadly. It influences the total volume. Also voice over Radio/Intercom/Direct/etc
tf_unable_to_use_radio
no. Local only. Aka local to _unit.
Btw do we have anything like a muffled hearing when unconscious?
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.
Yeah, it appears it needs to be global.
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.
@dedmen In this PR I lower the hearing volume while unconscious, but muffled would be good to add.
and thanks guys!
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.
Actual values will need to be tweaked based on user feedback. I'd merge this and adjust those later.
* Lower player hearing upon entering unconscious * Fix potential for unconscious units to use radio * Evaluate player's volume upon changing unit * Reset player volume on death * Remove unnecessary public variable
When merged this pull request will: