Skip to content

Medical Gui - Prevent firing on sudden menu close#11344

Open
PabstMirror wants to merge 1 commit intomasterfrom
medMenuFire
Open

Medical Gui - Prevent firing on sudden menu close#11344
PabstMirror wants to merge 1 commit intomasterfrom
medMenuFire

Conversation

@PabstMirror
Copy link
Copy Markdown
Contributor

Gives very brief block of mouse firing when the medical menu closes because of condition
(not on intentional closure from hitting escape)

e.g. treating patient, clicking on action, they move a little bit away, and you click and shoot them ☹️

could make setting if needed

@PabstMirror PabstMirror added this to the 3.21.1 milestone Apr 7, 2026
@PabstMirror PabstMirror added the kind/enhancement Release Notes: **IMPROVED:** label Apr 7, 2026
@Drofseh
Copy link
Copy Markdown
Contributor

Drofseh commented Apr 7, 2026

0.5 seconds seems like a long time to me but if it's only on sudden closures and not all closures then it's probably fine.

@some-evil-kitty
Copy link
Copy Markdown
Contributor

some-evil-kitty commented Apr 7, 2026

Mean visual reaction time of some med students was like 0.25s so 0.5s seems reasonable to account for the Arma old-timers. Could make it a slider setting, 0 to disable and up to 1s?

@DartRuffian
Copy link
Copy Markdown
Contributor

Might be good to extend this to after waking up from uncon as well?

Comment on lines +20 to +21
if (!alive ace_player) exitWith {};
if (!isNil QGVAR(temporaryBlockFireEH)) exitWith {}; // if in-progress temporary block already exists, don't create another one
Copy link
Copy Markdown
Contributor

@DartRuffian DartRuffian Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this can be simplified but don't have brain power rn

Suggested change
if (!alive ace_player) exitWith {};
if (!isNil QGVAR(temporaryBlockFireEH)) exitWith {}; // if in-progress temporary block already exists, don't create another one
// If in-progress temporary block already exists, don't create another one
if (!alive ace_player || !isNil QGVAR(temporaryBlockFireEH)) exitWith {};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement Release Notes: **IMPROVED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants