Guest User

Untitled

a guest
Aug 2nd, 2017
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Rotation
  2. {
  3. type = "rotation";
  4. memory = 1;
  5. minValue = 0;
  6. maxValue = 1;
  7. angle0 = 0;
  8. angle1 = 1;
  9. };
  10. class CfgSkeletons
  11. {
  12. class Default
  13. {
  14. isDiscrete = 1;
  15. skeletonInherit = "";
  16. skeletonBones[] = {};
  17. };
  18. class Vehicle : Default {};
  19. class Car : Vehicle {
  20. skeletonBones[]=
  21. {
  22. "drivewheel","",
  23.  
  24. "wheel_1_1_damper_land","",
  25. "wheel_1_2_damper_land","",
  26. "wheel_1_3_damper_land","",
  27. "wheel_1_4_damper_land","",
  28.  
  29. "wheel_2_1_damper_land","",
  30. "wheel_2_2_damper_land","",
  31. "wheel_2_3_damper_land","",
  32. "wheel_2_4_damper_land","",
  33.  
  34. "wheel_1_1_damper","wheel_1_1_damper_land",
  35. "wheel_1_2_damper","wheel_1_2_damper_land",
  36. "wheel_1_3_damper","wheel_1_3_damper_land",
  37. "wheel_1_4_damper","wheel_1_4_damper_land",
  38.  
  39. "wheel_2_1_damper","wheel_2_1_damper_land",
  40. "wheel_2_2_damper","wheel_2_2_damper_land",
  41. "wheel_2_3_damper","wheel_2_3_damper_land",
  42. "wheel_2_4_damper","wheel_2_4_damper_land",
  43.  
  44. "wheel_1_1_steering","wheel_1_1_damper",
  45. "wheel_1_2_steering","wheel_1_2_damper",
  46. "wheel_1_3_steering","wheel_1_3_damper",
  47. "wheel_1_4_steering","wheel_1_4_damper",
  48.  
  49. "wheel_2_1_steering","wheel_2_1_damper",
  50. "wheel_2_2_steering","wheel_2_2_damper",
  51. "wheel_2_3_steering","wheel_2_3_damper",
  52. "wheel_2_4_steering","wheel_2_4_damper",
  53.  
  54. "wheel_1_1","wheel_1_1_steering",
  55. "wheel_1_2","wheel_1_2_steering",
  56. "wheel_1_3","wheel_1_3_steering",
  57. "wheel_1_4","wheel_1_4_steering",
  58.  
  59. "wheel_2_1","wheel_2_1_steering",
  60. "wheel_2_2","wheel_2_2_steering",
  61. "wheel_2_3","wheel_2_3_steering",
  62. "wheel_2_4","wheel_2_4_steering",
  63.  
  64. "wheel_1_1_unhide","wheel_1_1",
  65. "wheel_1_2_unhide","wheel_1_2",
  66. "wheel_1_3_unhide","wheel_1_3",
  67. "wheel_1_4_unhide","wheel_1_4",
  68.  
  69. "wheel_2_1_unhide","wheel_2_1",
  70. "wheel_2_2_unhide","wheel_2_2",
  71. "wheel_2_3_unhide","wheel_2_3",
  72. "wheel_2_4_unhide","wheel_2_4",
  73.  
  74. "wheel_1_1_hide","wheel_1_1",
  75. "wheel_1_2_hide","wheel_1_2",
  76. "wheel_1_3_hide","wheel_1_3",
  77. "wheel_1_4_hide","wheel_1_4",
  78.  
  79. "wheel_2_1_hide","wheel_2_1",
  80. "wheel_2_2_hide","wheel_2_2",
  81. "wheel_2_3_hide","wheel_2_3",
  82. "wheel_2_4_hide","wheel_2_4",
  83.  
  84. "OtocVez","",
  85. "OtocHlaven","OtocVez",
  86.  
  87. "damageHide","",
  88. "damageVez","OtocVez",
  89. "damageHlaven","OtocHlaven",
  90.  
  91. "ukaz_rychlo","",
  92. "ukaz_rychlo2","",
  93. "ukaz_rpm","",
  94. "mph","",
  95. "rpm","",
  96. "fuel","",
  97. "fuel_1","",
  98. "fuel_01","",
  99. "fuel_2","",
  100. "fuel_3","",
  101. "prop_01","",
  102. "prop_02","",
  103. "prop_2","",
  104. "prop_1","",
  105. "glass1","damageHide",
  106. "glass2","damageHide",
  107. "glass3","damageHide",
  108. "glass4","damageHide"
  109. };
  110. };
  111. class civil_car: Car
  112. {
  113. skeletonInherit="Car";
  114. skeletonBones[]=
  115. {
  116. "reverse_light","",
  117. "daylights","damageHide",
  118. "door1","",
  119. "door2","",
  120. "glass5","damageHide"
  121. };
  122. };
  123.  
  124. };
  125.  
  126. class CfgModels
  127. {
  128. class Default
  129. {
  130. sectionsInherit = "";
  131. sections[] = {};
  132. skeletonName = "";
  133. };
  134. class Vehicle: Default
  135. {
  136. sections[] =
  137. {
  138. "cislo",
  139. "grupa",
  140. "side",
  141. "sektor",
  142. "clan",
  143. "clan_sign",
  144. "podsvit pristroju",
  145. "poskozeni",
  146. "L svetlo",
  147. "P svetlo",
  148. "zasleh"
  149. };
  150. };
  151.  
  152. class Car: Vehicle
  153. {
  154. htMin = 60; // Minimum half-cooling time (in seconds)
  155. htMax = 180; // Maximum half-cooling time (in seconds)
  156. afMax = 100; // Maximum temperature in case the model is alive (in celsius)
  157. mfMax = 8; // Maximum temperature when the model is moving (in celsius)
  158. mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
  159. tBody = 150; // Metabolism temperature of the model (in celsius)
  160.  
  161. sections[]=
  162. {
  163. "ammo",
  164. "zadni svetlo",
  165. "brzdove svetlo",
  166. "spz",
  167. "motor",
  168. "body",
  169. "clan",
  170. "clan_sign",
  171. "zasleh",
  172. "Light_R",
  173. "Light_L",
  174. "podsvit pristroju",
  175. "glass1",
  176. "glass2",
  177. "glass3",
  178. "glass4",
  179. "glass5",
  180. "glass6"
  181. };
  182. skeletonName="Car";
  183. class Animations
  184. {
  185. // destruct START
  186. class damageHide
  187. {
  188. type="hide";
  189. source="damage";
  190. selection="damageHide";
  191. hideValue=1.0;
  192. };
  193. class damageHideVez:damageHide
  194. {
  195. selection="OtocVez";
  196. };
  197. class damageHideHlaven:damageHide
  198. {
  199. selection="OtocHlaven";
  200. };
  201.  
  202. // Wheels START
  203. // Wheels Complete Destruct START
  204. class wheel_1_1_destruct
  205. {
  206. type="hide";
  207. selection="wheel_1_1_hide";
  208. source="HitLFWheel";
  209. minValue = 0; // upravit na 0.99
  210. maxValue = 1; // upravit na 1.0
  211. hidevalue = 0.99999;
  212. };
  213. class wheel_1_2_destruct: wheel_1_1_destruct {source="HitLBWheel";selection="wheel_1_2_hide";};
  214. class wheel_1_3_destruct: wheel_1_1_destruct {source="HitLMWheel";selection="wheel_1_3_hide";};
  215. class wheel_1_4_destruct: wheel_1_1_destruct {source="HitLF2Wheel";selection="wheel_1_4_hide";};
  216.  
  217. class wheel_2_1_destruct: wheel_1_1_destruct {source="HitRFWheel";selection="wheel_2_1_hide";};
  218. class wheel_2_2_destruct: wheel_1_1_destruct {source="HitRBWheel";selection="wheel_2_2_hide";};
  219. class wheel_2_3_destruct: wheel_1_1_destruct {source="HitRMWheel";selection="wheel_2_3_hide";};
  220. class wheel_2_4_destruct: wheel_1_1_destruct {source="HitRF2Wheel";selection="wheel_2_4_hide";};
  221.  
  222. class wheel_1_1_destruct_unhide
  223. {
  224. type="hide";
  225. selection="wheel_1_1_unhide";
  226. source="HitLFWheel";
  227. minValue = 0;
  228. maxValue = 1;
  229. hidevalue = 0.00000;
  230. UnHidevalue = 1.00000;
  231. };
  232. class wheel_1_2_destruct_unhide: wheel_1_1_destruct_unhide {source="HitLBWheel";selection="wheel_1_2_unhide";};
  233. class wheel_1_3_destruct_unhide: wheel_1_1_destruct_unhide {source="HitLMWheel";selection="wheel_1_3_unhide";};
  234. class wheel_1_4_destruct_unhide: wheel_1_1_destruct_unhide {source="HitLF2Wheel";selection="wheel_1_4_unhide";};
  235.  
  236. class wheel_2_1_destruct_unhide: wheel_1_1_destruct_unhide {source="HitRFWheel";selection="wheel_2_1_unhide";};
  237. class wheel_2_2_destruct_unhide: wheel_1_1_destruct_unhide {source="HitRBWheel";selection="wheel_2_2_unhide";};
  238. class wheel_2_3_destruct_unhide: wheel_1_1_destruct_unhide {source="HitRMWheel";selection="wheel_2_3_unhide";};
  239. class wheel_2_4_destruct_unhide: wheel_1_1_destruct_unhide {source="HitRF2Wheel";selection="wheel_2_4_unhide";};
  240.  
  241. // Wheels Complete Destruct END
  242.  
  243. #define DamageOffset 0.2
  244.  
  245. // Wheels Damage START
  246. class wheel_1_1_Damage: wheel_1_1_destruct
  247. {
  248. type="translation";
  249. axis="Basic_Damper_Destruct_Axis";
  250. memory=1;
  251. selection="wheel_1_1_damper";
  252. source="HitLFWheel";
  253. minValue = 0.0;
  254. maxValue = 1;
  255. offset0 = 0;
  256. offset1 = DamageOffset;
  257. };
  258. class wheel_1_2_Damage: wheel_1_1_Damage {source="HitLBWheel";selection="wheel_1_2_damper";};
  259. class wheel_1_3_Damage: wheel_1_1_Damage {source="HitLMWheel";selection="wheel_1_3_damper";};
  260. class wheel_1_4_Damage: wheel_1_1_Damage {source="HitLF2Wheel";selection="wheel_1_4_damper";};
  261.  
  262. class wheel_2_1_Damage: wheel_1_1_Damage {source="HitRFWheel";selection="wheel_2_1_damper";};
  263. class wheel_2_2_Damage: wheel_1_1_Damage {source="HitRBWheel";selection="wheel_2_2_damper";};
  264. class wheel_2_3_Damage: wheel_1_1_Damage {source="HitRMWheel";selection="wheel_2_3_damper";};
  265. class wheel_2_4_Damage: wheel_1_1_Damage {source="HitRF2Wheel";selection="wheel_2_4_damper";};
  266.  
  267.  
  268. class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damage {selection="wheel_1_1_damper";offset1 = -1.2*DamageOffset;};
  269. class wheel_1_2_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitLBWheel";selection="wheel_1_2_damper";};
  270. class wheel_1_3_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitLMWheel";selection="wheel_1_3_damper";};
  271. class wheel_1_4_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitLF2Wheel";selection="wheel_1_4_damper";};
  272.  
  273. class wheel_2_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitRFWheel";selection="wheel_2_1_damper";};
  274. class wheel_2_2_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitRBWheel";selection="wheel_2_2_damper";};
  275. class wheel_2_3_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitRMWheel";selection="wheel_2_3_damper";};
  276. class wheel_2_4_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim {source="HitRF2Wheel";selection="wheel_2_4_damper";};
  277.  
  278. // Wheels Damage END
  279. // Wheels END
  280.  
  281. //Glass Damage START
  282. class Glass1_destruct
  283. {
  284. type="hide";
  285. selection="glass1";
  286. source="HitGlass1";
  287. minValue = 0;
  288. maxValue = 1;
  289. hidevalue = 0.99999;
  290. };
  291. class Glass2_destruct: Glass1_destruct {selection="glass2";source="HitGlass2";}; // Inherits from the the glass 1, only the selection and the source will be changed
  292. class Glass3_destruct: Glass1_destruct {selection="glass3";source="HitGlass3";};
  293. class Glass4_destruct: Glass1_destruct {selection="glass4";source="HitGlass4";};
  294. class Glass5_destruct: Glass1_destruct {selection="glass5";source="HitGlass5";};
  295. class Glass6_destruct: Glass1_destruct {selection="glass6";source="HitGlass6";};
  296. //Glass Damage END
  297.  
  298. // destruct END
  299. class Fuel: Rotation
  300. {
  301. source="fuel";
  302. selection="fuel";
  303. axis="fuel_axis";
  304. maxValue=1;
  305. memory=1;
  306. angle0="rad -110";
  307. angle1=0;
  308. };
  309. class IndicatorSpeed: Rotation
  310. {
  311. source="speed";
  312. selection="mph";
  313. axis="mph_axis";
  314. memory=1;
  315. maxValue=38.900002;
  316. angle1="rad -265";
  317. };
  318. class IndicatorFuel: Rotation
  319. {
  320. type="rotation";
  321. source="fuel";
  322. selection="fuel_1";
  323. axis="fuel_1_axis";
  324. memory=1;
  325. minValue=0.000000;
  326. maxValue=1.000000;
  327. angle0=-0.087266;
  328. angle1=-1.658063;
  329. };
  330. class IndicatorRPM: Rotation
  331. {
  332. source="rpm";
  333. selection="rpm";
  334. axis="rpm_axis";
  335. memory=1;
  336. angle1="rad 80";
  337. };
  338. class DrivingWheel: Rotation
  339. {
  340. source="drivingWheel";
  341. selection="drivewheel";
  342. axis="drivewheel_axis";
  343. minValue=-1;
  344. maxValue=1;
  345. angle0=(rad 80);
  346. angle1=(rad -80);
  347. };
  348. class Steering_1_1
  349. {
  350. type="rotationY";
  351. source="drivingWheel";
  352. selection="wheel_1_1_steering";
  353. axis="wheel_1_1_steering_axis";
  354. memory=1;
  355. minValue= -1;
  356. maxValue= 1;
  357. angle0=1.047198;
  358. angle1=-1.047198;
  359. };
  360. class Steering_2_1: Steering_1_1
  361. {
  362. selection="wheel_2_1_steering";
  363. axis="wheel_2_1_steering_axis";
  364. };
  365. class Wheel_1_1
  366. {
  367. type="rotationX";
  368. source="wheel";
  369. selection="wheel_1_1";
  370. axis="wheel_1_1_axis";
  371. memory=1;
  372. sourceAddress="loop";
  373. minValue=0;
  374. maxValue=1;
  375. angle0=0;
  376. angle1="rad -360";
  377. };
  378. class wheel_2_1: Wheel_1_1
  379. {
  380. selection="wheel_2_1";
  381. axis="wheel_2_1_axis";
  382. };
  383. class wheel_1_2: Wheel_1_1
  384. {
  385. selection="wheel_1_2";
  386. axis="wheel_1_2_axis";
  387. };
  388. class wheel_1_3: Wheel_1_1
  389. {
  390. selection="wheel_1_3";
  391. axis="wheel_1_3_axis";
  392. };
  393. class Wheel_2_2: Wheel_1_1
  394. {
  395. selection="wheel_2_2";
  396. axis="wheel_2_2_axis";
  397. };
  398. class Wheel_2_3: Wheel_1_1
  399. {
  400. selection="wheel_2_3";
  401. axis="wheel_2_3_axis";
  402. };
  403. class Wheel_1_4: Wheel_1_1
  404. {
  405. selection="wheel_1_4";
  406. axis="wheel_1_4_axis";
  407. };
  408. class Wheel_2_4: Wheel_1_1
  409. {
  410. selection="wheel_2_4";
  411. axis="wheel_2_4_axis";
  412. };
  413. class Wheel_1_1_Damper
  414. {
  415. type="translation";
  416. source="damper";
  417. selection="wheel_1_1_damper_land";
  418. axis="posun wheel_1_1";
  419. animPeriod = 1;
  420. minValue="0";
  421. maxValue="1";
  422. offset0= "0.5";
  423. offset1= "-0.5";
  424. memory=1;
  425. };
  426. class wheel_2_1_Damper: Wheel_1_1_Damper
  427. {
  428. selection="wheel_2_1_damper_land";
  429. axis="posun wheel_2_1";
  430. };
  431. class wheel_1_2_Damper: Wheel_1_1_Damper
  432. {
  433. selection="wheel_1_2_damper_land";
  434. axis="posun wheel_1_2";
  435. };
  436. class Wheel_2_2_Damper: Wheel_1_1_Damper
  437. {
  438. selection="wheel_2_2_damper_land";
  439. axis="posun wheel_2_2";
  440. };
  441. class daylights
  442. {
  443. type="hide";
  444. source="rpm";
  445. selection="daylights";
  446. minValue=-0.8;
  447. maxValue=0.2;
  448. unhidevalue=1;
  449. sourceAddress="clamp";
  450. };
  451.  
  452. class reverse_light
  453. {
  454. type="Hide";
  455. selection="reverse_light";
  456. sourceAddress="clamp";
  457. source="Gear";
  458. minValue = -1;
  459. maxValue = 0;
  460. hideValue = "0.2";
  461. };
  462. };
  463. };
  464.  
  465. class HAWKEI: Car
  466. {
  467. skeletonName = "civil_car";
  468. sectionsInherit = "Car";
  469. sections[]=
  470. {
  471. "Camo1",
  472. "body",
  473. "karoserie",
  474. "palivo"
  475. };
  476. class Animations: Animations
  477. {
  478. class wheel_1_1_Damage: wheel_1_1_Damage{offset1=0.18000001;};
  479. class wheel_1_2_Damage: wheel_1_2_Damage{offset1=0.18000001;};
  480. class wheel_2_1_Damage: wheel_2_1_Damage{offset1=0.18000001;};
  481. class wheel_2_2_Damage: wheel_2_2_Damage{offset1=0.18000001;};
  482.  
  483. class wheel_1_1_Damper_Damage_BackAnim: wheel_1_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
  484. class wheel_1_2_Damper_Damage_BackAnim: wheel_1_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
  485. class wheel_2_1_Damper_Damage_BackAnim: wheel_2_1_Damper_Damage_BackAnim{offset1=-0.18000001;};
  486. class wheel_2_2_Damper_Damage_BackAnim: wheel_2_2_Damper_Damage_BackAnim{offset1=-0.18000001;};
  487.  
  488. class DrivingWheel
  489. {
  490. type="rotation";
  491. source="drivingWheel";
  492. selection="drivewheel";
  493. axis="drivewheel_axis";
  494. memory=1;
  495. minValue=-1;
  496. maxValue=1;
  497. angle0=(rad -70);
  498. angle1=(rad +70);
  499. };
  500. class Steering_1_1
  501. {
  502. type="rotationY";
  503. source="drivingWheel";
  504. selection="wheel_1_1_steering";
  505. axis="wheel_1_1_steering_axis";
  506. memory=1;
  507. minValue="rad -90";
  508. maxValue="rad +90";
  509. angle0=1.0471981;
  510. angle1=-1.0471981;
  511. };
  512. class Steering_2_1: Steering_1_1
  513. {
  514. selection="wheel_2_1_steering";
  515. axis="wheel_2_1_steering_axis";
  516. angle0=1.0471981;
  517. angle1=-1.0471981;
  518. };
  519. class IndicatorSpeed: Rotation
  520. {
  521. source="speed";
  522. selection="mph";
  523. axis="mph_axis";
  524. memory=1;
  525. maxValue=28;
  526. angle0=0.17453299;
  527. angle1=-3.141593;
  528. };
  529. class IndicatorRPM: Rotation
  530. {
  531. type="rotation";
  532. source="rpm";
  533. selection="rpm";
  534. axis="rpm_axis";
  535. memory=1;
  536. minValue=0;
  537. maxValue=7500;
  538. angle0=(rad 0);
  539. angle1=(rad 250);
  540. };
  541. class fuel
  542. {
  543. type="rotation";
  544. source="fuel";
  545. selection="fuel";
  546. axis="fuel_axis";
  547. memory=1;
  548. minValue=0;
  549. maxValue=1;
  550. angle0=0;
  551. angle1="rad +55";
  552. };
  553. class prop_01
  554. {
  555. type="rotation";
  556. source="rpm";
  557. selection="prop_1";
  558. axis="prop_1_axis";
  559. memory=1;
  560. minValue=1000;
  561. maxValue=7000;
  562. angle0="rad 30";
  563. angle1="rad 35";
  564. };
  565.  
  566. class daylights
  567. {
  568. type="hide";
  569. source="rpm";
  570. selection="daylights";
  571. minValue=-0.8;
  572. maxValue=0.2;
  573. unhidevalue=1;
  574. sourceAddress="clamp";
  575. };
  576.  
  577. class reverse_light
  578. {
  579. type="Hide";
  580. selection="reverse_light";
  581. sourceAddress="clamp";
  582. source="Gear";
  583. minValue = -1;
  584. maxValue = 0;
  585. hideValue = "0.2";
  586. };
  587.  
  588. class damageHidedoor1: damageHide
  589. {
  590. selection="door1";
  591. };
  592. class damageHidedoor2: damageHide
  593. {
  594. selection="door2";
  595. };
  596.  
  597. class Glass5_destruct
  598. {
  599. type="hide";
  600. selection="glass5";
  601. source="HitGlass5";
  602. minValue = 0;
  603. maxValue = 1;
  604. hidevalue = 0.99999;
  605. };
  606. class Wheel_1_1_Damper: Wheel_1_1_Damper
  607. {
  608. type="translation";
  609. source="damper";
  610. selection="wheel_1_1_damper_land";
  611. axis="posun wheel_1_1";
  612. animPeriod = 1;
  613. minValue="0";
  614. maxValue="1";
  615. offset0= "0.5";
  616. offset1= "-0.5";
  617. memory=1;
  618. };
  619. class wheel_2_1_Damper: Wheel_1_1_Damper
  620. {
  621. selection="wheel_2_1_damper_land";
  622. };
  623. class wheel_1_2_Damper: Wheel_1_1_Damper
  624. {
  625. selection="wheel_1_2_damper_land";
  626. };
  627. class Wheel_2_2_Damper: Wheel_1_1_Damper
  628. {
  629. selection="wheel_2_2_damper_land";
  630. };
  631. };
  632. };
  633. };
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×