Improved pain reduction

This commit is contained in:
Glowbal
2015-04-07 00:41:53 +02:00
parent 446a30e4fc
commit c7549a13a4
2 changed files with 6 additions and 4 deletions

View File

@ -751,7 +751,7 @@ class ACE_Medical_Advanced {
// specific details for the ACE_Morphine treatment action // specific details for the ACE_Morphine treatment action
class Morphine { class Morphine {
painReduce = 0.7; painReduce = 1;
hrIncreaseLow[] = {-10, -30, 35}; hrIncreaseLow[] = {-10, -30, 35};
hrIncreaseNormal[] = {-10, -50, 40}; hrIncreaseNormal[] = {-10, -50, 40};
hrIncreaseHigh[] = {-10, -40, 50}; hrIncreaseHigh[] = {-10, -40, 50};

View File

@ -71,9 +71,11 @@ if (alive _target) then {
}; };
}; };
// Reduce the pain level if (_painReduce > 0) then {
_pain = _target getvariable [QGVAR(pain), 0]; // Reduce the pain level
_target setvariable [QGVAR(pain), (_pain - _painReduce) max 0]; _pain = _target getvariable [QGVAR(pain), 0];
_target setvariable [QGVAR(pain), (_pain - (_pain * _painReduce)) max 0];
};
_resistance = _unit getvariable [QGVAR(peripheralResistance), 100]; _resistance = _unit getvariable [QGVAR(peripheralResistance), 100];
_resistance = _resistance + _viscosityChange; _resistance = _resistance + _viscosityChange;