Blood loss for basic (from AGM medical)

This commit is contained in:
Glowbal 2015-04-05 21:38:15 +02:00
parent 147bb92541
commit 12d10b8bf7

View File

@ -13,6 +13,8 @@
#include "script_component.hpp"
#define BLOODLOSSRATE_BASIC 0.4
private ["_totalBloodLoss","_tourniquets","_openWounds", "_value", "_cardiacOutput", "_internalWounds"];
// TODO Only use this calculation if medium or higher, otherwise use vanilla calculations (for basic medical).
_totalBloodLoss = 0;
@ -40,6 +42,6 @@ if (GVAR(level) >= 2) then {
// cap the blood loss to be no greater as the current cardiac output
//(_totalBloodLoss min _cardiacOutput);
} else {
// TODO basic medical
_totalBloodLoss = BLOODLOSSRATE_BASIC * (damage _this);
};
_totalBloodLoss * (GVAR(bleedingCoefficient) max 0);