model.cfg 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. class CfgSkeletons
  2. {
  3. class Default
  4. {
  5. isDiscrete=1;
  6. skeletonInherit="";
  7. skeletonBones[]={};
  8. };
  9. class Drexel_Skel : Default
  10. {
  11. skeletonBones[] =
  12. {
  13. "trigger", "", /// not in this model, but good to use
  14. "bolt", "",
  15. "bolt_catch", "",
  16. "magazine", "",
  17. "zasleh", "",
  18. "ForeSight", "",
  19. "rearpost", ""
  20. };
  21. };
  22. };
  23. class CfgModels
  24. {
  25. class Default
  26. {
  27. sectionsInherit="";
  28. sections[]={};
  29. skeletonName="";
  30. };
  31. class Drexl: Default
  32. {
  33. skeletonName = "Drexel_Skel";
  34. sectionsInherit = "";
  35. sections[] = {"zasleh","Camo","magazine"};
  36. class Animations
  37. {
  38. class trigger /// not in this model, but good to use
  39. {
  40. type = "rotation";
  41. source = "reload";
  42. sourceAddress = "clamp";
  43. selection = "trigger";
  44. axis = "trigger_axis";
  45. minValue = 0;
  46. maxValue = "1";
  47. angle0 = "0";
  48. angle1 = "rad -30";
  49. };
  50. class bolt
  51. {
  52. type = "translation";
  53. source = "reload";
  54. sourceAddress = clamp;
  55. selection = "bolt";
  56. axis = "bolt_axis";
  57. minValue = 0.5;
  58. maxValue = 1;
  59. offset0 = 0;
  60. offset1 = 0.3;
  61. };
  62. class bolt_empty: bolt{
  63. source = "isEmptyNoReload";
  64. minValue = 0;
  65. maxValue = 1;
  66. offset0 = 0;
  67. offset1 = 1;
  68. };
  69. class bolt_catch: bolt {
  70. selection = "bolt_catch";
  71. axis = "bolt_catch_axis";
  72. };
  73. class bolt_catch_empty: bolt_empty {
  74. selection = "bolt_catch";
  75. axis = "bolt_catch_axis";
  76. };
  77. class no_magazine_hide
  78. {
  79. type="hide";
  80. source="hasmagazine";
  81. selection="magazine";
  82. sourceAddress="clamp";
  83. minPhase=0;
  84. maxPhase=1;
  85. minValue=0;
  86. maxValue=1;
  87. memory=0;
  88. hideValue=0.5;
  89. unHideValue=-1;
  90. };
  91. class magazine_reload_hide_1
  92. {
  93. type="hide";
  94. source="reloadmagazine";
  95. selection="magazine";
  96. sourceAddress="clamp";
  97. minPhase=0;
  98. maxPhase=1;
  99. minValue=0;
  100. maxValue=1;
  101. memory=0;
  102. hideValue=1E-05;
  103. unHideValue=0.7;
  104. };
  105. class MuzzleFlashROT
  106. {
  107. type="rotationX";
  108. source="ammoRandom"; //use ammo count as phase for animation
  109. sourceAddress="loop"; //loop when phase out of bounds
  110. selection="zasleh"; //selection we want to rotate
  111. axis="barrel_axis"; //no own axis - center of rotation is computed from selection
  112. centerFirstVertex=true; //use first vertex of selection as center of rotation
  113. minPhase=0;
  114. maxPhase=4;
  115. minValue=0;
  116. maxValue=4; //rotation angle will be 360/4 = 90 degrees
  117. memory=0;
  118. angle0="rad 0";
  119. angle1="rad 360";
  120. };
  121. class backsight_hide
  122. {
  123. type="hide";
  124. source="hasOptics";
  125. selection="rearpost";
  126. animPeriod=0;
  127. minValue=0;
  128. maxValue=0.30000001;
  129. minPhase=0;
  130. maxPhase=0.30000001;
  131. hideValue=0.1;
  132. sourceAddress="mirror";
  133. };
  134. };
  135. // Rotation of fire mode switc
  136. };
  137. };