Advertisement
Guest User

Model.cfg

a guest
Dec 14th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 15.26 KB | None | 0 0
  1. span class="re5"> class CfgSkeletons {
  2.     class Default {
  3.         isDiscrete = 1;
  4.         skeletonInherit = "";
  5.         skeletonBones[] = {};
  6.     };
  7.     class Vehicle: Default {};
  8.     class TankBase: Vehicle {
  9.         skeletonInherit = "Vehicle";
  10.         skeletonBones[] = {
  11.             "kolL1","",
  12.             "kolL2","",
  13.             "kolL3","",
  14.             "kolL4","",
  15.             "kolL5","",
  16.             "kolL6","",
  17.             "kolL7","",
  18.             "kolL8","",
  19.             "kolP1","",
  20.             "kolP2","",
  21.             "kolP3","",
  22.             "kolP4","",
  23.             "kolP5","",
  24.             "kolP6","",
  25.             "kolP7","",
  26.             "kolP8","",
  27.             "podkoloL1","",
  28.             "podkoloL2","",
  29.             "podkoloL3","",
  30.             "podkoloL4","",
  31.             "podkoloL5","",
  32.             "podkoloL6","",
  33.             "podkoloL7","",
  34.             "podkoloL8","",
  35.             "podkoloP1","",
  36.             "podkoloP2","",
  37.             "podkoloP3","",
  38.             "podkoloP4","",
  39.             "podkoloP5","",
  40.             "podkoloP6","",
  41.             "podkoloP7","",
  42.             "podkoloP8","",
  43.             "koloL1","podkoloL1",
  44.             "koloL2","podkoloL2",
  45.             "koloL3","podkoloL3",
  46.             "koloL4","podkoloL4",
  47.             "koloL5","podkoloL5",
  48.             "koloL6","podkoloL6",
  49.             "koloL7","podkoloL7",
  50.             "koloL8","podkoloL8",
  51.             "koloP1","podkoloP1",
  52.             "koloP2","podkoloP2",
  53.             "koloP3","podkoloP3",
  54.             "koloP4","podkoloP4",
  55.             "koloP5","podkoloP5",
  56.             "koloP6","podkoloP6",
  57.             "koloP7","podkoloP7",
  58.             "koloP8","podkoloP8",
  59.             "ukaz_rychlo","",
  60.             "ukaz_rychlo2","",
  61.             "ukaz_rpm","",
  62.             "ukaz_radar","",
  63.             "hodinova","",
  64.             "minutova","",
  65.             "kompas","",
  66.             "ukazsmer","",
  67.             "damageHide","",
  68.             "podkoloL1_hide","podkoloL1",
  69.             "podkoloL2_hide","podkoloL2",
  70.             "podkoloL3_hide","podkoloL3",
  71.             "podkoloL4_hide","podkoloL4",
  72.             "podkoloL5_hide","podkoloL5",
  73.             "podkoloL6_hide","podkoloL6",
  74.             "podkoloL7_hide","podkoloL7",
  75.             "podkoloL8_hide","podkoloL8",
  76.             "podkoloP1_hide","podkoloP1",
  77.             "podkoloP2_hide","podkoloP2",
  78.             "podkoloP3_hide","podkoloP3",
  79.             "podkoloP4_hide","podkoloP4",
  80.             "podkoloP5_hide","podkoloP5",
  81.             "podkoloP6_hide","podkoloP6",
  82.             "podkoloP7_hide","podkoloP7",
  83.             "podkoloP8_hide","podkoloP8"
  84.         };
  85.     };
  86.     class Tank: TankBase {
  87.         skeletonInherit = "TankBase";
  88.         skeletonBones[] = {
  89.             "OtocVez","",
  90.             "OtocHlaven","OtocVez",
  91.             "OtocVelitele","OtocVez",
  92.             "OtocHlavenVelitele","OtocVelitele",
  93.             "poklop_driver","",
  94.             "poklop_commander","OtocVelitele",
  95.             "poklop_gunner","OtocVez",
  96.             "damageVez","OtocVez"
  97.         };
  98.     };
  99.     class Tank_F: Tank {
  100.         skeletonInherit = "Tank";
  101.         skeletonBones[] = {
  102.             "zasleh","otocHlaven",
  103.             "recoilHlaven", "otocHlaven",
  104.             "hatch_gunner","OtocVez",
  105.             "hatch_commander","OtocVez",
  106.             "commander_turret","OtocVez",
  107.             "commander_gun","commander_turret",
  108.             "gunnerview","otocHlaven"
  109.         };
  110.     };
  111. // New skeleton classes
  112.     class Test_Tank_01_base: Tank_F {
  113.         skeletonInherit = "Tank_F";
  114.         skeletonBones[]= {
  115.             "zasleh2","otocHlaven"  // Tank_F bones + this array
  116.         };
  117.     };
  118.     class Test_Tank_01: Test_Tank_01_base {
  119.         skeletonInherit = "Test_Tank_01_base";
  120.         skeletonBones[]= {
  121.             "zasleh3","Commander_Gun"   // Tank_F, Test_Tank_01_base bones + this array
  122.         };
  123.     };
  124. };
  125. class Rotation;
  126. class CfgModels {
  127.     class Default {
  128.         sectionsInherit = "";
  129.         sections[] = {};
  130.         skeletonName = "";
  131.     };
  132.     class Vehicle: Default {
  133.         sections[] = {
  134.             "cislo",
  135.             "grupa",
  136.             "side",
  137.             "sektor",
  138.             "clan",
  139.             "clan_sign",
  140.             "podsvit pristroju",
  141.             "poskozeni",
  142.             "L svetlo",
  143.             "P svetlo",
  144.             "zasleh"
  145.         };
  146.     };
  147.     class Tank: Vehicle {
  148.         htMin = 60;     // Minimum half-cooling time (in seconds)
  149.         htMax = 1800;   // Maximum half-cooling time (in seconds)
  150.         afMax = 200;    // Maximum temperature in case the model is alive (in celsius)
  151.         mfMax = 100;    // Maximum temperature when the model is moving (in celsius)
  152.     //      mFact & tBody used to simulate main gun heat
  153.         mFact = 1;      // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
  154.         tBody = 250;    // Metabolism temperature of the model (in celsius)
  155.  
  156.         sectionsInherit = "Vehicle";
  157.         sections[] = {
  158.             "zadni svetlo",
  159.             "brzdove svetlo",
  160.             "PasOffsetP",
  161.             "PasOffsetL",
  162.             "karoserie",
  163.             "pas_L",
  164.             "pas_P",
  165.             "motor",
  166.             "vez",
  167.             "zbran",
  168.             "clan",
  169.             "clan_sign",
  170.             "Light_L",
  171.             "Light_R",
  172.             "zbytek"
  173.         };
  174.         skeletonName = "Tank";
  175.         class Animations {
  176.             class damageHide {
  177.                 type="hide";
  178.                 source="damage";
  179.                 selection="damageHide";
  180.             };
  181.             class HatchDriver {
  182.                 type="rotation";
  183.                 source="hatchDriver";
  184.                 selection="poklop_driver";
  185.                 axis="osa_poklop_driver";
  186.                 animPeriod=0;
  187.                 angle0=0;
  188.                 angle1="rad -100";
  189.             };
  190.             class IndicatorSpeed {
  191.                 type="rotation";
  192.                 source="speed";
  193.                 selection="ukaz_rychlo";
  194.                 axis="osa_rychlo";
  195.                 memory="false";
  196.                 animPeriod=0;
  197.                 minValue=0;
  198.                 maxValue=16.670000;
  199.                 angle0=0;
  200.                 angle1="rad -240";
  201.             };
  202.             class IndicatorSpeed2 {
  203.                 type="rotation";
  204.                 source="speed";
  205.                 selection="ukaz_rychlo2";
  206.                 axis="osa_rychlo2";
  207.                 memory="false";
  208.                 animPeriod=0;
  209.                 minValue=0;
  210.                 maxValue=16.670000;
  211.                 angle0=0;
  212.                 angle1="rad -240";
  213.             };
  214.             class IndicatorRPM {
  215.                 type="rotation";
  216.                 source="rpm";
  217.                 selection="ukaz_rpm";
  218.                 axis="osa_rpm";
  219.                 memory="false";
  220.                 animPeriod=0;
  221.                 minValue=0;
  222.                 maxValue=1;
  223.                 angle0=0;
  224.                 angle1="rad -340";
  225.             };
  226.             class Radar {
  227.                 type="rotation";
  228.                 source="time";
  229.                 selection="ukaz_radar";
  230.                 axis="osa_radar";
  231.                 memory="false";
  232.                 minValue=0;
  233.                 maxValue=2;
  234.                 sourceAddress="loop";
  235.                 angle0=0;
  236.                 angle1="rad 360";
  237.             };
  238.             class IndicatorTurret {
  239.                 type="rotation";
  240.                 source="turretDir";
  241.                 selection="ukazsmer";
  242.                 axis="osa_ukazsmer";
  243.                 memory="false";
  244.                 animPeriod=0;
  245.                 minValue=0;
  246.                 maxValue=6.283185;
  247.                 angle0=0;
  248.                 angle1="rad 360";
  249.             };
  250.             class WatchHour {
  251.                 type="rotation";
  252.                 source="clockHour";
  253.                 selection="hodinova";
  254.                 axis="osa_time";
  255.                 memory="false";
  256.                 animPeriod=0;
  257.                 angle0=0;
  258.                 angle1="rad 360";
  259.             };
  260.             class WatchMinute {
  261.                 type="rotation";
  262.                 source="clockMinute";
  263.                 selection="minutova";
  264.                 axis="osa_time";
  265.                 memory="false";
  266.                 animPeriod=0;
  267.                 angle0=0;
  268.                 angle1="rad 360";
  269.             };
  270.             class Wheel_kolL1 {
  271.                 type="rotationX";
  272.                 source="wheelL";
  273.                 selection="kolL1";
  274.                 axis="";
  275.                 memory="false";
  276.                 animPeriod=0;
  277.                 minvalue=0.5;
  278.                 maxvalue = 1.0;
  279.                 angle0=0;
  280.                 angle1="rad -360";
  281.                 sourceAddress="loop";
  282.             };
  283.             class Wheel_koloL1: Wheel_kolL1 {
  284.                 selection="koloL1";
  285.             };
  286.             class Wheel_podkoloL1 {
  287.                 type="translation";
  288.                 source="damper";
  289.                 selection="podkoloL1";
  290.                 axis="Basic_Damper_Destruct_Axis";
  291.                 memory="true";
  292.                 animPeriod=0;
  293.                 minValue="0";
  294.                 maxValue="1";
  295.                 offset0= "-0.18";
  296.                 offset1= "0.18";
  297.             };
  298.             class Wheel_kolP1: Wheel_kolL1 {
  299.                 source="wheelR";
  300.                 selection="kolP1";
  301.             };
  302.             class Wheel_koloP1: Wheel_koloL1 {
  303.                 source="wheelR";
  304.                 selection="koloP1";
  305.             };
  306.             class Wheel_podkoloP1: Wheel_podkoloL1 {
  307.                 selection="podkoloP1";
  308.             };
  309.             class Wheel_kolL2: Wheel_kolL1 {
  310.                 selection="kolL2";
  311.             };
  312.             class Wheel_kolL3: Wheel_kolL1 {
  313.                 selection="kolL3";
  314.             };
  315.             class Wheel_kolL4: Wheel_kolL1 {
  316.                 selection="kolL4";
  317.             };
  318.             class Wheel_kolL5: Wheel_kolL1 {
  319.                 selection="kolL5";
  320.             };
  321.             class Wheel_kolL6: Wheel_kolL1 {
  322.                 selection="kolL6";
  323.             };
  324.             class Wheel_kolL7: Wheel_kolL1 {
  325.                 selection="kolL7";
  326.             };
  327.             class Wheel_kolL8: Wheel_kolL1 {
  328.                 selection="kolL8";
  329.             };
  330.             class Wheel_kolP2: Wheel_kolP1 {
  331.                 selection="kolP2";
  332.             };
  333.             class Wheel_kolP3: Wheel_kolP1 {
  334.                 selection="kolP3";
  335.             };
  336.             class Wheel_kolP4: Wheel_kolP1 {
  337.                 selection="kolP4";
  338.             };
  339.             class Wheel_kolP5: Wheel_kolP1 {
  340.                 selection="kolP5";
  341.             };
  342.             class Wheel_kolP6: Wheel_kolP1 {
  343.                 selection="kolP6";
  344.             };
  345.             class Wheel_kolP7: Wheel_kolP1 {
  346.                 selection="kolP7";
  347.             };
  348.             class Wheel_kolP8: Wheel_kolP1 {
  349.                 selection="kolP8";
  350.             };
  351.             class Wheel_koloL2: Wheel_koloL1 {
  352.                 selection="koloL2";
  353.             };
  354.             class Wheel_koloL3: Wheel_koloL1 {
  355.                 selection="koloL3";
  356.             };
  357.             class Wheel_koloL4: Wheel_koloL1 {
  358.                 selection="koloL4";
  359.             };
  360.             class Wheel_koloL5: Wheel_koloL1 {
  361.                 selection="koloL5";
  362.             };
  363.             class Wheel_koloL6: Wheel_koloL1 {
  364.                 selection="koloL6";
  365.             };
  366.             class Wheel_koloL7: Wheel_koloL1 {
  367.                 selection="koloL7";
  368.             };
  369.             class Wheel_koloL8: Wheel_koloL1 {
  370.                 selection="koloL8";
  371.             };
  372.             class Wheel_koloP2: Wheel_koloP1 {
  373.                 selection="koloP2";
  374.             };
  375.             class Wheel_koloP3: Wheel_koloP1 {
  376.                 selection="koloP3";
  377.             };
  378.             class Wheel_koloP4: Wheel_koloP1 {
  379.                 selection="koloP4";
  380.             };
  381.             class Wheel_koloP5: Wheel_koloP1 {
  382.                 selection="koloP5";
  383.             };
  384.             class Wheel_koloP6: Wheel_koloP1 {
  385.                 selection="koloP6";
  386.             };
  387.             class Wheel_koloP7: Wheel_koloP1 {
  388.                 selection="koloP7";
  389.             };
  390.             class Wheel_koloP8: Wheel_koloP1 {
  391.                 selection="koloP8";
  392.             };
  393.             class Wheel_podkoloL2: Wheel_podkoloL1 {
  394.                 selection="podkoloL2";
  395.             };
  396.             class Wheel_podkoloL3: Wheel_podkoloL1 {
  397.                 selection="podkoloL3";
  398.             };
  399.             class Wheel_podkoloL4: Wheel_podkoloL1 {
  400.                 selection="podkoloL4";
  401.             };
  402.             class Wheel_podkoloL5: Wheel_podkoloL1 {
  403.                 selection="podkoloL5";
  404.             };
  405.             class Wheel_podkoloL6: Wheel_podkoloL1 {
  406.                 selection="podkoloL6";
  407.             };
  408.             class Wheel_podkoloP2: Wheel_podkoloP1 {
  409.                 selection="podkoloP2";
  410.             };
  411.             class Wheel_podkoloP3: Wheel_podkoloP1 {
  412.                 selection="podkoloP3";
  413.             };
  414.             class Wheel_podkoloP4: Wheel_podkoloP1 {
  415.                 selection="podkoloP4";
  416.             };
  417.             class Wheel_podkoloP5: Wheel_podkoloP1 {
  418.                 selection="podkoloP5";
  419.             };
  420.             class Wheel_podkoloP6: Wheel_podkoloP1 {
  421.                 selection="podkoloP6";
  422.             };
  423.             class podkoloL1_hide_damage: damageHide {
  424.                 selection="podkoloL1_hide";
  425.             };
  426.             class podkoloL2_hide_damage: damageHide {
  427.                 selection="podkoloL2_hide";
  428.             };
  429.             class podkoloL3_hide_damage: damageHide {
  430.                 selection="podkoloL3_hide";
  431.             };
  432.             class podkoloL4_hide_damage: damageHide {
  433.                 selection="podkoloL4_hide";
  434.             };
  435.             class podkoloL5_hide_damage: damageHide {
  436.                 selection="podkoloL5_hide";
  437.             };
  438.             class podkoloL6_hide_damage: damageHide {
  439.                 selection="podkoloL6_hide";
  440.             };
  441.             class podkoloL7_hide_damage: damageHide {
  442.                 selection="podkoloL7_hide";
  443.             };
  444.             class podkoloL8_hide_damage: damageHide {
  445.                 selection="podkoloL8_hide";
  446.             };
  447.             class podkoloP1_hide_damage: damageHide {
  448.                 selection="podkoloP1_hide";
  449.             };
  450.             class podkoloP2_hide_damage: damageHide {
  451.                 selection="podkoloP2_hide";
  452.             };
  453.             class podkoloP3_hide_damage: damageHide {
  454.                 selection="podkoloP3_hide";
  455.             };
  456.             class podkoloP4_hide_damage: damageHide {
  457.                 selection="podkoloP4_hide";
  458.             };
  459.             class podkoloP5_hide_damage: damageHide {
  460.                 selection="podkoloP5_hide";
  461.             };
  462.             class podkoloP6_hide_damage: damageHide {
  463.                 selection="podkoloP6_hide";
  464.             };
  465.             class podkoloP7_hide_damage: damageHide {
  466.                 selection="podkoloP7_hide";
  467.             };
  468.             class podkoloP8_hide_damage: damageHide {
  469.                 selection="podkoloP8_hide";
  470.             };
  471.             class damageVez: damageHide {
  472.                 selection="damageVez";
  473.             };
  474.             class MainTurret {
  475.                 type="rotationY";
  476.                 source="mainTurret";
  477.                 selection="OtocVez";
  478.                 axis="OsaVeze";
  479.                 animPeriod=0;
  480.                 minValue="rad -360";
  481.                 maxValue="rad +360";
  482.                 angle0="rad -360";
  483.                 angle1="rad +360";
  484.                 memory = 1;
  485.             };
  486.             class MainGun: MainTurret {
  487.                 type="rotationX";
  488.                 source="mainGun";
  489.                 selection="OtocHlaven";
  490.                 axis="OsaHlavne";
  491.             };
  492.             class HatchCommander {
  493.                 type="rotation";
  494.                 source="hatchCommander";
  495.                 selection="poklop_commander";
  496.                 axis="osa_poklop_commander";
  497.                 animPeriod=0;
  498.                 angle0=0;
  499.                 angle1="rad 95";
  500.             };
  501.             class HatchGunner {
  502.                 type="rotation";
  503.                 source="hatchGunner";
  504.                 selection="poklop_gunner";
  505.                 axis="osa_poklop_gunner";
  506.                 animPeriod=0;
  507.                 angle0=0;
  508.                 angle1="rad 95";
  509.             };
  510.         };
  511.     };
  512.     class Tank_F: Tank {
  513.         sectionsInherit = "Tank";
  514.         skeletonName = "Tank_F";
  515.         class Animations: Animations {
  516.             class Recoil {
  517.                 type="translation";
  518.                 source="recoil_source";
  519.                 selection="RecoilHlaven";
  520.                 axis="RecoilHlaven_axis";
  521.                 memory=1;
  522.                 minValue=0.85;
  523.                 maxValue=1;
  524.                 offset0=0;
  525.                 offset1=-1;
  526.             };
  527.             class ObsTurret:MainTurret {
  528.                 source="obsTurret";
  529.                 selection="Commander_Turret";
  530.                 axis="Commander_Turret_axis";
  531.             };
  532.             class ObsGun:MainGun {
  533.                 source="obsGun";
  534.                 selection="Commander_Gun";
  535.                 axis="Commander_Gun_axis";
  536.             };
  537.             class MainGunOptics: MainGun {
  538.                 selection="gunnerview";
  539.                 axis="gunnerview";
  540.             };
  541.         };
  542.     };
  543. // Test tank begins here
  544.     class Test_Tank_01_base: Tank_F {
  545.         sectionsInherit="Tank_F";
  546.         sections[]= {
  547.             "Camo1",
  548.             "Camo2",
  549.             "Camo3",
  550.             "zasleh2",
  551.             "zasleh3"
  552.         };
  553.         skeletonName="Test_Tank_01_base";
  554.         class Animations: Animations {
  555.             // Special animation of hatches
  556.             class HatchDriver {
  557.                 type="rotation";
  558.                 source="hatchDriver";
  559.                 selection="poklop_driver";
  560.                 axis="osa_poklop_driver";
  561.                 animPeriod=0;
  562.                 angle0=0;
  563.                 angle1="rad -80";
  564.             };
  565.             class damageVezVelitele: damageHide {
  566.                 selection="Commander_Turret";
  567.             };
  568.             class poklop_commander_damage: damageHide {
  569.                 selection="poklop_commander";
  570.             };
  571.             class poklop_gunner_damage: damageHide {
  572.                 selection="poklop_gunner";
  573.             };
  574.             class poklop_driver_damage: damageHide {
  575.                 selection="poklop_driver";
  576.             };
  577.             // muzzle flashes
  578.             class zaslehROT_coax {
  579.                 type="rotationZ";
  580.                 source="time";
  581.                 sourceAddress="mirror";
  582.                 selection="zasleh2";
  583.                 axis="usti hlavne2";
  584.                 minValue=0;
  585.                 maxValue=0.2;
  586.                 angle0="rad 0";
  587.                 angle1="rad 360";
  588.                 memory = 1;
  589.             };
  590.            
  591.             class Wheel_podkoloL1
  592.             {
  593.                 type="translation";
  594.                 source="damper";
  595.                 selection="podkoloL1";
  596.                 axis="Basic_Damper_Destruct_Axis";  // Consist of vertices [0,0,0],[0,0,1]
  597.                 memory="true";
  598.                 animPeriod=0;
  599.                 minValue=0;
  600.                 maxValue=1;
  601.                 // Must be equal to maxDroop and maxCompression in PhysX settings
  602.                 offset0= -0.15;
  603.                 offset1= 0.15;
  604.             };
  605.             class Wheel_podkoloP1: Wheel_podkoloL1
  606.             {
  607.                 selection="podkoloP1";
  608.             };
  609.             class Wheel_podkoloL2: Wheel_podkoloL1
  610.             {
  611.                 selection="podkoloL2";
  612.             };
  613.             class Wheel_podkoloL3: Wheel_podkoloL1
  614.             {
  615.                 selection="podkoloL3";
  616.             };
  617.             class Wheel_podkoloL4: Wheel_podkoloL1
  618.             {
  619.                 selection="podkoloL4";
  620.             };
  621.             class Wheel_podkoloL5: Wheel_podkoloL1
  622.             {
  623.                 selection="podkoloL5";
  624.             };
  625.             class Wheel_podkoloL6: Wheel_podkoloL1
  626.             {
  627.                 selection="podkoloL6";
  628.             };
  629.             class Wheel_podkoloP2: Wheel_podkoloP1
  630.             {
  631.                 selection="podkoloP2";
  632.             };
  633.             class Wheel_podkoloP3: Wheel_podkoloP1
  634.             {
  635.                 selection="podkoloP3";
  636.             };
  637.             class Wheel_podkoloP4: Wheel_podkoloP1
  638.             {
  639.                 selection="podkoloP4";
  640.             };
  641.             class Wheel_podkoloP5: Wheel_podkoloP1
  642.             {
  643.                 selection="podkoloP5";
  644.             };
  645.             class Wheel_podkoloP6: Wheel_podkoloP1
  646.             {
  647.                 selection="podkoloP6";
  648.             };
  649.         };
  650.     };
  651.     class Test_Tank_01: Test_Tank_01_base {
  652.         skeletonName="Test_Tank_01";
  653.         class Animations: Animations {
  654.             class zaslehROT_HMG {
  655.                 type="rotationZ";
  656.                 source="muzzle_rot_HMG";    // Defined in AnimationSources
  657.                 sourceAddress="loop";
  658.                 selection="zasleh3";
  659.                 axis="usti hlavne3";
  660.                 minValue=0;
  661.                 maxValue=4;
  662.                 angle0="rad 0";
  663.                 angle1="rad 360";
  664.                 memory = 1;
  665.             };
  666.         };
  667.     };
  668. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement