DegmanDMAN

Tactical Balaclavas mod

Oct 6th, 2023
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.42 KB | Gaming | 0 0
  1. // Example on how to assign goggles/balaclavas to your soldier class
  2. // You can assign a specific balaclava(goggles) as well by using LinkedItems[] param
  3. class CfgVehicles {
  4.     class MySoldier {
  5.         identityTypes[]=
  6.         {
  7.             "LanguageENG_F",
  8.             "Head_EURO",
  9.             "Deg_Balaclavas_Black_Goggles"          // Reference to identityTypes[] in goggle classes
  10.         };
  11.     };
  12. };
  13. /*
  14. Identity types:
  15.     "Deg_Goggles"
  16.     - ESS ICE, ESS RollBar, EP Gatorz M, Combat Goggles
  17.  
  18.     "Deg_Balaclavas"
  19.     - All balaclavas (no goggles)
  20.  
  21.     "Deg_Balaclavas_Goggles"
  22.     - All balaclavas (goggles)
  23.  
  24.     "Deg_Balaclavas_#COLOR#"
  25.     - All balaclavas of selected color (no goggles)
  26.  
  27.     "Deg_Balaclavas_#COLOR#_Goggles"
  28.     - All balaclavas of selected color (goggles)
  29. Colors:
  30.     - Black
  31.     - White
  32.     - Tan
  33.     - Green
  34.     - Wdl01     // woodland
  35.     - Flecktarn
  36.     - MC        // multicam
  37.     - MTP       // multi-terrain pattern
  38.     - CROPAT_W  // Croatian pattern (woodland)
  39. */
  40.  
  41. // Example on how to make your own balaclava compatible
  42. Class CfgGlasses {
  43.     class Deg_TB_MyBalaclava_Grey {             // Deg_TB_ prefix will register your balaclava to function
  44.         identityTypes[]=
  45.         {
  46.             "Deg_Balaclavas",                   // You can name these strings whatever you want.
  47.             0,                                  // Strings refered to in Soldier class's identityTypes[]
  48.             "Deg_Balaclavas_Goggles",
  49.             1, 
  50.             "Deg_Balaclavas_Grey",
  51.             0,
  52.             "Deg_Balaclavas_Grey_Goggles",
  53.             1
  54.     };
  55. };
  56.  
  57. // Example on how to make your own face compatible
  58. // Deg_TB_ prefix will register your face as compatible to function
  59. // You should not delete your original face class, but create an additional face class with the prefix
  60.  
  61. class CfgFaces {
  62. // this MACRO is very helpful when you have many faces to cover, or well, even a few
  63. #define TacBalaFace(CLASSNAME)\                     //returns Deg_TB_yourFaceClassname
  64.     class Deg_TB_##CLASSNAME##: ##CLASSNAME##\      //Deg_TB_ prefix ensures this face will be registered to face switch function
  65.     {\
  66.       displayName=[TB] ##CLASSNAME##;\              //not really important since it won't be visible, but still...
  67.       author="Author's name";\
  68.       disabled=1;\                                  //this face should NOT be selectable in profile, arsenal or 3den
  69.       head="Deg_Head_TB_Face";\                     // This can be your own head model - should be only the area around eyes
  70.       identityTypes[]=\                             // and lower neck. Example head .p3d model on:
  71.       {\                                            // https://github.com/DegmanDMAN/tacticalbalaclavas_arma3/tree/main
  72.       };\
  73.     }
  74.  
  75.     TacBalaFace(PersianHead_A3_01);     // returns Deg_TB_PersianHead_A3_01
  76.     class yourFaceClassname01;
  77.     class yourFaceClassname02;
  78.     TacBalaFace(yourFaceClassname01);   // returns Deg_TB_yourFaceClassname01
  79.     TacBalaFace(yourFaceClassname02);
  80. };
  81.    
  82. // Example on how to make your female face compatible
  83. class CfgFaces {
  84. #define TacBalaFace(CLASSNAME)\
  85.         class Deg_TB_##CLASSNAME##: ##CLASSNAME##\
  86.         {\
  87.             displayName=[TB] ##CLASSNAME##;\
  88.             author="Iceman";\
  89.             disabled=1;\
  90.             head="Deg_Head_TB_Face_Woman_Iceman";\
  91.             identityTypes[]=\
  92.             {\
  93.             };\
  94.         }
  95.  
  96.     class Default;
  97.     class Man_A3: Default
  98.     {
  99.         class Default;
  100.         class B_female_bun_01: Default
  101.         {
  102.             isWoman=1;                  // Very important that you have this param added in the ORIGINAL face
  103.         };                              // isWoman=1; will tell function that it's a female face
  104.         class B_female_bun_02: Default
  105.         {
  106.             isWoman=1;
  107.         };
  108.         class B_female_bun_03: Default
  109.         {
  110.             isWoman=1;
  111.         };
  112.         class B_female_bun_04: Default
  113.         {
  114.             isWoman=1;
  115.         };
  116.         TacBalaFace(B_female_bun_01);   // Deg_TB_B_female_bun_01
  117.         TacBalaFace(B_female_bun_02);
  118.         TacBalaFace(B_female_bun_03);
  119.         TacBalaFace(B_female_bun_04);
  120.     };
  121. };
  122.  
  123. // Exampe on how to make a special version of balaclava for women
  124. // Deg_TB_ prefix
  125. // _female suffix (will instruct function that it's a female version of whatever comes before suffix)
  126. // Example: Deg_TB_myBalaclava_female
  127. Class CfgGlasses {
  128. #define Deg_TB_femaleSuffix(CLASSNAME)\
  129.         class ##CLASSNAME##_female: ##CLASSNAME##\
  130.         {\
  131.             author="Degman (D-Man)";\
  132.             _generalMacro=##CLASSNAME##_female;\
  133.             model="deg_goggles\heads\h_tb_g_combat_w.p3d";\     // special .p3d to fit on female face(s)
  134.             scope=1;\                                           // hidden, we dont want two identical items in arsenal (male/female)
  135.         }
  136.  
  137.         class Deg_TB_myBalaclava;
  138.         Deg_TB_femaleSuffix(myBalaclava);   // returns Deg_TB_myBalaclava_female
  139. };
Tags: Arma3
Advertisement
Add Comment
Please, Sign In to add comment