mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Flashbangs: Medical Pain
This commit is contained in:
parent
eb60910aab
commit
170985295d
@ -76,6 +76,15 @@ _affected = _grenade nearEntities ["CAManBase", 20];
|
||||
|
||||
TRACE_1("Final strength for player %1",_strength);
|
||||
|
||||
|
||||
//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];
|
||||
};
|
||||
|
||||
// create flash to illuminate environment
|
||||
_light = "#lightpoint" createVehicleLocal (getPos _grenade);
|
||||
_light setLightBrightness 200;
|
||||
|
Loading…
Reference in New Issue
Block a user