model.cfg 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. class CfgSkeletons
  2. {
  3. class Default
  4. {
  5. isDiscrete=1;
  6. skeletonInherit="";
  7. skeletonBones[]={};
  8. };
  9. class TCW_DC15A_Skeleton: Default
  10. {
  11. skeletonBones[]=
  12. {
  13. "barrel", "",
  14. "sights", "barrel",
  15. "glass", "barrel",
  16. "slug", "barrel",
  17. "zasleh", ""
  18. };
  19. };
  20. };
  21. class CfgModels
  22. {
  23. class Default
  24. {
  25. sectionsInherit="";
  26. sections[]={};
  27. skeletonName="";
  28. };
  29. class TCW_DC15A_F: Default
  30. {
  31. sections[]=
  32. {
  33. "zasleh"
  34. };
  35. skeletonName="TCW_DC15A_Skeleton";
  36. class Animations
  37. {
  38. class Barrel_reload_1
  39. {
  40. type="rotation";
  41. source="reloadmagazine.0";
  42. selection="barrel";
  43. axis="barrel_axis";
  44. sourceAddress="clamp";
  45. minPhase=0;
  46. maxPhase=1;
  47. minValue=0.24;
  48. maxValue=0.28;
  49. memory=1;
  50. angle0=0;
  51. angle1="Rad -10";
  52. };
  53. class Barrel_reload_2
  54. {
  55. type="rotation";
  56. source="reloadmagazine.0";
  57. selection="barrel";
  58. axis="barrel_axis";
  59. sourceAddress="clamp";
  60. minPhase=0;
  61. maxPhase=1;
  62. minValue=0.83;
  63. maxValue=0.85;
  64. memory=1;
  65. angle0=0;
  66. angle1="Rad 10";
  67. };
  68. class Slug_reload_1 //Slug Eject visible
  69. {
  70. type="translation";
  71. source="reloadmagazine.0";
  72. selection="slug";
  73. axis="slug_axis";
  74. sourceAddress="clamp";
  75. minPhase=0;
  76. maxPhase=0;
  77. minValue=0.28;
  78. maxValue=0.38;
  79. memory=1;
  80. offset0=0;
  81. offset1=-15;
  82. };
  83. class Slug_reload_2 //Slug move to hand position hidden
  84. {
  85. type="translation";
  86. source="reloadmagazine.0";
  87. selection="slug";
  88. axis="slug_axis";
  89. sourceAddress="clamp";
  90. minPhase=0;
  91. maxPhase=0;
  92. minValue=0.5;
  93. maxValue=0.79;
  94. memory=1;
  95. offset0=0;
  96. offset1=10;
  97. };
  98. class Slug_reload_3 //Slug reload visible
  99. {
  100. type="translation";
  101. source="reloadmagazine.0";
  102. selection="slug";
  103. axis="slug_axis";
  104. sourceAddress="clamp";
  105. minPhase=0;
  106. maxPhase=0;
  107. minValue=0.79;
  108. maxValue=0.82;
  109. memory=1;
  110. offset0=0;
  111. offset1=5;
  112. };
  113. class Slug_Hide
  114. {
  115. type="hide";
  116. source="reloadmagazine.0";
  117. selection="slug";
  118. sourceAddress="clamp";
  119. minPhase=0;
  120. maxPhase=1;
  121. minValue=0;
  122. maxValue=1;
  123. memory=0;
  124. hideValue=0.5;
  125. unHideValue=0.79;
  126. };
  127. class no_slug
  128. {
  129. type="hide";
  130. source="hasmagazine";
  131. selection="slug";
  132. sourceAddress="clamp";
  133. minPhase=0;
  134. maxPhase=1;
  135. minValue=0;
  136. maxValue=1;
  137. memory=0;
  138. hideValue=0.5;
  139. unHideValue=-1;
  140. };
  141. class MuzzleFlashROT
  142. {
  143. type="rotationX";
  144. source="ammoRandom"; //use ammo count as phase for animation
  145. sourceAddress="loop"; //loop when phase out of bounds
  146. selection="zasleh"; //selection we want to rotate
  147. axis="zasleh_axis"; //no own axis - center of rotation is computed from selection
  148. centerFirstVertex=true; //use first vertex of selection as center of rotation
  149. minPhase=0;
  150. maxPhase=4;
  151. minValue=0;
  152. maxValue=4; //rotation angle will be 360/4 = 90 degrees
  153. memory=0;
  154. angle0="rad 0";
  155. angle1="rad 360";
  156. };
  157. };
  158. };
  159. };