Skip to content

Commit

Permalink
Fix VN DLC civilian vehicles not being registered in undercover code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparker95 committed May 10, 2021
1 parent ef1001c commit 62c4b95
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
31 changes: 24 additions & 7 deletions src/Templates/Factions/VN_CIVILIAN.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ _inf set [T_INF_survivor, [
"VN_CIVILIAN_Militant_1"
]];

//==== Vehicles ====
_veh = +(tDefault select T_VEH);
_veh resize T_VEH_SIZE;
_veh set [T_VEH_default, [
private _civCars = [
"vn_c_bicycle_01", 10,
"vn_c_wheeled_m151_01", 30,
"vn_c_wheeled_m151_02", 30,
Expand All @@ -219,18 +216,28 @@ _veh set [T_VEH_default, [
"vn_o_wheeled_z157_01", 2,
"vn_b_wheeled_m151_01", 4,
"vn_b_wheeled_m151_01", 4*/
]];
];
private _civCarsClasses = _civCars select {_x isEqualType "";};

_veh set [T_VEH_boat_unarmed, [
private _civBoats = [
"C_Boat_Civil_01_F", 30,
"vn_c_boat_01_00", 10,
"vn_c_boat_02_00", 10,
"vn_c_boat_08_02", 10,
"vn_c_boat_08_01", 10,
"vn_c_boat_07_02", 10,
"vn_c_boat_07_01", 10
]
];
private _civBoatsClasses = _civBoats select {_x isEqualType "";};

private _civVehiclesOnlyNames = _civCarsClasses + _civBoatsClasses;

//==== Vehicles ====
_veh = [];
_veh resize T_VEH_SIZE;

_veh set [T_VEH_default, _civCars];
_veh set [T_VEH_boat_unarmed, _civBoats];


//==== Cargo ====
Expand All @@ -241,6 +248,16 @@ _inv = [T_INV] call t_fnc_newCategory;
_inv set [T_INV_items, +t_miscItems_civ_modern ];
_inv set [T_INV_backpacks, ["vn_c_pack_01", "vn_c_pack_01_medic_pl", "vn_c_pack_01_engineer_pl", "vn_c_pack_02"]];

// ==== Undercover ====
_uc = [];
_uc resize T_UC_SIZE;
_uc set[T_UC_headgear, []];
_uc set[T_UC_facewear, []];
_uc set[T_UC_uniforms, []];
_uc set[T_UC_backpacks, []];
_uc set[T_UC_civVehs, +_civVehiclesOnlyNames];
_array set [T_UC, _uc];

//==== Arrays ====
_array set [T_INF, _inf];
_array set [T_VEH, _veh];
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Factions/VN_US_Army_police.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ _cargo = +(tDefault select T_CARGO);
_group = +(tDefault select T_GROUP);

//==== Arrays ====
_array set [T_API, _api];
_array set [T_API, {}];
_array set [T_INF, _inf];
_array set [T_VEH, _veh];
_array set [T_DRONE, _drone];
Expand Down

0 comments on commit 62c4b95

Please sign in to comment.