From 42fad1fa61c2a53ce81e43740f66640be0bcf0af Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Thu, 29 Apr 2021 21:11:49 +0200 Subject: [PATCH] Set eventhandlers for viral zeds for better mod support --- SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp b/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp index 8b5608216..0760c7c89 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp @@ -21,7 +21,13 @@ BleedChance = 30; forcedSpeed = 6; - //Inherits eventHandlers from zZombie_Base + class Eventhandlers + { + init = "_this call zombie_initialize;"; + local = "_z = _this select 0; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [_z,true] call zombie_initialize;"; + HandleDamage = "_this call local_zombieDamage;"; + Killed = "[_this,'zombieKills'] call local_eventKill;"; + }; class HitPoints { class HitHead {