From 2639cece9e5e57aa2aa6083d9d631c53b99408a0 Mon Sep 17 00:00:00 2001 From: A Man Date: Sat, 28 Aug 2021 15:57:30 +0200 Subject: [PATCH] Fix invisible and running bloodsucker after death --- SQF/dayz_code/compile/mutant_eventKill.sqf | 8 ++++++++ SQF/dayz_code/compile/player_mutantAttack.sqf | 2 +- Server Files/DZE_Server_Config/BattlEye/remoteexec.txt | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/mutant_eventKill.sqf b/SQF/dayz_code/compile/mutant_eventKill.sqf index 9e6eb969f..c8ec5e156 100644 --- a/SQF/dayz_code/compile/mutant_eventKill.sqf +++ b/SQF/dayz_code/compile/mutant_eventKill.sqf @@ -4,6 +4,14 @@ local _array = _this; local _mutant = _array select 0; + +[nil, _mutant, rSWITCHMOVE, ""] call RE; +local _skin = _mutant getVariable ["mutantSkin", "act_krovosos_new1"]; +local _texture = format["\dayz_epoch_c\skins\bloodsucker\%1.paa",_skin]; + +_mutant setVehicleInit "this setObjectTexture [0,_texture];"; +processInitCommands; + local _killer = _array select 1; if (local _mutant && isPlayer _killer) then { diff --git a/SQF/dayz_code/compile/player_mutantAttack.sqf b/SQF/dayz_code/compile/player_mutantAttack.sqf index 6394004dd..1e4e4b5fb 100644 --- a/SQF/dayz_code/compile/player_mutantAttack.sqf +++ b/SQF/dayz_code/compile/player_mutantAttack.sqf @@ -32,7 +32,7 @@ local _nearPlayer = false; } count playableUnits; // Select a random attack sound -_sound = ["bloodatt0","bloodatt1","bloodatt2","bloodatt3"] call BIS_fnc_selectRandom; +local _sound = ["bloodatt0","bloodatt1","bloodatt2","bloodatt3"] call BIS_fnc_selectRandom; // Broadcast hit noise and animation if a player is near if (_nearPlayer) then { diff --git a/Server Files/DZE_Server_Config/BattlEye/remoteexec.txt b/Server Files/DZE_Server_Config/BattlEye/remoteexec.txt index 884f1a406..e642f6a21 100644 --- a/Server Files/DZE_Server_Config/BattlEye/remoteexec.txt +++ b/Server Files/DZE_Server_Config/BattlEye/remoteexec.txt @@ -1,2 +1,2 @@ //new -5 !="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';" \ No newline at end of file +5 !="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';" !="this setObjectTexture \[0,_texture\];" \ No newline at end of file