From bd18d3be145cc6febe87986152c72c686f189952 Mon Sep 17 00:00:00 2001 From: A Man Date: Sat, 7 Dec 2019 18:32:56 +0100 Subject: [PATCH] Clean up CH53 configs In consultation with Seelenapparat we changed the configs from the ch53. This removes strop down and up, the collect and detach cargo options. both actions are not really used in epoch and needed an init script which runs permanently while in the helicopter. It is the same for the sfx sounds from this helicopter. In this special case we decided that performance is more valuable as the removed actions. If someone uses the removed actions in scripts or something like that please message me on discord. --- .../Configs/CfgVehicles/Helicopter/CH53.hpp | 48 ++----------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgVehicles/Helicopter/CH53.hpp b/SQF/dayz_code/Configs/CfgVehicles/Helicopter/CH53.hpp index 914061502..ea4ae8285 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Helicopter/CH53.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Helicopter/CH53.hpp @@ -28,13 +28,9 @@ class CH53_DZE : USEC_ch53_E { transportmaxbackpacks = 15; fuelCapacity = 3849; class eventhandlers { - GetIn = "if ((_this select 2) == player) then {MonitorVM = [_this select 0] execvm '\usec_ch53\scripts\ch53_monitor.sqf';};"; - init = "MonitorVM = [_this select 0] execvm '\usec_ch53\scripts\ch53_monitor.sqf';MonitorSFXVM = [_this select 0] execvm '\usec_ch53\scripts\ch53_monitorSFX.sqf';"; killed = "_this spawn BIS_Effects_EH_Killed;"; }; - /*class UserActions { - class Repair {ACTION_REPAIR; radius = 8;}; - class Salvage {ACTION_SALVAGE; radius = 8;}; + class UserActions { class RampOpen { displayName = $STR_EPOCH_OPEN_RAMP; position = "ramp action"; @@ -54,7 +50,7 @@ class CH53_DZE : USEC_ch53_E { onlyforplayer = 0; }; class LandingGear_down { - displayName = "Gear Down"; + displayName = $STR_ACTION_GEAR_DOWN; position = "ramp action"; showWindow = 0; onlyforplayer = 0; @@ -64,7 +60,7 @@ class CH53_DZE : USEC_ch53_E { statement = "[this] execvm ""\usec_ch53\scripts\ch53_geardown.sqf"""; }; class LandingGear_up { - displayName = "Gear Up"; + displayName = $STR_ACTION_GEAR_UP; position = "ramp action"; showWindow = 0; onlyforplayer = 0; @@ -73,41 +69,5 @@ class CH53_DZE : USEC_ch53_E { condition = "(this animationPhase ""gear_nose_1"" < 0.1)&&(player == driver this)"; statement = "[this] execvm ""\usec_ch53\scripts\ch53_gearup.sqf"""; }; - class StropDown { - displayName = "Attach Strop"; - position = "ramp action"; - showWindow = 0; - onlyforplayer = 0; - radius = 5; - condition = "(this animationPhase ""Strop1_Empty"" == 1)&&((this animationPhase 'cargo' == 1) AND (this animationPhase 'cargo2' == 1))&&(player == driver this)"; - statement = "[this,true] execvm ""\usec_ch53\scripts\ch53_strop.sqf"""; - }; - class StropUp { - displayName = "Detach Strop"; - position = "ramp action"; - showWindow = 0; - onlyforplayer = 0; - radius = 5; - condition = "(this animationPhase ""Strop1_Empty"" == 0)&&(player == driver this)"; - statement = "[this,false] execvm ""\usec_ch53\scripts\ch53_strop.sqf"""; - }; - class CollectCargo { - displayName = "Collect Cargo"; - position = "ramp action"; - showWindow = 1; - onlyforplayer = 0; - radius = 5; - condition = "(count(nearestObjects [(this modeltoworld [0,0,-10]), [""USEC_CargoContainer1"",""USEC_CargoContainer2""], 6])>0) and (this animationPhase 'Strop1_Empty' == 0) and (this animationPhase 'cargo' == 1);"; - statement = "[this] execvm ""\usec_ch53\scripts\ch53_cargo.sqf"";"; - }; - class DetachCargo { - displayName = "Detach Cargo"; - position = "ramp action"; - showWindow = 1; - onlyforplayer = 0; - radius = 5; - condition = "((this animationPhase 'cargo' == 0) OR (this animationPhase 'cargo2' == 0));"; - statement = "[this] execvm ""\usec_ch53\scripts\ch53_cargodrop.sqf"";"; - }; - };*/ + }; }; \ No newline at end of file