mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Fix invisible and running bloodsucker after death
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
//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\];"
|
||||
Reference in New Issue
Block a user