From 73438fdf6051ad5bbd9bde3e65f76685ba751d33 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Sat, 28 Dec 2024 19:16:31 -0300 Subject: [PATCH] added random suit function for thugs faction --- addons/main/$PBOPREFIX$ | 1 + addons/main/config.cpp | 21 +++++ addons/main/functions/fn_thugswear.sqf | 113 +++++++++++++++++++++++++ 3 files changed, 135 insertions(+) create mode 100644 addons/main/$PBOPREFIX$ create mode 100644 addons/main/config.cpp create mode 100644 addons/main/functions/fn_thugswear.sqf diff --git a/addons/main/$PBOPREFIX$ b/addons/main/$PBOPREFIX$ new file mode 100644 index 0000000..ce9cec5 --- /dev/null +++ b/addons/main/$PBOPREFIX$ @@ -0,0 +1 @@ +braf\braf_factions\addons\main \ No newline at end of file diff --git a/addons/main/config.cpp b/addons/main/config.cpp new file mode 100644 index 0000000..e088a49 --- /dev/null +++ b/addons/main/config.cpp @@ -0,0 +1,21 @@ +class CfgPatches { + class braf_factions_main { + author = "BRAF Team"; + requiredAddons[] = { + "braf_main", + }; + requiredVersion = 0.1; + units[] = {}; + weapons[] = {}; + }; +}; + +class CfgFunctions { + class braf_factions { + class functions { + class thugswear { + file = "braf\braf_factions\addons\main\functions\fn_thugswear.sqf"; + }; + }; + }; +}; diff --git a/addons/main/functions/fn_thugswear.sqf b/addons/main/functions/fn_thugswear.sqf new file mode 100644 index 0000000..3a03cf9 --- /dev/null +++ b/addons/main/functions/fn_thugswear.sqf @@ -0,0 +1,113 @@ +params["_unit"]; + +suits = [ + "U_C_ArtTShirt_01_v3_F", + "U_C_ArtTShirt_01_v5_F", + "U_C_ArtTShirt_01_v4_F", + "U_C_ArtTShirt_01_v2_F", + "U_C_ArtTShirt_01_v1_F", + "U_C_ArtTShirt_01_v6_F", + "U_C_Mechanic_01_F", + "U_C_IDAP_Man_Tee_F", + "U_C_Uniform_Scientist_02_formal_F", + "U_C_Uniform_Scientist_02_F", + "U_I_L_Uniform_01_tshirt_sport_F", + "U_I_L_Uniform_01_tshirt_skull_F", + "U_I_L_Uniform_01_tshirt_olive_F", + "U_I_L_Uniform_01_tshirt_black_F", + "U_C_E_LooterJacket_01_F", + "U_C_Uniform_Farmer_01_F", + "U_C_Man_casual_5_F", + "U_C_Man_casual_4_F", + "U_C_Man_casual_6_F", + "U_C_man_sport_2_F", + "U_C_man_sport_3_F", + "U_C_man_sport_1_F", + "U_I_C_Soldier_Para_1_F", + "U_I_C_Soldier_Para_4_F", + "U_I_C_Soldier_Para_5_F", + "U_I_C_Soldier_Para_3_F", + "U_C_Man_casual_1_F", + "U_C_Man_casual_3_", + "U_C_Man_casual_2_F", + "U_I_C_Soldier_Bandit_3_F", + "U_I_C_Soldier_Bandit_5_F", + "U_I_C_Soldier_Bandit_2_F", + "U_I_C_Soldier_Bandit_1_F", + "U_I_C_Soldier_Bandit_4_F", + "U_C_Poor_1", + "U_OrestesBody", + "U_C_HunterBody_grn", + "U_BG_Guerilla2_3", + "U_BG_Guerilla2_1", + "U_BG_Guerilla2_2", + "U_Competitor", + "U_C_Poloshirt_tricolour", + "U_C_Poloshirt_stripped", + "U_C_Poloshirt_salmo", + "U_C_Poloshirt_redwhite", + "U_C_Poloshirt_burgundy", + "U_C_Poloshirt_blue" +]; + +headgears = [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "H_Cap_blk", + 'H_Cap_blu', + "H_Cap_red", + "H_Cap_oli", + "H_RacingHelmet_1_black_F", + "H_RacingHelmet_1_white_F", + "H_RacingHelmet_1_red_F", + "H_RacingHelmet_1_orange_F", + "H_RacingHelmet_1_blue_F" +]; + +facewears = [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "G_Aviator", + "G_Shades_Black", + "G_Shades_Blue", + "G_Shades_Green", + "G_Shades_Red", + "G_Spectacles", + "G_Sport_Blackred", + "G_Sport_Greenblack", + "G_Squares_Tinted", + "G_Squares", + "G_Spectacles_Tinted", + "G_EyeProtectors_F" +]; + +_unit forceAddUniform (selectRandom suits); +_unit addHeadgear (selectRandom headgears); +_unit addGoggles (selectRandom facewears); \ No newline at end of file