ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Medical - Change - Pain level affects stability

Open Bummeri opened this issue 3 years ago • 4 comments

When merged this pull request will:

  • Make it so that units are not stable unless their pain level is managed Stability is a prerequisite for becoming conscious. With this and this: https://github.com/acemod/ACE3/pull/8092 Pain can be more important incapacitor. Things affected that need to be checked:

I think FullHealLocal is not an issue since pain is set to 0 in it: https://github.com/acemod/ACE3/blob/8e7f9b6db53a279432a2372c04be311807d1193b/addons/medical_treatment/functions/fnc_fullHealLocal.sqf#L35

Setting uncon. by script ?: https://github.com/acemod/ACE3/blob/8e7f9b6db53a279432a2372c04be311807d1193b/addons/medical/functions/fnc_setUnconscious.sqf

And pain supression should be considered in some way? https://github.com/acemod/ACE3/blob/8e7f9b6db53a279432a2372c04be311807d1193b/addons/medical_vitals/functions/fnc_updatePainSuppress.sqf

PAK treatment prerequisite are effected: https://github.com/acemod/ACE3/blob/171fbf1e9ec3ee593ee0fc9e5c04b1270db4d01f/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp

Bummeri avatar Feb 06 '21 13:02 Bummeri

@jonpas is this way ok?

Bummeri avatar Feb 06 '21 13:02 Bummeri

Change it to a proper PR when you think it's ready.

jonpas avatar Apr 20 '21 10:04 jonpas

I don't like this without a rework of pain simulation first (well, I don't like this at all). hasStableVitals is used for wake-up checks, so at the very least it should take medication into account. You shouldn't administer painkillers on unconscious patients, as it's a choking hazard, and our current morphine values bring down vitals too much for a patient that's below ~90% blood volume to remain stable.

You don't feel pain when you're asleep. If anything, pain wakes you up.

If the goal is just to affect PAKs (why?) then stable condition should be modified instead.

LinkIsGrim avatar Mar 26 '24 13:03 LinkIsGrim