-
Notifications
You must be signed in to change notification settings - Fork 735
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 - Change - Pain level affects stability #8098
base: master
Are you sure you want to change the base?
Conversation
@jonpas is this way ok? |
@@ -31,4 +31,7 @@ if (_bloodPressureL < 50 || {_bloodPressureH < 60}) exitWith { false }; | |||
private _heartRate = GET_HEART_RATE(_unit); | |||
if (_heartRate < 40) exitWith { false }; | |||
|
|||
private _painLevel = GET_PAIN(_unit); |
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.
If you want to account for medication, GET_PAIN_PERCEIVED(unit)
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). 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. |
Same. |
When merged this pull request will:
Stability is a prerequisite for becoming conscious. With this and this: Medical Damage - Add setting for unconscious chance from pain #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:
ACE3/addons/medical_treatment/functions/fnc_fullHealLocal.sqf
Line 35 in 8e7f9b6
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