Advertisement
Spookygnu

model.cfg for hawkt1

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