mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 10:56:29 +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:
@@ -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