mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Allow custom mutant.fsm
This commit is contained in:
@@ -24,8 +24,8 @@ class z_bloodsucker : Zed_Base {
|
|||||||
forcedSpeed = 6; // Left here to prevent errors in player_zombieCheck
|
forcedSpeed = 6; // Left here to prevent errors in player_zombieCheck
|
||||||
|
|
||||||
class Eventhandlers {
|
class Eventhandlers {
|
||||||
init = "[(_this select 0)] execFSM ""\z\AddOns\dayz_code\system\mutant_agent.fsm""";
|
init = "_this call mutant_initialize;";
|
||||||
local = "_z = _this select 0; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [_z,true] execFSM '\z\AddOns\dayz_code\system\mutant_agent.fsm';";
|
local = "_z = _this select 0; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [_z,true] call mutant_initialize;";
|
||||||
HandleDamage = "_this call mutant_damageHandler;";
|
HandleDamage = "_this call mutant_damageHandler;";
|
||||||
Killed = "_this call mutant_eventKill;";
|
Killed = "_this call mutant_eventKill;";
|
||||||
};
|
};
|
||||||
|
|||||||
7
SQF/dayz_code/compile/mutant_initialize.sqf
Normal file
7
SQF/dayz_code/compile/mutant_initialize.sqf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
// Moved from config to allow admins to modify
|
||||||
|
|
||||||
|
if (count _this == 1) then {
|
||||||
|
[(_this select 0)] execFSM "\z\addons\dayz_code\system\mutant_agent.fsm";
|
||||||
|
} else {
|
||||||
|
[(_this select 0),true] execFSM "\z\addons\dayz_code\system\mutant_agent.fsm";
|
||||||
|
};
|
||||||
@@ -52,6 +52,9 @@ DZE_doorManagement = true; // Enable Door Management by @DevZupa.
|
|||||||
// Group System
|
// Group System
|
||||||
dayz_groupSystem = false; // Enable group system
|
dayz_groupSystem = false; // Enable group system
|
||||||
|
|
||||||
|
// Bloodsuckers
|
||||||
|
DZE_Bloodsuckers = false; // Enable bloodsucker spawning.
|
||||||
|
|
||||||
// Bury and Butcher Bodies
|
// Bury and Butcher Bodies
|
||||||
DZE_Bury_Body = false; // Enable Bury Bodies
|
DZE_Bury_Body = false; // Enable Bury Bodies
|
||||||
DZE_Butcher_Body = false; // Enable Butcher Bodies
|
DZE_Butcher_Body = false; // Enable Butcher Bodies
|
||||||
@@ -346,9 +349,7 @@ if (!isDedicated) then {
|
|||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
// Bloodsuckers
|
// Bloodsuckers
|
||||||
DZE_Bloodsuckers = false; // Enable bloodsucker spawning.
|
|
||||||
|
|
||||||
if (DZE_Bloodsuckers) then {
|
if (DZE_Bloodsuckers) then {
|
||||||
DZE_BloodsuckerChance = .15; // Chance that a building will spawn a bloodsucker. Default .15 (15%)
|
DZE_BloodsuckerChance = .15; // Chance that a building will spawn a bloodsucker. Default .15 (15%)
|
||||||
DZE_BloodsuckerBuildings = ["Land_Hlidac_budka","Land_Mil_Guardhouse","Land_Mil_Barracks","Land_Mil_House","Land_Mil_Barracks_i","CrashSite_RU","CrashSite_US","CrashSite_EU","CrashSite_UN"]; // Bloodsuckers will spawn near these building classes.
|
DZE_BloodsuckerBuildings = ["Land_Hlidac_budka","Land_Mil_Guardhouse","Land_Mil_Barracks","Land_Mil_House","Land_Mil_Barracks_i","CrashSite_RU","CrashSite_US","CrashSite_EU","CrashSite_UN"]; // Bloodsuckers will spawn near these building classes.
|
||||||
|
|||||||
@@ -810,6 +810,9 @@ fnc_Obj_FenceHandleDam = {}; //Needed for vanilla fences to prevent rpt errors
|
|||||||
object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf";
|
object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf";
|
||||||
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
|
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
|
||||||
zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf";
|
zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf";
|
||||||
|
if (DZE_Bloodsuckers) then {
|
||||||
|
mutant_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\mutant_initialize.sqf";
|
||||||
|
};
|
||||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf";
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf";
|
||||||
fnc_fieldOfView = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_fieldOfView.sqf";
|
fnc_fieldOfView = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_fieldOfView.sqf";
|
||||||
fnc_deleteAt = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_deleteAt.sqf";
|
fnc_deleteAt = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_deleteAt.sqf";
|
||||||
|
|||||||
Reference in New Issue
Block a user