This shows you the differences between two versions of the page.
arma:config:custom_face [2009-06-24 10:18] snakeman created custom_face initial page. |
arma:config:custom_face [2010-08-23 16:29] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Custom Face ====== | ||
- | |||
- | **Custom face** by Snake Man, PMC. | ||
- | |||
- | Custom faces are configure in the cfgFaces part of the config. | ||
- | |||
- | Here is an usual example: | ||
- | <code cpp> | ||
- | class VTE_AsianMan | ||
- | { | ||
- | class Default | ||
- | { | ||
- | name = $STR_CFG_FACES_DEFAULT; | ||
- | texture = "\vte_chara\faces\asian_face01.pac"; | ||
- | east = false; | ||
- | west = false; | ||
- | }; | ||
- | |||
- | class Custom | ||
- | { | ||
- | name = $STR_CFG_FACES_CUSTOM; | ||
- | texture = "#(argb,8,8,3)color(0.596,0.412,0.365,1)"; | ||
- | east = false; | ||
- | west = false; | ||
- | }; | ||
- | |||
- | class Asian_face01 | ||
- | { | ||
- | name = "Ngyuen N."; | ||
- | texture = "\vte_chara\faces\asian_face01.pac"; | ||
- | east = true; | ||
- | west = true; | ||
- | }; | ||
- | |||
- | class Asian_face02: Asian_face01 | ||
- | { | ||
- | name = "Ngyuen P."; | ||
- | texture = "\vte_chara\faces\asian_face02.pac"; | ||
- | }; | ||
- | }; | ||
- | </code> | ||
- | Note that you must configure the **class Default** with your custom face texture too, otherwise player at mission start will have this face which is setup there, so make it sure its custom and not one of the default BIS faces. | ||
- | |||
- | Then when you configure your soldier, you'll do it like this: | ||
- | <code cpp> | ||
- | class VTE_VC: vte_man | ||
- | { | ||
- | scope = public; | ||
- | side = TEast; | ||
- | displayName = "VC Rifleman (AK47)"; | ||
- | faceType = "VTE_AsianMan"; | ||
- | model = "\vte_chara\vte_vc_rifleman.p3d"; | ||
- | nameSound = "charlie"; | ||
- | </code> | ||
- | Where the key word is the "faceType" setting, there you write your class name you want to use, in our example it is "VTE_AsianMan" class. | ||