From 99899d6562893fdd57ce21845ea6c0f24750c5b0 Mon Sep 17 00:00:00 2001
From: KoffeinFlummi <koffeinflummi@gmail.com>
Date: Sun, 15 Mar 2015 03:26:10 +0100
Subject: [PATCH] Move advanced bloodloss handling to advanced

---
 .../functions/fnc_handleUnitVitals.sqf        | 24 +++++++++----------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/addons/medical/functions/fnc_handleUnitVitals.sqf b/addons/medical/functions/fnc_handleUnitVitals.sqf
index 27be791756..b7c2aeac37 100644
--- a/addons/medical/functions/fnc_handleUnitVitals.sqf
+++ b/addons/medical/functions/fnc_handleUnitVitals.sqf
@@ -65,19 +65,6 @@ if (_painStatus > 0) then {
     };
 };
 
-
-if (_bloodVolume < 30) exitwith {
-    [_unit] call FUNC(setDead);
-};
-
-if ([_unit] call EFUNC(common,isAwake)) then {
-    if (_bloodVolume < 60) then {
-        if (random(1) > 0.9) then {
-            [_unit] call FUNC(setUnconscious);
-        };
-    };
-};
-
 if (GVAR(level) == 1) then {
     // reduce pain
     if (_unit getVariable [QGVAR(pain), 0] > 0) then {
@@ -105,6 +92,17 @@ if (GVAR(level) == 1) then {
 
 // handle advanced medical, with vitals
 if (GVAR(level) >= 2) then {
+    if (_bloodVolume < 30) exitwith {
+        [_unit] call FUNC(setDead);
+    };
+
+    if ([_unit] call EFUNC(common,isAwake)) then {
+        if (_bloodVolume < 60) then {
+            if (random(1) > 0.9) then {
+                [_unit] call FUNC(setUnconscious);
+            };
+        };
+    };
 
     // Set the vitals
     _heartRate = (_unit getvariable [QGVAR(heartRate), 0]) + ([_unit] call FUNC(getHeartRateChange)) * _interval;