This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
arma2:config:custom_face [2010-09-20 09:17] snakeman added more data. |
arma2:config:custom_face [2017-01-15 07:13] snakeman removed obsolete pmctodo. |
||
---|---|---|---|
Line 120: | Line 120: | ||
</code> | </code> | ||
- | PMCTODO :) | ||
====== CfgFaces ====== | ====== CfgFaces ====== | ||
Line 218: | Line 217: | ||
}; | }; | ||
}; | }; | ||
+ | </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> |