Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.34 KB | None | 0 0
  1. class CfgSkeletons
  2. {
  3.  
  4.     class Default
  5.     {
  6.         isDiscrete = 1;
  7.         skeletonInherit = "";
  8.         skeletonBones[] = {};
  9.     };
  10.     class Vehicle : Default {};
  11.     class Plane: Vehicle {};
  12.    
  13.    
  14.     class protoSkeleton: Plane
  15.     {
  16.        
  17.         skeletonInherit = "Plane";
  18.         skeletonBones[] =      
  19.         {
  20.             "rudder","",
  21.             "elevator","",
  22.             "aileron_l","",
  23.             "aileron_r","",
  24.            
  25.             "wheel_l","",
  26.             "wheel_r","",
  27.             "wheel_c","",
  28.        
  29.             "stick_pilot","",
  30.             "pedal","",
  31.  
  32.             "vrtule","",
  33.             "vrtule blur","",
  34.             "vrtule hide","vrtule",
  35.            
  36.         };
  37.     };
  38. };
  39.  
  40.  
  41. class CfgModels
  42. {
  43.     class Default
  44.     {
  45.         sectionsInherit="";
  46.         sections[] = {};
  47.         skeletonName = "";
  48.     };
  49.    
  50.     class Vehicle: Default {};
  51.    
  52.     class Plane : Vehicle {};
  53.    
  54.     class proto: Plane
  55.     {
  56.         skeletonName="protoSkeleton";
  57.         sections[]=
  58.         {
  59.            
  60.             "clan",
  61.             "clan_sign",
  62.             "vrtule blur",
  63.             "camo1",
  64.         };
  65.        
  66.         class Animations
  67.         {      
  68.            
  69.             class Elevator
  70.             {
  71.                 type="rotation";
  72.                 source="elevator";
  73.                 selection="elevator";
  74.                 axis="axis elevator";
  75.                 minValue=-1;
  76.                 maxValue=1;
  77.                 angle0="rad 30";
  78.                 angle1="rad -30";
  79.             };
  80.  
  81.            
  82.             class Rudder
  83.             {
  84.                 type="rotation";
  85.                 source="rudder";
  86.                 selection="rudder";
  87.                 axis="axis rudder";
  88.                 minValue=-1;
  89.                 maxValue=1;
  90.                 angle0="rad 20";
  91.                 angle1="rad -20";
  92.             };
  93.    
  94.             class aileron_l
  95.             {
  96.                 type="rotation";
  97.                 source="aileron";
  98.                 selection="aileron_l";
  99.                 axis="axis_aileron_l";
  100.                 minValue=-0.500000;
  101.                 maxValue=0.500000;
  102.                 angle0="rad -30";
  103.                 angle1="rad 30";
  104.             };
  105.  
  106.             class aileron_r: aileron_l
  107.             {
  108.                 selection="aileron_r";
  109.                 axis="axis_aileron_r";
  110.             };
  111.            
  112.             class wheel_1
  113.             {
  114.                 type="rotation";
  115.                 source="wheel";
  116.                 selection="wheel_l";
  117.                 axis="axis_wheels";
  118.            
  119.                 memory=1;
  120.                 sourceAddress = "loop";
  121.                 minValue = 0.0;
  122.                 maxValue = 1.0;
  123.                 angle0=rad 0;
  124.                 angle1=rad -360;
  125.             };
  126.            
  127.             class wheel_2: wheel_1
  128.             {
  129.                 selection="wheel_r";
  130.                 axis="axis_wheels";
  131.             };
  132.            
  133.             class wheel_3: wheel_1
  134.             {
  135.                 selection="wheel_c";
  136.                 axis="axis_wheel_center";
  137.             };
  138.  
  139.             class Stick_Pilot_Bank
  140.             {
  141.                 type="rotation";
  142.                 axis="stick_pilot_ail_axis";
  143.                 source="aileron";
  144.                 selection="stick_pilot";
  145.                 minValue=-1;
  146.                 maxValue=1;
  147.                 angle0="rad -10";
  148.                 angle1="rad 10";
  149.             };
  150.            
  151.             class Stick_Pilot_Dive
  152.             {
  153.                 type="rotation";
  154.                 axis="stick_pilot_ele_axis";
  155.                 source="elevator";
  156.                 selection="stick_pilot";
  157.                 minValue=-1;
  158.                 maxValue=1;
  159.                 angle0="rad -10";
  160.                 angle1="rad 10";
  161.             };
  162.  
  163.             class rotor
  164.             {
  165.                 type="rotation";
  166.                 source="rotor";
  167.                 selection="vrtule";
  168.                 axis="axis prop";
  169.                 sourceAddress="loop";
  170.                 minValue = 0.0;
  171.                 maxValue = 0.2;
  172.                 angle0=rad 0;
  173.                 angle1=rad 360;
  174.             };
  175.            
  176.             class rotor_hide
  177.             {
  178.                 type="hide";
  179.                 source="rpm";
  180.                 selection="vrtule hide";
  181.                 HideValue = "0.5";
  182.             };
  183.  
  184.             class propeller_blur
  185.             {
  186.                 type = "rotation";
  187.                 source="rotor";
  188.                 selection="vrtule blur";
  189.                 axis="axis prop";
  190.                 sourceAddress="loop";
  191.                 minValue = 0.0;
  192.                 maxValue = 0.2;
  193.                 angle0=rad 0;
  194.                 angle1=rad 90;
  195.             };
  196.            
  197.             class propeller_blur_hide
  198.             {
  199.                 type="hide";
  200.                 source="rpm";
  201.                 selection="vrtule blur";
  202.                 unHideValue = "0.5";
  203.  
  204.             };
  205.        
  206.         };
  207.     };
  208.    
  209. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement