mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Improved pain reduction
This commit is contained in:
@ -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};
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user