mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Make zombie_agent.fsm customizable for admins #1877
Also fixed HandleDamage EH was added twice. We moved it to the configs
and forgot to take it out of the FSM in 6853263.
This commit is contained in:
10
SQF/dayz_code/compile/zombie_initialize.sqf
Normal file
10
SQF/dayz_code/compile/zombie_initialize.sqf
Normal file
@@ -0,0 +1,10 @@
|
||||
// Moved from config to allow admins to modify
|
||||
// Put agent second for compatibility with old configs like Namalsk custom zombies.
|
||||
|
||||
if (count _this == 1) then {
|
||||
//Called from init EH
|
||||
["", (_this select 0)] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";
|
||||
} else {
|
||||
//Called from local EH
|
||||
["", (_this select 0), true] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";
|
||||
};
|
||||
Reference in New Issue
Block a user