Jump to content
Sign in to follow this  
cmcssc

Harris bipod legs model config

Recommended Posts

How can I make the spring and the legs rotate correctly ?separate them or merge tham?The sample bipod legs already have the angle when he fold up,but the Harris use a angled leg axis to open,this is my model config,sorry my bad English!!

 

class CfgSkeletons
{
 class Default
 {
  isDiscrete = 1;
  skeletonInherit = "";
  skeletonBones[] = {};
 };
 class MK20_SSR_acc : Default
 {
  SkeletonBones[]=
  {
   "trigger",  "",
   "bolt",   "",
   "bolt_catch", "",
   "magazine",  "",
   "safety",  "",
   "muzzleFlash", "",
   "OP",   "",
   "ForeSight", "",
   "BackSight", ""
                };
 };
        class MK20_SSR_Harris : Default
 {
  isDiscrete=0;
  skeletonInherit="";
  skeletonBones[]=
  {
                        "bipod_legs",  "",
   "bipod_leg_L",  "bipod_legs",
   "leg_L",  "bipod_leg_L",
   "bipod_leg_R",  "bipod_legs",
   "leg_R",  "bipod_leg_R"
  };
 };
};
class CfgModels
{
 class Default
 {
  sectionsInherit="";
  sections[]={};
  skeletonName="";
 };
        class MK20_SSR_Harris : Default
 {
                sections[]=
  {
   "bipod_leg_L","bipod_leg_R","bipod_legs"
  };
  skeletonName="MK20_SSR_Harris";
  sectionsInherit = "";
  class Animations
  {
                       class leg_L
   {
    type   = rotation;
    source   = bipod_legs;
    sourceAddress         = clamp;
    selection  = "bipod_leg_L";
    axis   = "bipod_leg_L_axis";
    minValue  = 0;
    maxValue  = 1;
    angle0   = (rad 0);
    angle1   = (rad 30);
   };
   class leg_R: leg_L
   {
    selection  = "bipod_leg_R";
    axis   = "bipod_leg_R_axis";
   };
   class legs: leg_L
   {
    selection  = "bipod_legs";
    axis   = "bipod_legs_axis";
    angle0   = (rad 0);
    angle1   = (rad -90);
   };
   class Leg_L_move
   {
    type   = translation;
    source   = bipod_legs_length;
    selection  = "Leg_L";
    axis   = "Leg_L_axis";
    memory   = 1;
    minValue  = 0;
    maxValue  = 1;
    offset0   = 0;
    offset1   = 10;
   }; 
   class Leg_R_move: Leg_L_move
   {
    selection  = "Leg_R";
    axis   = "Leg_R_axis";
   };   
                };   
 };
};

 

 

 

 

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  

×