mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +03:00
Move some addActions to config UserActions
Should improve client FPS while still allowing conditions and scripts to be customized. Some special vehicles like MV22, UH1Y, etc. have UserActions overwritten in their configs, so please let me know if you find any others that do not get the option to repair or salvage because UserActions is overwritten in their config. I think I got them all. Vanilla commits:a8c4238c0c350d73abe1
This commit is contained in:
@@ -65,7 +65,7 @@ sched_animals = {
|
||||
_type = _animalssupported select floor random count _animalssupported;
|
||||
};
|
||||
if (_type == "Dog") then {
|
||||
_animalssupported = ["DZ_Fin","DZ_Pastor"];
|
||||
_animalssupported = ["Fin","Pastor"];
|
||||
_type = _animalssupported select floor random count _animalssupported;
|
||||
};
|
||||
_root = configFile >> "CfgVehicles" >> _type;
|
||||
@@ -79,7 +79,7 @@ sched_animals = {
|
||||
if (count _PosList > 0) then {
|
||||
_Pos = (_PosList select 0) select 0;
|
||||
if ((!surfaceIsWater _Pos) AND {(0 == {alive _x} count (_Pos nearEntities [ AllPlayers, 200 ]))}) then {
|
||||
_agent = if (_type == "DZ_Pastor") then {createAgent [_type, _Pos, [], 0, "NONE"]} else {createAgent [_type, _Pos, [], 0, "FORM"]};
|
||||
_agent = if (_type == "Pastor") then {createAgent [_type, _Pos, [], 0, "NONE"]} else {createAgent [_type, _Pos, [], 0, "FORM"]};
|
||||
[_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
|
||||
_agent setVariable [ "", true ];
|
||||
_count = _count + 1;
|
||||
|
||||
Reference in New Issue
Block a user