From 6f7d7538a0e7a6f23de2c5d66c044026ceafc2cf Mon Sep 17 00:00:00 2001 From: Maxime Cloutier Date: Sun, 13 Nov 2022 16:42:36 -0500 Subject: [PATCH] Ajout: Auto-connect driver/pilot in vehicle/heli!! --- cfg_vehicles.cpp | 2 -- loadouts/mk1_role_driver_tank.sqf | 6 +++++- scripts/cgqc_refuel_actions.sqf | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cfg_vehicles.cpp b/cfg_vehicles.cpp index df483e2..e7411c2 100644 --- a/cfg_vehicles.cpp +++ b/cfg_vehicles.cpp @@ -529,7 +529,6 @@ class cgqc_refuel_h : Land_HelipadSquare_F //editorSubcategory = "EdSubcat_cgqc_offroad"; _generalMacro = "cgqc_refuel_h"; displayName = "CGQC - Helipad - Standard"; - class EventHandlers { init = "[_this] execVM '\cgqc_2022\scripts\cgqc_refuel_setup.sqf'"; @@ -542,7 +541,6 @@ class cgqc_refuel_h_short : Land_HelipadSquare_F //editorSubcategory = "EdSubcat_cgqc_offroad"; _generalMacro = "cgqc_refuel_h"; displayName = "CGQC - Helipad - Rapide"; - class EventHandlers { init = "[_this] execVM '\cgqc_2022\scripts\cgqc_refuel_setup_short.sqf'"; diff --git a/loadouts/mk1_role_driver_tank.sqf b/loadouts/mk1_role_driver_tank.sqf index 2d0296e..7b03d58 100644 --- a/loadouts/mk1_role_driver_tank.sqf +++ b/loadouts/mk1_role_driver_tank.sqf @@ -118,8 +118,12 @@ player linkItem "B_UavTerminal"; //disableUserInput false; sleep 2; -//Set radios +// Set radios ["centaure_pieton"] execVM "\cgqc\factions\stuff_player.sqf"; +// Ajoute auto-connect +//_action = [ "menu_self_vicradio", "Connecte les radios", "", {['set_centaure'] execVM "\cgqc\factions\stuff_player.sqf"}, {true} ] call ace_interact_menu_fnc_createAction; +// _adding = [ player, 1, ["ACE_SelfActions"], _action ] call ace_interact_menu_fnc_addActionToObject; + hint "Rôle: Centaure"; sleep 3; hintSilent ""; \ No newline at end of file diff --git a/scripts/cgqc_refuel_actions.sqf b/scripts/cgqc_refuel_actions.sqf index d48be0b..46467c1 100644 --- a/scripts/cgqc_refuel_actions.sqf +++ b/scripts/cgqc_refuel_actions.sqf @@ -7,6 +7,7 @@ do { _action = [ "menu_self_rrr", "Maintenance Véhicule", "CGQC_2022\textures\icon_maintenance", {['normal'] execVM "\cgqc_2022\scripts\cgqc_refuel_heli.sqf"}, {true} ] call ace_interact_menu_fnc_createAction; _adding = [ player, 1, ["ACE_SelfActions"], _action ] call ace_interact_menu_fnc_addActionToObject; + sleep 3; hint "Maintenance dispo dans votre Self-Action"; sleep 10; hintSilent ""; @@ -20,6 +21,7 @@ do { _action = [ "menu_self_rrr_short", "Maintenance Rapide - Véhicule", "CGQC_2022\textures\icon_maintenance", {['short'] execVM "\cgqc_2022\scripts\cgqc_refuel_heli.sqf"}, {true} ] call ace_interact_menu_fnc_createAction; _adding = [ player, 1, ["ACE_SelfActions"], _action ] call ace_interact_menu_fnc_addActionToObject; + sleep 3; hint "Maintenance rapide dans votre Self-Action"; sleep 10; hintSilent "";