Jump to content
Sign in to follow this  
mystic

Setface doesnt work on my model

Recommended Posts

hi there

may i know how come my setface command doesnt work on my model i made? but it works on official soldiers? Pls help thanks!

Share this post


Link to post
Share on other sites
hi there

may i know how come my setface command doesnt work on my model i made? but it works on official soldiers? Pls help thanks!

First of all I would check if you put, lets say 10 soldiers (the ones you made) in the editor and see if they have different faces. If they ALL have the same face, it's because you haven't configurated correctly your soldiers in the config.cpp!

It should have a correct CfgModels section and HLAVA must be in there ...

Thats it!

Later

Share this post


Link to post
Share on other sites

here's my code but it still doesnt work.

class CfgPatches

{

class Army

{

units[]= {"Army", "Enemy", "cm", "cf", "SGface1","SGface2","SGface3","SGface4","SGfa

ce5","SGface6","SGface7","SGface8"};

weapons[]= {"M16S1"};

requiredVersion=1.45;

requiredAddons[] = {"BIS_Resistance", "BIS_WeaponPack"};

};

};

class CfgModels

{

class default {};

class Head: default

{

sections[] =

{

"osobnost",

"brejle"

};

};

class Man: default

{

sections[] =

{

"head injury","body injury",

"l arm injury","r arm injury","p arm injury",

"l leg injury","r leg injury","p leg injury",

"medic",

"hlava",

"krk",

"zasleh",

"svetlo"

};

sectionsInherit=Head;

};

class cm : Man{};

class Army : Man {};

class Enemy : Army{};

class Weapon: default {};

class M16: Weapon {};

class M16S1 : M16 {};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class Man: Land {};

class Soldier: Man {};

class SoldierWB : Soldier {};

class Army : SoldierWB

{

vehicleClass =$STR_VC_INFANTRY;

displayName=$STR_DN_SAF_SOLDIER;

model="\Men\army";

picture="\ranks\LCP.paa"; //rank

weapons[]={"M16S1", "Put","Throw"};

hiddenSelections[]={"medic", "svetlo"};

wounds[] ={

\men\img\face1.paa, \men\img\faceD.paa,

//helmet

\Men\w_helma_front,\Men\w_helma_front_d,

\Men\w_helma_side2,\Men\w_helma_side2_d,

\Men\w_helma_vnitrek,\Men\w_helma_vnitrek_d,

//body

\Men\w_hrud_p,\Men\w_hrud_p_d,

\Men\w_zadaruce_z,\Men\w_zadaruce_z_d,

//arm side

\Men\w_ruka_bok_l,\Men\w_ruka_bok_l_d,

\Men\w_ruka_bok_p,\Men\w_ruka_bok_p_d,

//shoulder

\Men\w_ramena,\Men\w_ramena_d,

//leg

\Men\w_nohy_bok_l.pac,\Men\w_nohy_bok_l_d.pac,

\Men\w_nohy_bok_p.pac,\Men\w_nohy_bok_p_d.pac,

\Men\w_nohy_p,\Men\w_nohy_p_d,

\Men\w_nohy_z,\Men\w_nohy_z_d};

magazines[]=

{

M16Mag, M16Mag, M16Mag, M16Mag, M16Mag, M16Mag,

HandGrenade, HandGrenade

};

};

class CfgFaces

{

class SGface1

{

name="Reuben";

texture="\men\img\face1.paa";

east=1;

west=1;

};

class SGface2

{

name="Jayson";

texture="\men\img\face2.paa";

east=1;

west=1;

};

class SGface3

{

name="Sam";

texture="\men\img\face3.paa";

east=1;

west=1;

};

class SGface4

{

name="Marc";

texture="\men\img\face4.paa";

east=1;

west=1;

};

class SGface5

{

name="Lester";

texture="\men\img\face5.paa";

east=0;

west=1;

};

class SGface6

{

name="Robert";

texture="\men\img\face6.paa";

east=0;

west=1;

};

class SGface7

{

name="Gary";

texture="\men\img\face7.paa";

east=0;

west=1;

};

class SGface8

{

name="Hong";

texture="\men\img\face8.paa";

east=0;

west=1;

};

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×