Fix invisible and running bloodsucker after death

This commit is contained in:
A Man
2021-08-28 15:57:30 +02:00
parent 3448563884
commit 2639cece9e
3 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,14 @@
local _array = _this; local _array = _this;
local _mutant = _array select 0; 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; local _killer = _array select 1;
if (local _mutant && isPlayer _killer) then { if (local _mutant && isPlayer _killer) then {

View File

@@ -32,7 +32,7 @@ local _nearPlayer = false;
} count playableUnits; } count playableUnits;
// Select a random attack sound // 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 // Broadcast hit noise and animation if a player is near
if (_nearPlayer) then { if (_nearPlayer) then {

View File

@@ -1,2 +1,2 @@
//new //new
5 !="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';" 5 !="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';" !="this setObjectTexture \[0,_texture\];"