User Tools

Site Tools


arma2:config:custom_face

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
arma2:config:custom_face [2010-09-20 09:17]
snakeman added more data.
arma2:config:custom_face [2013-05-27 06:48]
snakeman added example face configs.
Line 218: Line 218:
  };  };
  };  };
 +</​code>​
 +
 +
 +====== Example African (black) Faces ======
 +
 +African black faces for characters
 +
 +African names:
 +<code cpp>
 +class CfgWorlds
 +{
 + class GenericNames
 + {
 + class PMC_Somali_Names
 + {
 + class FirstNames
 + {
 + adalberto = "​Adalberto";​
 + //etc
 + };
 + class LastNames
 + {
 + morales = "​Morales";​
 + // etc
 +</​code>​
 +
 +Face configs:
 +<code cpp>
 +class CfgFaces
 +{
 + class Man;
 + class PMC_Somali_Faces:​ Man
 + {
 + class Default
 + {
 + name = "​$STR_CFG_FACES_DEFAULT";​
 + texture = "​\ca\characters\hhl\hhl_31_CO.paa";​
 + head = "​BlackHead";​
 + identityTypes[] = {};
 + material = "​\ca\characters\heads\male\BlackHead\data\hhl_black.rvmat";​
 + };
 + class Custom: Default
 + {
 + name = "​$STR_CFG_FACES_CUSTOM";​
 + texture = "#​(argb,​8,​8,​3)color(0.596,​0.412,​0.365,​1)";​
 + head = "​BlackHead";​
 + identityTypes[] = {};
 + material = "​\ca\characters\heads\male\BlackHead\data\hhl_black.rvmat";​
 + };
 + class Face26: Default
 + {
 + name = "​$STR_FN_Man_Face26";​
 + texture = "​\ca\characters\hhl\hhl_26_CO.paa";​
 + disabled = 0;
 + identityTypes[] = {"​Default","","","​Head_USMC","​Head_USMC_CO","​Head_CDF","​Head_CDF_CO","​Head_INS","​Head_GUE","​Head_CIV",""​};​
 + };
 + class Face27: Default
 + {
 + name = "​$STR_FN_Man_Face27";​
 + texture = "​\ca\characters\hhl\hhl_27_CO.paa";​
 + disabled = 0;
 + identityTypes[] = {"​Default","","","​Head_USMC","​Head_USMC_CO","​Head_CDF","​Head_CDF_CO","​Head_INS","​Head_GUE","​Head_CIV",""​};​
 + };
 + // etc
 +</​code>​
 +
 +Then in character'​s class you make:
 +<code cpp>
 +genericNames = "​PMC_Somali_Names";​
 +faceType = "​PMC_Somali_Faces";​
 </​code>​ </​code>​
arma2/config/custom_face.txt ยท Last modified: 2017-01-15 07:13 by snakeman