mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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.
20 lines
691 B
Plaintext
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];
|
|
}; |