Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 KB | None | 0 0
  1. class CfgSkeletons
  2. {
  3. class Plane; //Define base class.
  4. class rksl_spit_mkxiv_1_bones: Plane
  5. {
  6. isDiscrete=1;
  7. skeletonInherit = "";
  8. skeletonBones[]=
  9. {
  10. "canopy","",
  11. "canopy1","",
  12. "prop","",
  13. "aileron_rh","",
  14. "aileron_lh","",
  15. "elevator_lh","",
  16. "elevator_rh","",
  17. "flap_lh","",
  18. "flap_rh","",
  19. "rudder","",
  20. "rudder_trim_tab","rudder",
  21. "oil_cooler_flap_rh","",
  22. "oil_cooler_flap_lh","",
  23.  
  24. "mlg_rh","",
  25. "mlg_lh","",
  26. "mlg_rh_damper","mlg_rh",
  27. "mlg_rh_roll","mlg_rh_damper",
  28. "mlg_lh_damper","mlg_lh",
  29. "mlg_lh_roll","mlg_lh_damper",
  30.  
  31. "tail_gear","",
  32. "tail_gear_roll","tail_gear",
  33. "tail_gear_door_rh","",
  34. "tail_gear_door_lh","",
  35. };
  36. };
  37. };
  38. class Rotation;
  39. class cfgModels
  40. {
  41. class Plane;
  42. class rksl_spit_mkxiv_1: plane
  43. {
  44. skeletonname = "rksl_spit_mkxiv_1_bones";
  45. sectionsInherit="";
  46. sections[]=
  47. {
  48. "vrtule staticka",
  49. "vrtule blur",
  50. "light",
  51. "vrtule",
  52. "left_wheel",
  53. "right_wheel",
  54. "L svetlo",
  55. "muzzleflash",
  56. "zbytek",
  57. "podsvit pristroju",
  58. "clan",
  59. "clan_sign",
  60. "trup",
  61. "motor",
  62. "palivo",
  63. "L svetlo",
  64. "sklo predni L"
  65. };
  66. class Animations
  67. {
  68.  
  69. // ########################### Canopy ################################
  70.  
  71. class canopy
  72. {
  73. type="translation";
  74. source="cabin";
  75. selection="canopy";
  76. begin="axis_canopy_start";
  77. end="axis_canopy_end";
  78. initphase=0;
  79. memory=1;
  80. animperiod =3.5;
  81. sourceaddress="clamp";
  82. minvalue=0;
  83. maxvalue=1;
  84. offset0=0;
  85. offset1=1;
  86. };
  87. class canopy1 : rotation
  88. {
  89. type="translation";
  90. source = "cabin";
  91. selection = "canopy1";
  92. begin="axis_canopy1_start";
  93. end="axis_canopy1_end";
  94. memory = true;
  95. sourceaddress="clamp";
  96. minvalue= 0;
  97. maxvalue= +10;
  98. offset0=1;
  99. offset1=0;
  100. };
  101. // ########################### Prop ################################
  102.  
  103. class prop : Rotation
  104. {
  105. type = "rotation";
  106. source = "rotor";
  107. selection = "prop";
  108. axis = "axis_prop";
  109. minValue = 0;
  110. maxValue = 1;
  111. angle0 = 0;
  112. angle1 = -2 * 3.1415;
  113. };
  114. // ########################### Flying Surfaces ################################
  115.  
  116. class aileron_lh : rotation
  117. {
  118. type = "rotation";
  119. source = "aileron";
  120. selection = "aileron_rh";
  121. axis = "axis_aileron_rh";
  122. memory = 1;
  123. sourceaddress = "clamp";
  124. minvalue = -1;
  125. maxvalue = 1;
  126. angle0 = "rad +30";
  127. angle1 = "rad -30";
  128. };
  129. class aileron_rh : aileron_lh
  130. {
  131. selection = "aileron_lh";
  132. axis = "axis_aileron_lh";
  133. };
  134. class elevator_lh : Rotation
  135. {
  136. type = "rotation";
  137. source = "elevator";
  138. selection = "elevator_lh";
  139. axis = "axis_elevator_lh";
  140. memory = 1;
  141. sourceAddress = "clamp";
  142. minValue = -1;
  143. maxValue = 1;
  144. angle0 = "rad +15";
  145. angle1 = "rad -15";
  146. };
  147. class elevator_rh : elevator_lh
  148. {
  149. selection = "elevator_rh";
  150. axis = "axis_elevator_rh";
  151. };
  152. class Rudder : Rotation
  153. {
  154. type = "rotation";
  155. source = "rudder";
  156. selection = "rudder";
  157. axis = "axis_rudder";
  158. memory = 1;
  159. sourceAddress = "clamp";
  160. minValue = -1;
  161. maxValue = 1;
  162. angle0 = "rad +30";
  163. angle1 = "rad -30";
  164. };
  165. class rudder_trim_tab : Rudder
  166. {
  167. selection = "rudder_trim_tab";
  168. axis = "axis_rudder_trim_tab";
  169. angle0 = "rad +15";
  170. angle1 = "rad -15";
  171. };
  172. // ########################### Oil Coolers ################################
  173.  
  174. class oil_cooler_flap_rh : Rotation
  175. {
  176. type = "rotation";
  177. source = "speed";
  178. selection = "oil_cooler_flap_rh";
  179. axis = "axis_oil_cooler_flap_rh";
  180. memory = 1;
  181. sourceAddress = "clamp";
  182. minValue = 20;
  183. maxValue = 21;
  184. angle0 = "rad +20";
  185. angle1 = "rad 0";
  186. };
  187. class oil_cooler_flap_lh : oil_cooler_flap_rh
  188. {
  189. selection = "oil_cooler_flap_lh";
  190. axis = "axis_oil_cooler_flap_lh";
  191. };
  192.  
  193. // ########################### flaps ################################
  194.  
  195. class flap_rh : rotation
  196. {
  197. type = "rotation";
  198. source = "flap";
  199. selection = "flap_rh";
  200. axis = "axis_flap_rh";
  201. memory = 1;
  202. sourceaddress = "clamp";
  203. minvalue=0;
  204. maxvalue=1;
  205. angle0 = "0";
  206. angle1 = "rad +40";
  207. };
  208. class flap_lh : flap_rh
  209. {
  210. selection = "flap_lh";
  211. axis = "axis_flap_lh";
  212. angle1 = "rad -40";
  213. };
  214.  
  215. // ########################### MLG DOORS ################################
  216.  
  217. class mlg_lh : rotation
  218. {
  219. type="rotation";
  220. memory=1;
  221. sourceaddress="clamp";
  222. source="gear";
  223. selection="mlg_lh";
  224. axis="axis_mlg_lh";
  225. minvalue=0;
  226. maxvalue=0.3;
  227. angle0="rad +45";
  228. angle1=0;
  229. };
  230. class mlg_lh2 : rotation
  231. {
  232. type="rotation";
  233. memory=1;
  234. sourceaddress="clamp";
  235. source="gear";
  236. selection="mlg_lh";
  237. axis="axis_mlg_lh";
  238. minvalue=0.75;
  239. maxvalue=1;
  240. angle0="rad +50";
  241. angle1=0;
  242. };
  243. class mlg_rh : mlg_lh
  244. {
  245. selection="mlg_rh";
  246. axis="axis_mlg_rh";
  247. minvalue=0;
  248. maxvalue=1;
  249. angle0="rad -95";
  250. };
  251. class mlg_lh_damper
  252. {
  253. type="translation";
  254. source="altradar";
  255. selection="mlg_lh_damper";
  256. axis="axis_mlg_lh_damper";
  257. memory = true;
  258. sourceaddress="clamp";
  259. minvalue=0;
  260. maxvalue=0.2;
  261. offset0=0;
  262. offset1=-0.25;
  263. };
  264. class mlg_rh_damper : mlg_lh_damper
  265. {
  266. selection="mlg_rh_damper";
  267. axis="axis_mlg_rh_damper";
  268. };
  269. class mlg_lh_roll : rotation
  270. {
  271. type = "rotation";
  272. memory=1;
  273. sourceaddress="loop";
  274. source = "wheel";
  275. selection = "mlg_lh_roll";
  276. axis = "axis_mlg_lh_roll";
  277. minvalue = 0; maxvalue = 1;
  278. angle0 = 0; angle1 = "rad -360";
  279. };
  280. class mlg_rh_roll : mlg_lh_roll
  281. {
  282. selection = "mlg_rh_roll";
  283. axis = "axis_mlg_rh_roll";
  284. };
  285. class tail_gear_roll : mlg_lh_roll
  286. {
  287. selection = "tail_gear_roll";
  288. axis = "axis_tail_gear_roll";
  289. };
  290.  
  291. // ########################### TAIL GEAR ################################
  292.  
  293. class tail_gear : rotation
  294. {
  295. type="rotation";
  296. memory=1;
  297. sourceaddress="clamp";
  298. source="gear";
  299. selection="tail_gear";
  300. axis="axis_tail_gear";
  301. minvalue=0;
  302. maxvalue=0.7;
  303. angle0=0;
  304. angle1="rad +47";
  305. };
  306.  
  307. // ########################### TAIL GEAR DOORS ################################
  308. class tail_gear_door_lh : rotation
  309. {
  310. type="rotation";
  311. memory=1;
  312. sourceaddress="clamp";
  313. source="gear";
  314. selection="tail_gear_door_lh";
  315. axis="axis_tail_gear_door_lh";
  316. minvalue=0.7;
  317. maxvalue=1;
  318. angle0="rad +17";
  319. angle1=0;
  320. };
  321. class tail_gear_door_rh : tail_gear_door_lh
  322. {
  323. selection="tail_gear_door_rh";
  324. axis="axis_tail_gear_door_rh";
  325. angle0="rad -17";
  326. };
  327. };
  328. };
  329. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement