From 9f63f8ad1c219b58c2797411cc97b4f37c20951e Mon Sep 17 00:00:00 2001 From: Jasperdoit Date: Sun, 23 Aug 2020 18:49:03 +0200 Subject: [PATCH] Added random vehicle attachments to the Police and DLC Police faction --- src/Templates/Factions/POLICE.sqf | 2 +- src/Templates/Factions/POLICE_DLC.sqf | 2 +- .../Police/B_GEN_Offroad_01_gen_F_1.sqf | 14 ++++++++++++++ .../Loadouts/Arma3_POLICE/Police/init.sqf | 2 +- .../Police_DLC/B_GEN_Offroad_01_comms_F_1.sqf | 14 ++++++++++++++ .../Police_DLC/B_GEN_Offroad_01_covered_F_1.sqf | 14 ++++++++++++++ .../Police_DLC/B_GEN_Offroad_01_gen_F_1_DLC.sqf | 14 ++++++++++++++ .../Police_DLC/B_GEN_Van_02_transport_F_1.sqf | 15 +++++++++++++++ .../Loadouts/Arma3_POLICE/Police_DLC/init.sqf | 6 ++++-- 9 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 src/Templates/Loadouts/Arma3_POLICE/Police/B_GEN_Offroad_01_gen_F_1.sqf create mode 100644 src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_comms_F_1.sqf create mode 100644 src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_covered_F_1.sqf create mode 100644 src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_gen_F_1_DLC.sqf create mode 100644 src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Van_02_transport_F_1.sqf diff --git a/src/Templates/Factions/POLICE.sqf b/src/Templates/Factions/POLICE.sqf index a42d82491..3144572a0 100644 --- a/src/Templates/Factions/POLICE.sqf +++ b/src/Templates/Factions/POLICE.sqf @@ -46,7 +46,7 @@ _inf set [T_INF_officer, ["Arma3_police_officer", 0.50, /*"Arma3_police_14", 0.7 //==== Vehicles ==== _veh = []; _veh resize T_VEH_SIZE; _veh set [T_VEH_DEFAULT, ["B_GEN_Offroad_01_gen_F"]]; -_veh set [T_VEH_car_unarmed, ["B_GEN_Offroad_01_gen_F"]]; +_veh set [T_VEH_car_unarmed, ["B_GEN_Offroad_01_gen_F_1"]]; //==== Drones ==== _drone = []; _drone resize T_DRONE_SIZE; diff --git a/src/Templates/Factions/POLICE_DLC.sqf b/src/Templates/Factions/POLICE_DLC.sqf index 2da329378..16245a97f 100644 --- a/src/Templates/Factions/POLICE_DLC.sqf +++ b/src/Templates/Factions/POLICE_DLC.sqf @@ -46,7 +46,7 @@ _inf set [T_INF_officer, ["Arma3_police_dlc_officer", 0.50, "Arma3_police_dlc_1" //==== Vehicles ==== _veh = []; _veh resize T_VEH_SIZE; _veh set [T_VEH_DEFAULT, ["B_GEN_Offroad_01_gen_F"]]; -_veh set [T_VEH_car_unarmed, ["B_GEN_Offroad_01_gen_F", 2, "B_GEN_Offroad_01_comms_F", 1, "B_GEN_Offroad_01_covered_F", 1.75, "B_GEN_Van_02_transport_F", 1]]; // , "B_GEN_Van_02_vehicle_F" -- not enough seats in this +_veh set [T_VEH_car_unarmed, ["B_GEN_Offroad_01_gen_F_1_DLC", 2, "B_GEN_Offroad_01_comms_F_1", 1, "B_GEN_Offroad_01_covered_F_1", 1.75, "B_GEN_Van_02_transport_F_1", 1]]; // , "B_GEN_Van_02_vehicle_F" -- not enough seats in this //==== Drones ==== _drone = []; _drone resize T_DRONE_SIZE; diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police/B_GEN_Offroad_01_gen_F_1.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police/B_GEN_Offroad_01_gen_F_1.sqf new file mode 100644 index 000000000..b1e9be125 --- /dev/null +++ b/src/Templates/Loadouts/Arma3_POLICE/Police/B_GEN_Offroad_01_gen_F_1.sqf @@ -0,0 +1,14 @@ +[ + // Initial vehicle class name + "B_GEN_Offroad_01_gen_F", + + // This code will be called upon vehicle construction + { + params ["_veh"]; +[ + _veh, + ["Gendarmerie",1], + ["HideDoor1",0,"HideDoor2",0,"HideDoor3",0.45,"HideBackpacks",0.75,"HideBumper1",1,"HideBumper2",0.3,"HideConstruction",0.4,"hidePolice",0,"HideServices",1,"BeaconsStart",0,"BeaconsServicesStart",0] +] call BIS_fnc_initVehicle; + } +] \ No newline at end of file diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police/init.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police/init.sqf index b89216f94..8a3724d0c 100644 --- a/src/Templates/Loadouts/Arma3_POLICE/Police/init.sqf +++ b/src/Templates/Loadouts/Arma3_POLICE/Police/init.sqf @@ -11,5 +11,5 @@ ADD_LOADOUT("Arma3_police_8", "Arma3_POLICE\Police\A3_police_8.sqf") ADD_LOADOUT("Arma3_police_9", "Arma3_POLICE\Police\A3_police_9.sqf") ADD_LOADOUT("Arma3_police_10", "Arma3_POLICE\Police\A3_police_10.sqf") ADD_LOADOUT("Arma3_police_officer", "Arma3_POLICE\Police\A3_police_officer.sqf") - +ADD_LOADOUT("B_GEN_Offroad_01_gen_F_1", "Arma3_POLICE\Police\B_GEN_Offroad_01_gen_F_1.sqf") diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_comms_F_1.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_comms_F_1.sqf new file mode 100644 index 000000000..6729f83d5 --- /dev/null +++ b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_comms_F_1.sqf @@ -0,0 +1,14 @@ +[ + // Initial vehicle class name + "B_GEN_Offroad_01_comms_F", + + // This code will be called upon vehicle construction + { + params ["_veh"]; +[ + _veh, + ["Gendarmerie",1], + ["hidePolice",0.55,"HideServices",1,"HideCover",0.25,"StartBeaconLight",0,"HideRoofRack",0.25,"HideLoudSpeakers",0.5,"HideAntennas",0.5,"HideBeacon",0.5,"HideSpotlight",0.5,"HideDoor3",0,"OpenDoor3",0,"HideDoor1",0,"HideDoor2",0,"HideBackpacks",0.4,"HideBumper1",1,"HideBumper2",0.15,"HideConstruction",0.2,"BeaconsStart",0] +] call BIS_fnc_initVehicle; + } +] \ No newline at end of file diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_covered_F_1.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_covered_F_1.sqf new file mode 100644 index 000000000..c219f48b5 --- /dev/null +++ b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_covered_F_1.sqf @@ -0,0 +1,14 @@ +[ + // Initial vehicle class name + "B_GEN_Offroad_01_comms_F", + + // This code will be called upon vehicle construction + { + params ["_veh"]; +[ + _veh, + ["Gendarmerie",1], + ["hidePolice",0.4,"HideServices",1,"HideCover",0.3,"StartBeaconLight",0,"HideRoofRack",0.3,"HideLoudSpeakers",0.5,"HideAntennas",0.5,"HideBeacon",0.5,"HideSpotlight",0.5,"HideDoor3",0,"OpenDoor3",0,"HideDoor1",0,"HideDoor2",0,"HideBackpacks",0.4,"HideBumper1",1,"HideBumper2",0.1,"HideConstruction",0.2,"BeaconsStart",0] +] call BIS_fnc_initVehicle; + } +] \ No newline at end of file diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_gen_F_1_DLC.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_gen_F_1_DLC.sqf new file mode 100644 index 000000000..b1e9be125 --- /dev/null +++ b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Offroad_01_gen_F_1_DLC.sqf @@ -0,0 +1,14 @@ +[ + // Initial vehicle class name + "B_GEN_Offroad_01_gen_F", + + // This code will be called upon vehicle construction + { + params ["_veh"]; +[ + _veh, + ["Gendarmerie",1], + ["HideDoor1",0,"HideDoor2",0,"HideDoor3",0.45,"HideBackpacks",0.75,"HideBumper1",1,"HideBumper2",0.3,"HideConstruction",0.4,"hidePolice",0,"HideServices",1,"BeaconsStart",0,"BeaconsServicesStart",0] +] call BIS_fnc_initVehicle; + } +] \ No newline at end of file diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Van_02_transport_F_1.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Van_02_transport_F_1.sqf new file mode 100644 index 000000000..466ed594c --- /dev/null +++ b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/B_GEN_Van_02_transport_F_1.sqf @@ -0,0 +1,15 @@ +[ + // Initial vehicle class name + "B_GEN_Van_02_transport_F", + + // This code will be called upon vehicle construction + { + params ["_veh"]; +[ + _veh, + ["Gendarmerie",1], + ["Door_1_source",0,"Door_2_source",0,"Door_3_source",0,"Door_4_source",0,"Hide_Door_1_source",0,"Hide_Door_2_source",0,"Hide_Door_3_source",0,"Hide_Door_4_source",0,"lights_em_hide",0,"ladder_hide",0.75,"spare_tyre_holder_hide",0.5,"spare_tyre_hide",0.5,"reflective_tape_hide",0.15,"roof_rack_hide",0.2,"LED_lights_hide",0.15,"sidesteps_hide",0.5,"rearsteps_hide",0.5,"side_protective_frame_hide",0.5,"front_protective_frame_hide",0.15,"beacon_front_hide",0.2,"beacon_rear_hide",0.2] +] call BIS_fnc_initVehicle; + + } +] \ No newline at end of file diff --git a/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/init.sqf b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/init.sqf index b7fdc24ea..3076cd9bc 100644 --- a/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/init.sqf +++ b/src/Templates/Loadouts/Arma3_POLICE/Police_DLC/init.sqf @@ -11,5 +11,7 @@ ADD_LOADOUT("Arma3_police_dlc_8", "Arma3_POLICE\Police_DLC\A3_police_dlc_8.sqf ADD_LOADOUT("Arma3_police_dlc_9", "Arma3_POLICE\Police_DLC\A3_police_dlc_9.sqf") ADD_LOADOUT("Arma3_police_dlc_10", "Arma3_POLICE\Police_DLC\A3_police_dlc_10.sqf") ADD_LOADOUT("Arma3_police_dlc_officer", "Arma3_POLICE\Police_DLC\A3_police_dlc_officer.sqf") - - +ADD_LOADOUT("B_GEN_Offroad_01_gen_F_1_DLC", "Arma3_POLICE\Police_DLC\B_GEN_Offroad_01_gen_F_1_DLC.sqf") +ADD_LOADOUT("B_GEN_Offroad_01_comms_F_1", "Arma3_POLICE\Police_DLC\B_GEN_Offroad_01_comms_F_1.sqf") +ADD_LOADOUT("B_GEN_Offroad_01_covered_F_1", "Arma3_POLICE\Police_DLC\B_GEN_Offroad_01_covered_F_1.sqf") +ADD_LOADOUT("B_GEN_Van_02_transport_F_1", "Arma3_POLICE\Police_DLC\B_GEN_Van_02_transport_F_1.sqf") \ No newline at end of file