@@ -29,17 +29,17 @@ if !(_player call EFUNC(common,isAwake)) exitWith {};
2929
3030// Make unit moan from high hunger/thirst
3131if (
32- GETEGVAR(medical,enabled,false ) &&
33- {(_thirst > CONSEQ_THRESHOLD_LIGHT) || {_hunger > CONSEQ_THRESHOLD_LIGHT}} &&
32+ GETEGVAR(medical,enabled,false ) &&
33+ {(_thirst > CONSEQ_THRESHOLD_LIGHT) || {_hunger > CONSEQ_THRESHOLD_LIGHT}} &&
3434 {random 1 < linearConversion [CONSEQ_THRESHOLD_LIGHT, 100 , (_thirst max _hunger ), 0.05 , 0.2 , true ]}
3535) then {
36- [ACE_Player , " moan" , round (linearConversion [CONSEQ_THRESHOLD_LIGHT, 90 , (_thirst max _hunger ), 0 , 2 , true ])] call EFUNC(medical_feedback,playInjuredSound);
36+ [_player , " moan" , round (linearConversion [CONSEQ_THRESHOLD_LIGHT, 90 , (_thirst max _hunger ), 0 , 2 , true ])] call EFUNC(medical_feedback,playInjuredSound);
3737};
3838
3939// Trigger high thirst/hunger consequence (chance based on how high thirst/hunger are)
4040if (
41- GETEGVAR(medical,enabled,false ) &&
42- {(_thirst > CONSEQ_THRESHOLD_SEVERE || {_hunger > CONSEQ_THRESHOLD_SEVERE}) &&
41+ GETEGVAR(medical,enabled,false ) &&
42+ {(_thirst > CONSEQ_THRESHOLD_SEVERE || {_hunger > CONSEQ_THRESHOLD_SEVERE}) &&
4343 {random 1 < linearConversion [CONSEQ_THRESHOLD_SEVERE, 100 , _thirst max _hunger , 0.05 , 0.1 , true ]}}
4444) exitWith {
4545 if (XGVAR(nearDepletedConsequence) == 1 ) then { // Set unit unconscious with a 45s cooldown
4848 [_player , true , 5 , true ] call EFUNC(medical,setUnconscious);
4949 };
5050 } else { // Add pain
51- if (ACE_Player getVariable [QEGVAR(medical,pain), 0 ] < 0.1 ) then {
52- [ACE_Player , 0.1 ] call EFUNC(medical,adjustPainLevel);
51+ if (_player getVariable [QEGVAR(medical,pain), 0 ] < 0.1 ) then {
52+ [_player , 0.1 ] call EFUNC(medical,adjustPainLevel);
5353 };
5454 };
5555};
0 commit comments