Use new medical func

This commit is contained in:
PabstMirror 2015-04-11 21:22:34 -05:00
parent 3be70556ab
commit 8fc3b53507

View File

@ -79,10 +79,7 @@ _affected = _grenade nearEntities ["CAManBase", 20];
//Add ace_medical pain effect:
if ((isClass (configFile >> "CfgPatches" >> "ACE_Medical")) && {_strength > 0}) then {
private "_curPain";
_curPain = ACE_player getVariable [QEGVAR(medical,pain), 0];
_curPain = (_curPain + (_strength / 2)) min 1;
ACE_player setVariable [QEGVAR(medical,pain), _curPain];
[ACE_player, (_strength / 2)] call EFUNC(medical,adjustPainLevel);
};
// create flash to illuminate environment