Skip to content

Commit

Permalink
Merge pull request #708 from Jasperdoit/Vehiclemod
Browse files Browse the repository at this point in the history
Added car attachments to the vanilla police factions.
  • Loading branch information
Sparker95 authored Aug 24, 2020
2 parents abde2d8 + 9f63f8a commit df7c0ad
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Templates/Factions/POLICE.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Factions/POLICE_DLC.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
]
2 changes: 1 addition & 1 deletion src/Templates/Loadouts/Arma3_POLICE/Police/init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Original file line number Diff line number Diff line change
@@ -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;
}
]
Original file line number Diff line number Diff line change
@@ -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;
}
]
Original file line number Diff line number Diff line change
@@ -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;
}
]
Original file line number Diff line number Diff line change
@@ -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;

}
]
6 changes: 4 additions & 2 deletions src/Templates/Loadouts/Arma3_POLICE/Police_DLC/init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit df7c0ad

Please sign in to comment.