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:
@@ -88,6 +88,28 @@ class UH1Y_DZ: UH1_Base {
|
||||
magazines[] = {"2000Rnd_762x51_M134"};
|
||||
};
|
||||
};*/
|
||||
class UserActions {
|
||||
class Repair {ACTION_REPAIR; radius = 8;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 8;};
|
||||
class HUDoff {
|
||||
displayName = $STR_AM_HUDON;
|
||||
displayNameDefault = $STR_AM_HUDON;
|
||||
position = "zamerny";
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "(player==driver this)and(this animationphase ""HUDAction"" !=1)";
|
||||
statement = "this animate [""HUDAction"",1];this animate [""HUDAction_1"",1]";
|
||||
};
|
||||
class HUDon {
|
||||
displayName = $STR_AM_HUDOFF;
|
||||
displayNameDefault = $STR_AM_HUDOFF;
|
||||
position = "zamerny";
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "(player==driver this)and(this animationphase ""HUDAction"" !=0)";
|
||||
statement = "this animate [""HUDAction"",0];this animate [""HUDAction_1"",0]";
|
||||
};
|
||||
};
|
||||
};
|
||||
class UH1Y_DZE: UH1Y_DZ {
|
||||
class Turrets : Turrets {
|
||||
|
||||
Reference in New Issue
Block a user