Skip to content

Commit

Permalink
Ajout: Auto-connect driver/pilot in vehicle/heli!!
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcloutier13 committed Nov 13, 2022
1 parent 87f165d commit 6f7d753
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions cfg_vehicles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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'";
Expand All @@ -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'";
Expand Down
6 changes: 5 additions & 1 deletion loadouts/mk1_role_driver_tank.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
2 changes: 2 additions & 0 deletions scripts/cgqc_refuel_actions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
Expand All @@ -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 "";
Expand Down

0 comments on commit 6f7d753

Please sign in to comment.