mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Make units heavily affected by the blast turn away from the light.
This commit is contained in:
parent
0f7853f6c6
commit
9e5f52d161
@ -54,6 +54,10 @@ _affected = _affected - [ACE_player];
|
|||||||
|
|
||||||
_x setSkill (skill _x / 50);
|
_x setSkill (skill _x / 50);
|
||||||
|
|
||||||
|
if (_strength > 0.2) then {
|
||||||
|
_x setVectorDir ((getPosASL _x) vectorDiff _grenadePosASL);
|
||||||
|
};
|
||||||
|
|
||||||
[{
|
[{
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
@ -87,7 +91,6 @@ if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then {
|
|||||||
};
|
};
|
||||||
_strength = _strength * _losCoefficient;
|
_strength = _strength * _losCoefficient;
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
// Add ace_hearing ear ringing sound effect
|
// Add ace_hearing ear ringing sound effect
|
||||||
if (isClass (configFile >> "CfgPatches" >> "ACE_Hearing") && {_strength > 0}) then {
|
if (isClass (configFile >> "CfgPatches" >> "ACE_Hearing") && {_strength > 0}) then {
|
||||||
@ -130,5 +133,9 @@ if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then {
|
|||||||
GVAR(flashbangPPEffectCC) ppEffectEnable false;
|
GVAR(flashbangPPEffectCC) ppEffectEnable false;
|
||||||
}, [], 17 * _strength] call EFUNC(common,waitAndExecute);
|
}, [], 17 * _strength] call EFUNC(common,waitAndExecute);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (_strength > 0.2) then {
|
||||||
|
ACE_player setVectorDir (_eyePos vectorDiff _grenadePosASL);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
true
|
true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user