ACE3
ACE3 copied to clipboard
Medical - Change - Pain level affects stability
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
@jonpas is this way ok?
Change it to a proper PR when you think it's ready.
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.