Skip to content

Circulation - Fix AED prompt error after shock - #876

Open
Andx667 wants to merge 1 commit into
KAT-Advanced-Medical:dev-Tomcatfrom
Andx667:fix/aed-charge-prompt-args
Open

Andx667 wants to merge 1 commit into
KAT-Advanced-Medical:dev-Tomcatfrom
Andx667:fix/aed-charge-prompt-args

Conversation

@Andx667

@Andx667 Andx667 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • Fix the script error after every automatic AED shock
  • Restore the "push analyze" voice prompt after a shock
  • Make the prompt stay silent while the AED-X vitals monitor is connected, as the existing condition intends

Cause

The delayed callback in fnc_AED_Charge declares params ["_patient", "_soundSource"] but only receives [_soundSource]. The sound source ends up in _patient and _soundSource is nil, so playSound3D fails:

Error 0 elements provided, 3 expected
File /x/kat/addons/circulation/functions/fnc_AED_Charge.sqf..., line 49

#812 added _patient to the params without updating the argument array. The shock itself is not affected.

Testing

  • hemtt check passes, with no warnings in the changed file
  • Tested in game, works as expected

IMPORTANT

  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

🤖 Generated with Claude Code

Pass the patient to the delayed "push analyze" callback. It expects
the patient and sound source but only received the sound source, so
playSound3D failed with an empty position after every automatic shock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Andx667
Andx667 marked this pull request as ready for review November 23, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant