Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example on how to assign goggles/balaclavas to your soldier class
- // You can assign a specific balaclava(goggles) as well by using LinkedItems[] param
- class CfgVehicles {
- class MySoldier {
- identityTypes[]=
- {
- "LanguageENG_F",
- "Head_EURO",
- "Deg_Balaclavas_Black_Goggles" // Reference to identityTypes[] in goggle classes
- };
- };
- };
- /*
- Identity types:
- "Deg_Goggles"
- - ESS ICE, ESS RollBar, EP Gatorz M, Combat Goggles
- "Deg_Balaclavas"
- - All balaclavas (no goggles)
- "Deg_Balaclavas_Goggles"
- - All balaclavas (goggles)
- "Deg_Balaclavas_#COLOR#"
- - All balaclavas of selected color (no goggles)
- "Deg_Balaclavas_#COLOR#_Goggles"
- - All balaclavas of selected color (goggles)
- Colors:
- - Black
- - White
- - Tan
- - Green
- - Wdl01 // woodland
- - Flecktarn
- - MC // multicam
- - MTP // multi-terrain pattern
- - CROPAT_W // Croatian pattern (woodland)
- */
- // Example on how to make your own balaclava compatible
- Class CfgGlasses {
- class Deg_TB_MyBalaclava_Grey { // Deg_TB_ prefix will register your balaclava to function
- identityTypes[]=
- {
- "Deg_Balaclavas", // You can name these strings whatever you want.
- 0, // Strings refered to in Soldier class's identityTypes[]
- "Deg_Balaclavas_Goggles",
- 1,
- "Deg_Balaclavas_Grey",
- 0,
- "Deg_Balaclavas_Grey_Goggles",
- 1
- };
- };
- // Example on how to make your own face compatible
- // Deg_TB_ prefix will register your face as compatible to function
- // You should not delete your original face class, but create an additional face class with the prefix
- class CfgFaces {
- // this MACRO is very helpful when you have many faces to cover, or well, even a few
- #define TacBalaFace(CLASSNAME)\ //returns Deg_TB_yourFaceClassname
- class Deg_TB_##CLASSNAME##: ##CLASSNAME##\ //Deg_TB_ prefix ensures this face will be registered to face switch function
- {\
- displayName=[TB] ##CLASSNAME##;\ //not really important since it won't be visible, but still...
- author="Author's name";\
- disabled=1;\ //this face should NOT be selectable in profile, arsenal or 3den
- head="Deg_Head_TB_Face";\ // This can be your own head model - should be only the area around eyes
- identityTypes[]=\ // and lower neck. Example head .p3d model on:
- {\ // https://github.com/DegmanDMAN/tacticalbalaclavas_arma3/tree/main
- };\
- }
- TacBalaFace(PersianHead_A3_01); // returns Deg_TB_PersianHead_A3_01
- class yourFaceClassname01;
- class yourFaceClassname02;
- TacBalaFace(yourFaceClassname01); // returns Deg_TB_yourFaceClassname01
- TacBalaFace(yourFaceClassname02);
- };
- // Example on how to make your female face compatible
- class CfgFaces {
- #define TacBalaFace(CLASSNAME)\
- class Deg_TB_##CLASSNAME##: ##CLASSNAME##\
- {\
- displayName=[TB] ##CLASSNAME##;\
- author="Iceman";\
- disabled=1;\
- head="Deg_Head_TB_Face_Woman_Iceman";\
- identityTypes[]=\
- {\
- };\
- }
- class Default;
- class Man_A3: Default
- {
- class Default;
- class B_female_bun_01: Default
- {
- isWoman=1; // Very important that you have this param added in the ORIGINAL face
- }; // isWoman=1; will tell function that it's a female face
- class B_female_bun_02: Default
- {
- isWoman=1;
- };
- class B_female_bun_03: Default
- {
- isWoman=1;
- };
- class B_female_bun_04: Default
- {
- isWoman=1;
- };
- TacBalaFace(B_female_bun_01); // Deg_TB_B_female_bun_01
- TacBalaFace(B_female_bun_02);
- TacBalaFace(B_female_bun_03);
- TacBalaFace(B_female_bun_04);
- };
- };
- // Exampe on how to make a special version of balaclava for women
- // Deg_TB_ prefix
- // _female suffix (will instruct function that it's a female version of whatever comes before suffix)
- // Example: Deg_TB_myBalaclava_female
- Class CfgGlasses {
- #define Deg_TB_femaleSuffix(CLASSNAME)\
- class ##CLASSNAME##_female: ##CLASSNAME##\
- {\
- author="Degman (D-Man)";\
- _generalMacro=##CLASSNAME##_female;\
- model="deg_goggles\heads\h_tb_g_combat_w.p3d";\ // special .p3d to fit on female face(s)
- scope=1;\ // hidden, we dont want two identical items in arsenal (male/female)
- }
- class Deg_TB_myBalaclava;
- Deg_TB_femaleSuffix(myBalaclava); // returns Deg_TB_myBalaclava_female
- };
Advertisement
Add Comment
Please, Sign In to add comment