OFPEC Forum

Addons & Mods Depot => Arma2 - Configs & Scripting => Topic started by: DeanosBeano on 04 Jul 2009, 18:38:22

Title: Arma1 skeleton to Arma2
Post by: DeanosBeano on 04 Jul 2009, 18:38:22

 I was trying to load my SAS units into A2 but they crahed the game unfortunately :(.

 i searched the cpp and saw that the collison pattern now has some 24 extra selectons named .
 i added them to the pattern and created the following  cpp and model,cfg
 they work and everything but it seems there is some difference (besides the jaw and lips) in the way the forearms and shoulders are connected , giving them Batwings .
 Has anybody been able to get any further.
 i place code here incase anybody want to try . i guess we may have to rewrite config moves back to arma collision values and rtms ,without the new mlods, but can we have two seperate moce syatems , can we inherit like we can for vehicle classes etc ?

 any ideas discussion welcome.


 
Code: [Select]
#define TRACERNO tracerColor[]={0,0,0,0};tracerColorR[]={0,0,0,0};

class CfgPatches {

class dbo_sas {
Units[] = {"dbo_sas","dbo_sas_b","dbo_sas_c","dbo_sas_d"};
Weapons[] = {};
requiredVersion = 1.000000;
requiredAddons[] = {"CACharacters"};
};
};



 class CfgFactionClasses
{
  class Dbo_uk
{
  displayName = "dbo_uk";
  priority = 0;
  side = 1;
};
};

class CfgVehicles
{
class USMC_Soldier_Light;
class dbo_sas : USMC_Soldier_Light
{
displayName="dbo_sas_Berg";
model="\dbo_sas\dbo_sas";
weapons[] = {};
magazines[] = {};
side = 1;
faction = "Dbo_uk";
class Wounds
{
tex[]={};
mat[]={
"dbo_sas\data\soldier_captive_body.rvmat",
"dbo_sas\data\soldier_captive_body_wound1.rvmat",
"dbo_sas\data\soldier_captive_body_wound2.rvmat",
"dbo_sas\data\soldier_captive_hhl.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound1.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound2.rvmat"
};
};
};
class dbo_sas_b : dbo_sas
{
displayName="dbo_sas";
model="\dbo_sas\dbo_sas_b";
     weapons[] = {
        "M4A1_AIM",
        "Throw",
        "Put",
        "ItemMap",
        "ItemCompass",
        "ItemWatch",
        "ItemRadio",
        "NVgoggles"
      };
      magazines[] = {
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "HandGrenade_west",
        "HandGrenade_west"
      };
class Wounds
{
tex[]={};
mat[]={
"dbo_sas\data\soldier_captive_body.rvmat",
"dbo_sas\data\soldier_captive_body_wound1.rvmat",
"dbo_sas\data\soldier_captive_body_wound2.rvmat",
"dbo_sas\data\soldier_captive_hhl.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound1.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound2.rvmat"
};
};

class AnimationSources
{

class helmet
{
source = "user";
animPeriod = 0.01;
initPhase=1;
};

};
};
class dbo_sas_c : dbo_sas
{
displayName="dbo_sas_c";
model="\dbo_sas\dbo_sas_c";
     weapons[] = {
        "M4A1_AIM",
        "Throw",
        "Put",
        "ItemMap",
        "ItemCompass",
        "ItemWatch",
        "ItemRadio",
        "NVgoggles"
      };
      magazines[] = {
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "HandGrenade_west",
        "HandGrenade_west"
      };
class Wounds
{
tex[]={};
mat[]={
"dbo_sas\data\soldier_captive_body.rvmat",
"dbo_sas\data\soldier_captive_body_wound1.rvmat",
"dbo_sas\data\soldier_captive_body_wound2.rvmat",
"dbo_sas\data\soldier_captive_hhl.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound1.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound2.rvmat"
};
};
};

class dbo_sas_d : dbo_sas
{
displayName="dbo_sas_d";
model="\dbo_sas\dbo_sas_d";
     weapons[] = {
        "M4A1_AIM",
        "Throw",
        "Put",
        "ItemMap",
        "ItemCompass",
        "ItemWatch",
        "ItemRadio",
        "NVgoggles"
      };
      magazines[] = {
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "30Rnd_556x45_Stanag",
        "HandGrenade_west",
        "HandGrenade_west"
      };
class Wounds
{
tex[]={};
mat[]={
"dbo_sas\data\soldier_captive_body.rvmat",
"dbo_sas\data\soldier_captive_body_wound1.rvmat",
"dbo_sas\data\soldier_captive_body_wound2.rvmat",
"dbo_sas\data\soldier_captive_hhl.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound1.rvmat",
"dbo_sas\data\soldier_captive_hhl_wound2.rvmat"
};
};
};
};

model.cfg

Code: [Select]
class CfgSkeletons
{
class default;
class Head : default
{
isDiscrete = 1;
skeletonInherit = "";
};
class OFP2_ManSkeleton : default
{
isDiscrete = 1;
skeletonInherit = "Head";
SkeletonBones[]=
{
"pelvis","",
"spine","pelvis",
"spine1","spine",
"spine2","spine1",
"spine3","spine2",
"neck","spine3",
"neck1","neck",
"head","neck1",
"headcutscene","head",
"jaw","head",
"chin","head",
"jaw_rf","head",
"jaw_rm","head",
"jaw_rs","head",
"jaw_lf","head",
"jaw_lm","head",
"jaw_ls","head",
"ear_r","head",
"ear_l","head",
"lip_lc","head",
"lip_lwlb","head",
"lip_lwlf","head",
"lip_lwm","head",
"lip_lwrf","head",
"lip_lwrb","head",
"lip_rc","head",
"lip_uprb","head",
"lip_uprf","head",
"lip_upm","head",
"lip_uplf","head",
"lip_uplb","head",
"nose_tip","head",
"nose_r","head",
"nose_l","head",
"zig_lt","head",
"zig_lm","head",
"zig_lb","head",
"zig_rt","head",
"zig_rm","head",
"zig_rb","head",
"cheek_r","head",
"cheek_l","head",
"eyebrow_lb","head",
"eyebrow_lm","head",
"eyebrow_lf","head",
"corr","head",
"eyebrow_rf","head",
"eyebrow_rm","head",
"eyebrow_rb","head",
"eye_upr","head",
"eye_lwr","head",
"eye_upl","head",
"eye_lwl","head",
"cheek_rf","head",
"cheek_rm","head",
"cheek_rb","head",
"cheek_lf","head",
"cheek_lm","head",
"cheek_lb","head",
"forehead_l","head",
"forehead_m","head",
"forehead_r","head",
"l_eye","head",
"r_eye","head",
"l_pupila","head",
"r_pupila","head",
"neck_t","head",
"neck_b","head",
"neck_r","head",
"neck_l","head",
"tongue_b","head",
"tongue_m","head",
"tongue_f","head",
"leftshoulder","spine3",
"leftarm","leftshoulder",
"leftarmroll","leftarm",
"leftforearm","leftarmroll",
"leftforearmroll","leftforearm",
"lefthand","leftforearmroll",
"lefthandring","lefthand",
"lefthandring1","lefthandring",
"lefthandring2","lefthandring1",
"lefthandring3","lefthandring2",
"lefthandpinky1","lefthandring",
"lefthandpinky2","lefthandpinky1",
"lefthandpinky3","lefthandpinky2",
"lefthandmiddle1","lefthand",
"lefthandmiddle2","lefthandmiddle1",
"lefthandmiddle3","lefthandmiddle2",
"lefthandindex1","lefthand",
"lefthandindex2","lefthandindex1",
"lefthandindex3","lefthandindex2",
"lefthandthumb1","lefthand",
"lefthandthumb2","lefthandthumb1",
"lefthandthumb3","lefthandthumb2",
"rightshoulder","spine3",
"rightarm","rightshoulder",
"rightarmroll","rightarm",
"rightforearm","rightarmroll",
"rightforearmroll","rightforearm",
"righthand","rightforearmroll",
"righthandring","righthand",
"righthandring1","righthandring",
"righthandring2","righthandring1",
"righthandring3","righthandring2",
"righthandpinky1","righthandring",
"righthandpinky2","righthandpinky1",
"righthandpinky3","righthandpinky2",
"righthandmiddle1","righthand",
"righthandmiddle2","righthandmiddle1",
"righthandmiddle3","righthandmiddle2",
"righthandindex1","righthand",
"righthandindex2","righthandindex1",
"righthandindex3","righthandindex2",
"righthandthumb1","righthand",
"righthandthumb2","righthandthumb1",
"righthandthumb3","righthandthumb2",
"weapon","spine1",
"launcher","spine1",
"camera","pelvis",
"leftupleg","pelvis",
"leftuplegroll","leftupleg",
"leftleg","leftuplegroll",
"leftlegroll","leftleg",
"leftfoot","leftlegroll",
"lefttoebase","leftfoot",
"rightupleg","pelvis",
"rightuplegroll","rightupleg",
"rightleg","rightuplegroll",
"rightlegroll","rightleg",
"rightfoot","rightlegroll",
"righttoebase","rightfoot",
};
};
class Flag {};
class FlagCarrier
{
skeletonBones[] = {"stozar","vlajka",};
skeletonInherit = "";
};
};

class CfgModels
{
class default
{
sections[] = {""};
sectionsInherit="";
};
class flag_vojak
{
sections[] = {"latka"};
sectionsInherit="";
};
class Head
{
skeletonName = "Head";
sectionsInherit="";
sections[] = {"swap_hhl","hide_eyewear"};
};
class dbo_sas
{
skeletonName = "OFP2_ManSkeleton";
sectionsInherit="Head";
sections[] =
{
"pelvis","",
"spine","pelvis",
"spine1","spine",
"spine2","spine1",
"spine3","spine2",
"neck","spine3",
"neck1","neck",
"head","neck1",
"headcutscene","head",
"jaw","head",
"chin","head",
"jaw_rf","head",
"jaw_rm","head",
"jaw_rs","head",
"jaw_lf","head",
"jaw_lm","head",
"jaw_ls","head",
"ear_r","head",
"ear_l","head",
"lip_lc","head",
"lip_lwlb","head",
"lip_lwlf","head",
"lip_lwm","head",
"lip_lwrf","head",
"lip_lwrb","head",
"lip_rc","head",
"lip_uprb","head",
"lip_uprf","head",
"lip_upm","head",
"lip_uplf","head",
"lip_uplb","head",
"nose_tip","head",
"nose_r","head",
"nose_l","head",
"zig_lt","head",
"zig_lm","head",
"zig_lb","head",
"zig_rt","head",
"zig_rm","head",
"zig_rb","head",
"cheek_r","head",
"cheek_l","head",
"eyebrow_lb","head",
"eyebrow_lm","head",
"eyebrow_lf","head",
"corr","head",
"eyebrow_rf","head",
"eyebrow_rm","head",
"eyebrow_rb","head",
"eye_upr","head",
"eye_lwr","head",
"eye_upl","head",
"eye_lwl","head",
"cheek_rf","head",
"cheek_rm","head",
"cheek_rb","head",
"cheek_lf","head",
"cheek_lm","head",
"cheek_lb","head",
"forehead_l","head",
"forehead_m","head",
"forehead_r","head",
"l_eye","head",
"r_eye","head",
"l_pupila","head",
"r_pupila","head",
"neck_t","head",
"neck_b","head",
"neck_r","head",
"neck_l","head",
"tongue_b","head",
"tongue_m","head",
"tongue_f","head",
"leftshoulder","spine3",
"leftarm","leftshoulder",
"leftarmroll","leftarm",
"leftforearm","leftarmroll",
"leftforearmroll","leftforearm",
"lefthand","leftforearmroll",
"lefthandring","lefthand",
"lefthandring1","lefthandring",
"lefthandring2","lefthandring1",
"lefthandring3","lefthandring2",
"lefthandpinky1","lefthandring",
"lefthandpinky2","lefthandpinky1",
"lefthandpinky3","lefthandpinky2",
"lefthandmiddle1","lefthand",
"lefthandmiddle2","lefthandmiddle1",
"lefthandmiddle3","lefthandmiddle2",
"lefthandindex1","lefthand",
"lefthandindex2","lefthandindex1",
"lefthandindex3","lefthandindex2",
"lefthandthumb1","lefthand",
"lefthandthumb2","lefthandthumb1",
"lefthandthumb3","lefthandthumb2",
"rightshoulder","spine3",
"rightarm","rightshoulder",
"rightarmroll","rightarm",
"rightforearm","rightarmroll",
"rightforearmroll","rightforearm",
"righthand","rightforearmroll",
"righthandring","righthand",
"righthandring1","righthandring",
"righthandring2","righthandring1",
"righthandring3","righthandring2",
"righthandpinky1","righthandring",
"righthandpinky2","righthandpinky1",
"righthandpinky3","righthandpinky2",
"righthandmiddle1","righthand",
"righthandmiddle2","righthandmiddle1",
"righthandmiddle3","righthandmiddle2",
"righthandindex1","righthand",
"righthandindex2","righthandindex1",
"righthandindex3","righthandindex2",
"righthandthumb1","righthand",
"righthandthumb2","righthandthumb1",
"righthandthumb3","righthandthumb2",
"weapon","spine1",
"launcher","spine1",
"camera","pelvis",
"leftupleg","pelvis",
"leftuplegroll","leftupleg",
"leftleg","leftuplegroll",
"leftlegroll","leftleg",
"leftfoot","leftlegroll",
"lefttoebase","leftfoot",
"rightupleg","pelvis",
"rightuplegroll","rightupleg",
"rightleg","rightuplegroll",
"rightlegroll","rightleg",
"rightfoot","rightlegroll",
"righttoebase","rightfoot",
};
};
class  dbo_sas_b:dbo_sas{};
class  dbo_sas_c:dbo_sas{};
class  dbo_sas_d:dbo_sas{};
};