-
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
Captives - Disallow ACRE/TFAR radio usage on surrender/handcuff #8388
Captives - Disallow ACRE/TFAR radio usage on surrender/handcuff #8388
Conversation
(otherwise looks good 👍 ) |
Added a minor optimization to not broadcast the setVars if the radio addon isn't loaded |
_object setVariable ["tf_unable_to_use_radio", _set > 0, true]; | ||
}; | ||
if (isClass (configFile >> "CfgPatches" >> "acre_main")) then { | ||
_object setVariable ["acre_sys_core_isDisabled", _set > 0, 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.
This blocks direct speaking, not just radios.
It's no fun for people handcuffed
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.
ace_mouthgag
when?
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.
Are you sure that actually works? I could swear a handcuffed person was speaking fine this weekend on our session.
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 can confirm, I used player setVariable ["acre_sys_core_isDisabled", true, true];
yesterday to prevent players from speaking during parts of a Halloween mission
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, yesterday we had self surrendering players which were muted, the character mimic was set to talking but they were unable to be heard.
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.
Ah I see, radio block for captive is completely new with this PR. We could add another variable to ACRE2 that only disables radio. Or API functions, even better.
…od#8388) * Block radio on captive/surrendered/unconscious via status effect * missing semicolon * Don't broadcast setVar if radio addon doesn't exist Co-authored-by: PabstMirror <[email protected]>
When merged this pull request will:
If it's still necessary to have setVolume control radio transmission allowance, I can edit that to call the status effect instead.