-
Notifications
You must be signed in to change notification settings - Fork 739
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
Medical - Add API for getting unit status (blood loss, injury, stability) #10514
Conversation
Making a checklist of things for
|
SPO2, Heart Rate, Blood Pressure and Oxygen Demand can't just be checked against default as they can vary with fatigue and altitude if SPO2 simulation is enabled. |
I just added those to have them listed, I don't think any of them should be considered IMO |
{GET_BLOOD_VOLUME(_unit) != DEFAULT_BLOOD_VOLUME} || | ||
{!(_unit call EFUNC(common,isAwake))} || |
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.
Not necessarily an indication of injury. Maybe stable condition, but not injury.
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 misunderstood your comment (#10514 (comment)) then, I thought you were suggesting to check that as well
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.
No, was just proposing a solution. I think injury check should just be:
- open wounds (even if blocked by tourniquet)
- fractures
- trauma beyond thresholds for death/unconsciousness (if we have a way to fix trauma, which we don't)
Which is less than medical_ai's implementation but makes more sense to me. If we need a more sensitive function indicating necessity of treatment at all, it should be a la https://github.com/acemod/ACE3/blob/master/addons/medical_status/functions/fnc_isInStableCondition.sqf
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.
Makes sense
I'll see if I'll have time tomorrow to make those changes
Modify isInjured to be just be a wrapper around medical_ai_fnc_isInjured + arm fracture checking and add an API getter for medical_status_fnc_isInStableCondition, should be good enough and easier to do. Up to 3rd party to use them properly. |
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.
Comments + merge conflicts.
15d98f4
to
2501254
Compare
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Is injured just wraps medical ai's isInjured and checks for arm fractures. No longer is required to be local. Add local check to getBloodLoss
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
When merged this pull request will:
medical_ai
'sisInjured
functionmedical_status
'sgetBloodLoss
functionIMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.