Advertisement
Spookygnu

original edit before trying to fix it.

Aug 9th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.25 KB | None | 0 0
  1. class CfgSkeletons
  2. {
  3. class Default;
  4. class Vehicle: Default
  5. {
  6. skeletonInherit="Default";
  7. sections[]={};
  8. sectionsInherit= "";
  9. skeletonBones[]=
  10. {
  11. };
  12. };
  13. class Plane: Vehicle
  14. {
  15. skeletonInherit="";
  16. skeletonBones[]=
  17. {
  18. "aileronL","",
  19. "aileronR","",
  20. "airbrake","",
  21. "alt","",
  22. "alt2","",
  23. "canopymain","",
  24. "compass","",
  25. "compass2","",
  26. "damageHide","",
  27. "ElevatorL","",
  28. "ElevatorR","",
  29. "FlapL","",
  30. "FlapR","",
  31. "fuselage","",
  32. "hourhand","",
  33. "hourhand2","",
  34. "hud_alt","",
  35. "hud_speed","",
  36. "minutehand","",
  37. "minutehand2","",
  38. "mph","",
  39. "mph2","",
  40. "nm_alt","",
  41. "nosedoors_back","",
  42. "nosedoors_left","",
  43. "nosedoors_right","",
  44. "rpm","",
  45. "rudder","",
  46. "vert_speed","",
  47. "vert_speed2","",
  48. "fuselage","",
  49. "stick_pilot","",
  50. "stick_pilot2",""
  51.  
  52. };
  53. };
  54. class spkg_hawkt1: Plane
  55. {
  56. isDiscrete = 0;
  57. skeletonInherit = "Plane";
  58. skeletonBones[] =
  59. {
  60. "aileronL","",
  61. "aileronR","",
  62.  
  63. "airbrake","",
  64. "airbrake_piston","airbrake",
  65. "airbrake_piston_2","",
  66.  
  67. "canopymain","",
  68.  
  69. "CollisionLight_Red","",
  70. "CollisionLight_White","",
  71.  
  72. "damageHide","",
  73.  
  74. "ElevatorL","",
  75. "ElevatorR","",
  76. "FlapL","",
  77. "FlapR","",
  78.  
  79. "fuselage","",
  80.  
  81. "gear_1","",
  82. "gear_1_damper","gear_1",
  83. "gear_1_steering","gear_1",
  84. "gear_1_steering2","gear_1_damper",
  85. "gear_1_stabil_1","gear_1_steering",
  86. "gear_1_stabil_2","gear_1_damper",
  87. "gear_1_stabil_2","gear_1_stabil_1",
  88. "wheel_1","gear_1_stabil_1",
  89.  
  90. "gear_2","",
  91. "gear_2_damper","gear_2",
  92. "gear_2_stabil","gear_2",
  93. "wheel_2","gear_2_stabil",
  94.  
  95.  
  96. "gear_2_hatch_a","",
  97. "gear_2_hatch_b","",
  98. "gear_2_hatch_c","",
  99.  
  100. "gear_3","",
  101. "gear_3_damper","gear_3",
  102. "gear_3_stabil","gear_3",
  103. "wheel_3","gear_3_stabil",
  104.  
  105. "gear_3_hatch_a","",
  106. "gear_3_hatch_b","",
  107. "gear_3_hatch_c","",
  108.  
  109. "nosedoors_back","",
  110. "nosedoors_left","",
  111. "nosedoors_right","",
  112.  
  113. "horizontBank","",
  114. "horizont","HorizontBank",
  115. "horizont2","",
  116.  
  117. "PositionLights","",
  118. "rudder","",
  119. "stick_pilot","",
  120. "stick_pilot2",""
  121. };
  122. };
  123. };
  124. class Rotation;
  125. class CfgModels
  126. {
  127. class Default;
  128. class Vehicle: Default
  129. {
  130. skeletonInherit="default";
  131. sections[]={};
  132. sectionsInherit= "";
  133. skeletonBones[]=
  134. {
  135. };
  136. };
  137. class Plane: Vehicle
  138. {
  139. htMin = 60; // Minimum half-cooling time (in seconds)
  140. htMax = 1800; // Maximum half-cooling time (in seconds)
  141. afMax = 200; // Maximum temperature in case the model is alive (in celsius)
  142. mfMax = 100; // Maximum temperature when the model is moving (in celsius)
  143. mFact = 0; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
  144. tBody = 0; // Metabolism temperature of the model (in celsius)
  145.  
  146.  
  147. sectionsInherit="Vehicle";
  148. sections[]=
  149. {
  150. "aileronL","",
  151. "aileronR","",
  152. "airbrake","",
  153. "alt","",
  154. "alt2","",
  155. "canopymain","",
  156. "compass","",
  157. "compass2","",
  158. "damageHide","",
  159. "ElevatorL","",
  160. "ElevatorR","",
  161. "FlapL","",
  162. "FlapR","",
  163. "fuselage","",
  164. "hourhand","",
  165. "hourhand2","",
  166. "hud_alt","",
  167. "hud_speed","",
  168. "minutehand","",
  169. "minutehand2","",
  170. "mph","",
  171. "mph2","",
  172. "nm_alt","",
  173. "nosedoors_back","",
  174. "nosedoors_left","",
  175. "nosedoors_right","",
  176. "rpm","",
  177. "rudder","",
  178. "vert_speed","",
  179. "vert_speed2","",
  180. "fuselage","",
  181. "stick_pilot","",
  182. "stick_pilot2",""
  183.  
  184. };
  185. skeletonName="Plane";
  186. class Animations
  187. {
  188. class damageHide
  189. {
  190. type = "hide";
  191. source = "damage";
  192. selection = "damageHide";
  193. };
  194.  
  195. class Canopy: Rotation
  196. {
  197. type = "rotation";
  198. source = "cabin";
  199. selection = "canopymain";
  200. axis = "canopy_axis";
  201. memory = 1;
  202. sourceAddress = "clamp";
  203. minValue = 0.000000;
  204. maxValue = 8.000000;
  205. angle0 = -1.326450;
  206. angle1 = 0.000000;
  207. };
  208. //Wheels//////////////////////////////////////////////////////////
  209. class FWheelRot
  210. {
  211. type = "rotationX";
  212. source = "wheel";
  213. selection = "wheel_1";
  214. axis = "wheel_1_axis";
  215. memory = "false";
  216. minValue = 0;
  217. maxValue = 2;
  218. sourceAddress = "loop";
  219. angle0 = "rad 360";
  220. angle1 = "-rad 360";
  221. };
  222.  
  223. class LWheelRot: FWheelRot
  224. {
  225. selection = "wheel_2";
  226. axis = "wheel_2_axis";
  227. minValue = 1;
  228. maxValue = 2.300000;
  229. };
  230. class RWheelRot: LWheelRot
  231. {
  232. selection = "wheel_3";
  233. axis = "wheel_3_axis";
  234. };
  235.  
  236.  
  237. //Flaps,brakes and elevators///////////////////////////////////////
  238.  
  239. class LFlap
  240. {
  241. type = "rotation";
  242. source = "flap";
  243. selection = "flapL";
  244. axis = "flapL_axis";
  245. angle0 = 0;
  246. angle1 = "rad -20";
  247. };
  248. class RFlap
  249. {
  250. type = "rotation";
  251. source = "flap";
  252. selection = "flapR";
  253. axis = "flapR_axis";
  254. angle0 = 0;
  255. angle1 = "rad 20";
  256. };
  257. class airbrake
  258. {
  259. type = "rotation";
  260. source = "speedbrake";
  261. selection = "airbrake";
  262. axis = "airbrake_axis";
  263. angle0 = 0;
  264. angle1 = "rad -45";
  265. };
  266.  
  267. class LElevator
  268. {
  269. type = "rotation";
  270. source = "elevator";
  271. selection = "elevatorL";
  272. axis = "elevatorL_axis";
  273. minValue = -1;
  274. maxValue = 1;
  275. angle0 = "rad -15";
  276. angle1 = "rad 15";
  277. };
  278.  
  279. class RElevator: LElevator
  280. {
  281. selection = "elevatorR";
  282. axis = "elevatorR_axis";
  283. };
  284.  
  285. class LAileronT
  286. {
  287. type = "rotation";
  288. source = "aileronl";
  289. selection = "aileronL";
  290. axis = "aileronLh_axis";
  291. minValue = "rad -90";
  292. maxValue = "rad 90";
  293. angle0 = "rad -90";
  294. angle1 = "rad 90";
  295. };
  296.  
  297. class RAileronT
  298. {
  299. type = "rotation";
  300. source = "aileronr";
  301. selection = "aileronr";
  302. axis = "aileronrh_axis";
  303. minValue = "rad -90";
  304. maxValue = "rad 90";
  305. angle0 = "rad -90";
  306. angle1 = "rad 90";
  307. };
  308.  
  309. class Rudder: Rotation
  310. {
  311. type = "rotation";
  312. source = "rudder";
  313. selection = "rudder";
  314. axis = "rudder_axis";
  315. minValue = "rad -30";
  316. maxValue = "rad 30";
  317. angle0 = "rad -30";
  318. angle1 = "rad 30";
  319. memory = 1;
  320.  
  321. };
  322. };
  323. };
  324.  
  325. class spkg_hawkt1: Plane
  326. {
  327. sectionsInherit = Plane;
  328. sections[] =
  329. {
  330.  
  331. "Light_L","",
  332. "Light_R","",
  333. "cabinLights","",
  334. "PositionLights",""
  335.  
  336.  
  337. };
  338. skeletonName = "spkg_hawkt1";
  339. class Animations: Animations
  340. {
  341. class cabinLights
  342. {
  343. type = hide;
  344. source = interiorLights;
  345. selection = "cabin_lights";
  346. minValue = 0.0;
  347. maxValue = 1.0;
  348. hideValue = 0.0;
  349. unHideValue = 0.5;
  350. };
  351. class HorizontBank: Rotation
  352. {
  353. source = horizonBank;
  354. type = "rotationY";
  355. selection = horizontBank;
  356. axis = horizontBank_axis;
  357. minValue = "rad -360";
  358. maxValue = "rad +360";
  359. angle0 = "rad -360";
  360. angle1 = "rad 360";
  361. };
  362. class HorizontDive: Rotation
  363. {
  364. source = horizonDive;
  365. type = "rotationX";
  366. selection = horizont;
  367. axis = horizontDive_axis;
  368. minValue = "rad -360";
  369. maxValue = "rad +360";
  370. angle0 = "rad -360";
  371. angle1 = "rad 360";
  372. };
  373. class Horizon2Bank: Rotation
  374. {
  375. source = "horizonBank";
  376. type = "rotationZ";
  377. selection = "horizont2";
  378. axis = "horizont2_axis";
  379. minValue = "rad -360";
  380. maxValue = "rad 360";
  381. angle0 = "rad -360";
  382. angle1 = "rad 360";
  383. };
  384. class PositionLights
  385. {
  386. type = hide;
  387. source = collisionLights;
  388. selection = "PositionLights";
  389. minValue = 0.0;
  390. maxValue = 1.0;
  391. hideValue = 0.0;
  392. unHideValue = 0.5;
  393. };
  394. class CollisionLight_Red_blinking: PositionLights
  395. {
  396. source = CollisionLightRed_source;
  397. selection = "PositionLight_Red_1_pos";
  398. minValue = 0.5;
  399. maxValue = 1.0;
  400.  
  401. };
  402. class CollisionLight_Green_blinking: PositionLights
  403. {
  404. source = CollisionLightGreen_source;
  405. selection = "PositionLight_Green_1_pos";
  406. minValue = 0.7;
  407. maxValue = 1.0;
  408.  
  409. };
  410. class CollisionLight_White_blinking: PositionLights
  411. {
  412. source = CollisionLightWhite_source;
  413. selection = "PositionLight_White_1_pos";
  414. minValue = 0.000;
  415. maxValue = 0.01;
  416.  
  417. };
  418. class airbrake_piston: Rotation //OK
  419. {
  420. type = "rotation";
  421. source = "speedbrake";
  422. selection = "airbrake_piston";
  423. axis = "airbrake_piston1_axis";
  424. memory = 1;
  425. minValue = 0.00000;
  426. maxValue = 1.0000;
  427. angle0 = "rad -90";
  428. angle1 = "rad 60";
  429. };
  430. //Gears//////////////////////////////////////////
  431.  
  432. class Gear_1: Rotation //OK
  433. {
  434. type = "rotation";
  435. source = "Gear";
  436. selection = "gear_1";
  437. axis = "Gear_1_axis";
  438. memory = 1;
  439. sourceAddress = "clamp";
  440. minValue = 0.00000;
  441. maxValue = 1.0000;
  442. angle0 = 0.000000;
  443. angle1 = 1.95;
  444. };
  445.  
  446. class gear_1_Steering: Rotation
  447. {
  448. type = "rotation";
  449. source = "noseWheelTurn";
  450. selection = "gear_1_Steering";
  451. axis = "gear_1_damper_axis";
  452. memory = 1;
  453. sourceAddress = "clamp";
  454. minValue = "rad -90";
  455. maxValue = "rad 90";
  456. angle0 = "rad -45";
  457. angle1 = "rad 45";
  458. };
  459.  
  460. class gear_1_steering2: gear_1_Steering
  461. {
  462. selection = "gear_1_steering2";
  463. axis = "gear_1_steering2_axis";
  464. angle0 = "rad -90";
  465. angle1 = "rad 90";
  466. };
  467.  
  468. class nosedoorsb: Gear_1
  469. {
  470. selection = "nosedoors_back";
  471. axis = "nosedoorsb_axis";
  472. minValue = 0.00000;
  473. maxValue = 1.00000;
  474. angle0 = "rad 120";
  475. angle1 = "rad 0";
  476. };
  477.  
  478. class nosedoorsl: Gear_1
  479. {
  480. selection = "nosedoors_left";
  481. axis = "nosedoorsl_axis";
  482. minValue = 0.00000;
  483. maxValue = 5.0000;
  484. angle1 = 0.00000;
  485. angle0 = 1.80000;
  486. };
  487.  
  488. class nosedoorsr: Gear_1
  489. {
  490. selection = "nosedoors_right";
  491. axis = "nosedoorsr_axis";
  492. minValue = 0.00000;
  493. maxValue = 5.00000;
  494. angle1 = 0.00000;
  495. angle0 = -1.80000;
  496. };
  497.  
  498. //Gear 1 Damper amd stabiliser//////////////////////////////
  499.  
  500. class gear_1_damper: Rotation
  501. {
  502. type = "translation";
  503. source = "altRadar";
  504. selection = "gear_1_damper";
  505. axis = "gear_1_damper_axis";
  506. memory = 1;
  507. sourceAddress = "clamp";
  508. minValue = 0.000000;
  509. maxValue = 1.000000;
  510. offset0 = 0.200000;
  511. offset1 = -0.450000;
  512. };
  513.  
  514. class gear_1_stabil_1: gear_1_damper
  515. {
  516. type = "rotation";
  517. source = "altRadar";
  518. selection = "gear_1_stabil_1";
  519. axis = "gear_1_stabil_1_axis";
  520. minValue = 0.000000;
  521. maxValue = 1.000000;
  522. angle0 = "rad 25";
  523. angle1 = "rad -30";
  524. };
  525. class gear_1_stabil_2: Rotation
  526. {
  527. type = "rotation";
  528. source = "altRadar";
  529. selection = "gear_1_stabil_2";
  530. axis = "gear_1_stabil_2_axis";
  531. memory = 1;
  532. minValue = 0.000000;
  533. maxValue = 1.000000;
  534. angle0 = "rad 90";
  535. angle1 = "rad -90";
  536. };
  537.  
  538. //Gears//Gear 2///////////////////////////////////////////////
  539.  
  540. class Gear_2: Rotation
  541. {
  542. type = "rotation";
  543. source = "Gear";
  544. selection = "Gear_2";
  545. axis = "Gear_2_axis";
  546. memory = 1;
  547. sourceAddress = "clamp";
  548. minValue = 0.00000;
  549. maxValue = 1.000000;
  550. };
  551.  
  552. //Gear 2 hatches//////////////////////////////////////////////
  553.  
  554. class gear_2_hatch_a: Gear_2
  555. {
  556. selection = "gear_2_hatch_a";
  557. axis = "gear_2_hatcha_axis";
  558. minValue = 0.000000;
  559. maxValue = 1.00000;
  560. angle0 = -1.80000;
  561. angle1 = 0.00000;
  562. };
  563.  
  564. class gear_2_hatch_b: Gear_2
  565. {
  566. selection = "gear_2_hatch_b";
  567. axis = "gear_2_hatchb_axis";
  568. minValue = 0.600000;
  569. maxValue = 1.00000;
  570. };
  571.  
  572. class gear_2_hatch_c: Gear_2
  573. {
  574. selection = "gear_2_hatch_c";
  575. axis = "gear_2_hatchc_axis";
  576. minValue = 1.000000;
  577. maxValue = 1.800000;
  578. angle1 = 0.000000;
  579. angle0 = -1.8;
  580. };
  581.  
  582. //Gear 2 Damper amd stabiliser//////////////////////////////
  583.  
  584. class Gear_2_damper: Rotation
  585. {
  586. type = "translation";
  587. source = "altRadar";
  588. selection = "Gear_2_damper";
  589. axis = "Gear_2_damper_axis";
  590. memory = 1;
  591. sourceAddress = "clamp";
  592. minValue = 0.000000;
  593. maxValue = 1.000000;
  594. offset0 = 0.150000;
  595. offset1 = 0.000000;
  596. };
  597.  
  598. class gear_2_stabil: Rotation
  599. {
  600. type = "Rotation";
  601. source = "altRadar";
  602. selection = "gear_2_stabil";
  603. axis = "gear_2_stabil_axis";
  604. memory = 1;
  605. sourceAddress = "clamp";
  606. minValue = 0.000000;
  607. maxValue = 1.000000;
  608. angle0 = 0.226893;
  609. angle1 = 0.000000;
  610. };
  611.  
  612. //Gears//Gear 3///////////////////////////////////////////////
  613.  
  614. class Gear_3: Rotation
  615. {
  616. type = "rotation";
  617. source = "Gear";
  618. selection = "Gear_3";
  619. axis = "Gear_3_axis";
  620. memory = 1;
  621. sourceAddress = "clamp";
  622. minValue = 0.000000;
  623. maxValue = 1.000000;
  624. };
  625.  
  626. //Gear 3 hatches//////////////////////////////////////////////
  627.  
  628. class gear_3_hatch_a: Gear_3
  629. {
  630. selection = "gear_3_hatch_a";
  631. axis = "gear_3_hatcha_axis";
  632. minValue = 0.000000;
  633. maxValue = 1.00000;
  634. angle1 = 0.00000;
  635. angle0 = 1.80000;
  636. };
  637.  
  638. class gear_3_hatch_b: Gear_3
  639. {
  640. selection = "gear_3_hatch_b";
  641. axis = "gear_3_hatchb_axis";
  642. minValue = 1.000000;
  643. maxValue = 1.800000;
  644. };
  645.  
  646. class gear_3_hatch_c: Gear_3
  647. {
  648. selection = "gear_3_hatch_c";
  649. axis = "gear_3_hatchc_axis";
  650. minValue = 1.000000;
  651. maxValue = 1.800000;
  652. angle1 = 0.000000;
  653. angle0 = -1.8;
  654. };
  655.  
  656. //Gear 3 Damper amd stabiliser//////////////////////////////
  657.  
  658. class Gear_3_damper: Rotation
  659. {
  660. type = "translation";
  661. source = "altRadar";
  662. selection = "Gear_3_damper";
  663. axis = "Gear_3_damper_axis";
  664. memory = 1;
  665. sourceAddress = "clamp";
  666. minValue = 0.000000;
  667. maxValue = 1.000000;
  668. offset0 = 0.150000;
  669. offset1 = 0.000000;
  670. };
  671.  
  672. class gear_3_stabil: Rotation
  673. {
  674. type = "Rotation";
  675. source = "altRadar";
  676. selection = "gear_3_stabil";
  677. axis = "gear_3_stabil_axis";
  678. memory = 1;
  679. sourceAddress = "clamp";
  680. minValue = 0.000000;
  681. maxValue = 1.000000;
  682. angle0 = 0.226893;
  683. angle1 = 0.000000;
  684. };
  685. };
  686. };
  687. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement