Hi there, it's first time I post in this forum as i'm starting to modify addons and writting configs and all this stuff...
I've tried to create a new soldier from BISoldier, just painting default textures and rename and rearm it. I've taken the config.cpp and the model.cfg posted here by Plank i think, as the last one I made didn't worked, but by now it's still have the same problem: it doesn't load rvmat wounds and the guy is so deformed (although, the textures are ok, it acts and reacts properly, VehicleClass ok, etc).
That's my config:
// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
class CfgPatches
{
class YO_SOL
{
units[]={"YO_SpecOp"};
weapons[]={};
requiredVersion = 1.000000;
requiredAddons[]={};
};
};
class CfgVehicleClasses
{
class YO_Soldiers
{
displayName="YO Soldiers";
};
};
class CfgVehicles
{
class CAManBase;
class SoldierWB: CAManBase {};
class YO_SpecOp: SoldierWB
{
vehicleClass = "YO_Soldiers";
displayName = "GIR SpecOp";
model = "\YO_SOL\YOsoldier";
scope = 2;
nightVision = 1;
camouflage = 0.600000;
Icon = "\Ca\characters\data\map_ico\i_komandos_CA.paa";
weapons[] = {"M16A4","NVGoggles","Binocular","Throw","Put"};
magazines[] =
{"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenadeTimed","HandGrenadeTimed","SmokeShell"};
respawnweapons[] = {"M16A4","NVGoggles","Binocular","Throw","Put"};
respawnmagazines[] =
{"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenadeTimed","HandGrenadeTimed","SmokeShell"};
class Wounds
{
tex[] = {};
mat[] = {"YO_SOL\data\us_hhl.rvmat","YO_SOL\data\us_hhl_wound1.rvmat","YO_SOL\data\us_hhl_wound2.rvmat","YO_SOL\data\us_soldier_body.rvmat","YO_SOL\data\us_soldier_body_wound1.rvmat","YO_SOL\data\us_soldier_body_wound2.rvmat"};
};
};
and that's model.cfg:
class CfgSkeletons
{
class Default
{
isDiscrete = 1;
skeletonInherit = "";
skeletonBones[] = {};
};
class Head
{
isDiscrete = 0;
skeletonInherit = "";
skeletonBones[] =
{
"neck","",
"neck1","neck",
"head","neck1",
"lBrow","head",
"mBrow","head",
"rBrow","head",
"lMouth","head",
"mMouth","head",
"rMouth","head",
"Eyelids","head",
"LLip","head"
};
};
class OFP2_ManSkeleton
{
isDiscrete = 0;
skeletonInherit = "Head";
skeletonBones[] =
{
"weapon","",
"launcher","",
"Camera","",
"Spine","",
"Spine1","",
"Spine2","",
"Spine3","",
"Pelvis","",
//Left upper side
"LeftShoulder","",
"LeftArm","",
"LeftArmRoll","",
"LeftForeArm","",
"LeftForeArmRoll","",
"LeftHand","",
"LeftHandRing","",
"LeftHandRing1","",
"LeftHandRing2","",
"LeftHandRing3","",
"LeftHandPinky1","",
"LeftHandPinky2","",
"LeftHandPinky3","",
"LeftHandMiddle1","",
"LeftHandMiddle2","",
"LeftHandMiddle3","",
"LeftHandIndex1","",
"LeftHandIndex2","",
"LeftHandIndex3","",
"LeftHandThumb1","",
"LeftHandThumb2","",
"LeftHandThumb3","",
//Right upper side
"RightShoulder","",
"RightArm","",
"RightArmRoll","",
"RightForeArm","",
"RightForeArmRoll","",
"RightHand","",
"RightHandRing","",
"RightHandRing1","",
"RightHandRing2","",
"RightHandRing3","",
"RightHandPinky1","",
"RightHandPinky2","",
"RightHandPinky3","",
"RightHandMiddle1","",
"RightHandMiddle2","",
"RightHandMiddle3","",
"RightHandIndex1","",
"RightHandIndex2","",
"RightHandIndex3","",
"RightHandThumb1","",
"RightHandThumb2","",
"RightHandThumb3","",
//Left lower side
"LeftUpLeg","",
"LeftUpLegRoll","",
"LeftLeg","",
"LeftLegRoll","",
"LeftFoot","",
"LeftToeBase","",
//Right lower side
"RightUpLeg","",
"RightUpLegRoll","",
"RightLeg","",
"RightLegRoll","",
"RightFoot","",
"RightToeBase",""
};
};
class Flag: Default {};
};
class CfgModels
{
class Default
{
sections[] = {};
sectionsInherit="";
skeletonName = "";
};
class Head: Default
{
sections[] =
{
"osobnost",
"brejle"
};
skeletonName = "Head";
};
class Man: Default
{
sections[] =
{
"osobnost",
"Head_Injury",
"Body_Injury",
"l_leg_injury",
"l_arm_injury",
"r_arm_injury",
"l_leg_injury",
"clan"
};
skeletonName = "OFP2_ManSkeleton";
};
class YOsoldier: Man {};
class Flag: Default
{
sections[] = {"latka"};
};
};
Hope some of u coud help me. Thx for all the great support u provide.