mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-13 21:31:56 +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: https://github.com/DayZMod/DayZ/commit/a8c4238c0c1a35fbe8415b53c4ee220d28d18b92 https://github.com/DayZMod/DayZ/commit/350d73abe1e39f15b3b41d38400ce9ec2d0d74e8
This commit is contained in:
@@ -105,13 +105,15 @@ class CSJ_GyroP: Plane
|
||||
};
|
||||
class push
|
||||
{
|
||||
displayName = "push aircraft";
|
||||
displayName = $STR_ACTIONS_PUSH;
|
||||
position = "osa leve smerovky";
|
||||
onlyforplayer = 0;
|
||||
radius = 2;
|
||||
condition = "(Count (Crew this)==0) and ((getpos this select 2) <1) and (!isengineon this)";
|
||||
statement = "this exec ""\CSJ_GyroAC\scripts\CSJ_moveGyro.sqs"" ";
|
||||
};
|
||||
class Repair {ACTION_REPAIR; radius = 4;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 4;};
|
||||
};
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
@@ -220,7 +222,10 @@ class CSJ_GyroC: Helicopter
|
||||
dammageFull[] = {};
|
||||
class Reflectors{};
|
||||
class AnimationSources: AnimationSources{};
|
||||
class UserActions{};
|
||||
class UserActions {
|
||||
class Repair {ACTION_REPAIR; radius = 4;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 4;};
|
||||
};
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
|
||||
@@ -483,7 +483,7 @@ class M240Nest_DZ: USMC_WarfareBMGNest_M240
|
||||
transportMaxBackpacks = 1;
|
||||
constructioncount = 10;
|
||||
removeoutput[] = {{"m240_nest_kit",1}};
|
||||
|
||||
class UserActions {delete Repair; delete Salvage;};
|
||||
};
|
||||
class Land_covering_hut_EP1;
|
||||
class CanvasHut_DZ: Land_covering_hut_EP1
|
||||
|
||||
Reference in New Issue
Block a user