Set eventhandlers for viral zeds for better mod support

This commit is contained in:
AirwavesMan
2021-04-29 21:11:49 +02:00
parent 37117405a6
commit 42fad1fa61

View File

@@ -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 {