mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use new medical func
This commit is contained in:
parent
3be70556ab
commit
8fc3b53507
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user