Files
DayZ-Epoch/SQF/dayz_code/compile/mutant_eventKill.sqf
A Man 72abb093a3 Re-write bloodsucker invisible animation process
setVehicleInit does not work correctly. rSETOBJECTTEXTURE is the only way to sync it for all clients fast enough. Also player_zombieCheck cannot handle the invisible part to the bloodsucker attack since all other players which got not attacked interrupt that process.
2021-08-31 18:10:05 +02:00

20 lines
691 B
Plaintext

//[unit, killer]
//will only run when local to the created object
//record any key hits to the required selection
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];
[nil,nil,rSETOBJECTTEXTURE,_mutant,0,_texture] call RE;
local _killer = _array select 1;
if (local _mutant && isPlayer _killer) then {
//increase players humanity when mutant killed
local _humanity = _killer getVariable["humanity",0];
_humanity = _humanity + DZE_MutantHumanity;
_killer setVariable["humanity",_humanity,true];
};