Advertisement
Guest User

model.cfg

a guest
Jun 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.54 KB | None | 0 0
  1. #define BULLET_HIDE(x,from,count) class Bullet##x\
  2. {\
  3. type="hide";\
  4. source="revolving";\
  5. sourceAddress="mirror";\
  6. selection=bullet##x;\
  7. minValue=-1.000000;\
  8. maxValue= 0.000000;\
  9. hideValue=((count+x-from-2)/count)+0.00001;\
  10. };
  11. #define BULLET_HIDE_2nd(x,from,count) class Bullet_2##x\
  12. {\
  13. type="hide";\
  14. source="revolving_2";\
  15. sourceAddress="mirror";\
  16. selection=bullet##x##_2;\
  17. minValue=-1.000000;\
  18. maxValue= 0.000000;\
  19. hideValue=((count+x-from-2)/count)+0.00001;\
  20. };
  21. #define BULLET_HIDE_3rd(x,from,count) class Bullet_3##x\
  22. {\
  23. type="hide";\
  24. source="revolving_3";\
  25. sourceAddress="mirror";\
  26. selection=bullet##x##_3;\
  27. minValue=-1.000000;\
  28. maxValue= 0.000000;\
  29. hideValue=((count+x-from-2)/count)+0.00001;\
  30. };
  31. class CfgSkeletons
  32. {
  33. class Helicopter;
  34. class Mi8skeleton_EP1: Helicopter
  35. {
  36. isDiscrete = 0;
  37. skeletonInherit="Helicopter";
  38. skeletonBones[]=
  39. {
  40. "damper_front","",
  41. "damper_right","",
  42. "damper_left","",
  43. "rpm3","",
  44. "rpm4","",
  45. "otocvez2","",
  46. "otochlaven2","otocvez2",
  47. "otocvez3","",
  48. "otochlaven3",
  49. "otocvez3",
  50. "rotordive","velka vrtule",
  51. "rotor static dive","velka vrtule",
  52. "fan1","",
  53. "fan2","",
  54. "HUD","",
  55. "HUD_Hide","HUD",
  56.  
  57. "AH_bank","",
  58. "AH_bank2","",
  59. "AH_pitch","",
  60. "AH_pitch2","",
  61.  
  62. "OtocHlaven_Shake","OtocHlaven",
  63. "OtocHlaven_Shake_2","OtocHlaven2",
  64. "OtocHlaven_Shake_3","OtocHlaven3",
  65.  
  66. "ammo_belt","OtocHlaven_Shake",
  67. "ammo_belt_2","OtocHlaven_Shake_2",
  68. "ammo_belt_3","OtocHlaven_Shake_3",
  69.  
  70. "bullet001","bullet002",
  71. "bullet002","bullet003",
  72. "bullet003","bullet004",
  73. "bullet004","bullet005",
  74. "bullet005","bullet006",
  75. "bullet006","ammo_belt",
  76. "bullet007hide","OtocHlaven_Shake",
  77. "magazine","OtocHlaven_Shake",
  78.  
  79. "bullet001_2","bullet002_2",
  80. "bullet002_2","bullet003_2",
  81. "bullet003_2","bullet004_2",
  82. "bullet004_2","bullet005_2",
  83. "bullet005_2","bullet006_2",
  84. "bullet006_2","ammo_belt_2",
  85. "bullet007_2hide","OtocHlaven_Shake_2",
  86. "magazine_2","OtocHlaven_Shake_2",
  87.  
  88. "bullet001_3","bullet002_3",
  89. "bullet002_3","bullet003_3",
  90. "bullet003_3","bullet004_3",
  91. "bullet004_3","bullet005_3",
  92. "bullet005_3","bullet006_3",
  93. "bullet006_3","ammo_belt_3",
  94. "bullet007_3hide","OtocHlaven_Shake_3",
  95. "magazine_3","OtocHlaven_Shake_3"
  96. };
  97. };
  98. class Mi171skeleton: Mi8skeleton_EP1
  99. {
  100. skeletonInherit="Mi8skeleton_EP1";
  101. skeletonBones[]=
  102. {
  103. "HIDE_exhaust","",
  104. "HIDE_front_armor","",
  105. "HIDE_weapon_holders",""
  106. };
  107. };
  108. };
  109. class Rotation;
  110. class CfgModels
  111. {
  112. class Vehicle;
  113. class Helicopter: Vehicle
  114. {
  115. class Animations
  116. {
  117. class DamageHide;
  118. };
  119. };
  120.  
  121.  
  122. class Mi_8AMT: Helicopter
  123. {
  124. skeletonName="Mi8skeleton_EP1";
  125. sectionsInherit="Helicopter";
  126. sections[]=
  127. {
  128. "Camo1",
  129. "Camo2",
  130. "Camo3",
  131. "Camo4",
  132. "zbytek"
  133. };
  134. class Animations: Animations
  135. {
  136. class HRotor;
  137. class VRotor;
  138. class fan1:HRotor
  139. {
  140. selection="fan1";
  141. axis="fan1_axis";
  142. angle1="5 * 3.1415926536";
  143. };
  144. class fan2:VRotor
  145. {
  146. selection="fan2";
  147. axis="fan2_axis";
  148. angle1="5 * 3.1415926536";
  149. };
  150. class damper_front
  151. {
  152. type="rotation";
  153. source="altRadar";
  154. selection="damper_front";
  155. axis="axis_damper_front";
  156. memory=1;
  157. minValue=0.000000;
  158. maxValue=0.300000;
  159. angle0=0.261799;
  160. angle1=-0.0;
  161. };
  162. class damper_left: damper_front
  163. {
  164. selection="damper_left";
  165. axis="axis_damper_left";
  166. angle0=0.12360;
  167. angle1=-0.0;
  168. };
  169. class damper_right: damper_left
  170. {
  171. selection="damper_right";
  172. axis="axis_damper_right";
  173. };
  174. class IndicatorAltRadar: Rotation
  175. {
  176. source="altRadar";
  177. sourceAddress="clamp";
  178. selection="alt";
  179. axis="osa_alt";
  180. memory=1;
  181. maxValue=300;
  182. angle1="-5.5";
  183. };
  184. class IndicatorVertSpeed: Rotation
  185. {
  186. source="vertSpeed";
  187. selection="vert_speed";
  188. axis="osa_vert_speed";
  189. memory=1;
  190. minValue=-30.000000;
  191. maxValue=30.000000;
  192. angle0=rad 180;
  193. angle1=-rad 180;
  194. };
  195. class IndicatorVertSpeed2: IndicatorVertSpeed
  196. {
  197. selection="vert_speed2";
  198. axis="osa_vert_speed2";
  199. };
  200. class IndicatorRPM: Rotation
  201. {
  202. source="rpm";
  203. selection="rpm";
  204. axis="osa_rpm";
  205. memory="1";
  206. maxValue=1;
  207. angle1="rad 310";
  208. };
  209. class IndicatorRPM2: IndicatorRPM
  210. {
  211. selection="rpm2";
  212. axis="osa_rpm2";
  213. };
  214. class IndicatorRPM3: IndicatorRPM
  215. {
  216. selection="rpm3";
  217. axis="osa_rpm3";
  218. maxValue=0.8;
  219. angle1="rad -300";
  220. };
  221. class IndicatorRPM4: IndicatorRPM3
  222. {
  223. selection="rpm4";
  224. axis="osa_rpm4";
  225. };
  226. class IndicatorAltBaro: Rotation
  227. {
  228. source="altBaro";
  229. selection="nm_alt";
  230. axis="osa_nm_alt";
  231. memory="1";
  232. maxValue=1000;
  233. angle1="rad -180";
  234. };
  235. class IndicatorAltBaro2: IndicatorAltBaro
  236. {
  237. selection="nm_alt2";
  238. axis="osa_nm_alt2";
  239. };
  240. class IndicatorSpeed: Rotation
  241. {
  242. source="speed";
  243. selection="mph";
  244. axis="osa_mph";
  245. memory="false";
  246. maxValue=450;
  247. angle1="rad -350";
  248. };
  249. class IndicatorSpeed2: IndicatorSpeed
  250. {
  251. selection="mph2";
  252. axis="osa_mph2";
  253. };
  254. class rotorTilt
  255. {
  256. selection="rotordive";
  257. source="rpm";
  258. axis="velka osa";
  259. type="translation";
  260. memory=1;
  261. minValue=0.000000;
  262. maxValue=12.0000000;
  263. offset0=0.00000;
  264. offset1=2.10000;
  265. };
  266. class AH_Bank
  267. {
  268. type="rotationZ";
  269. source="horizonBank";
  270. selection="AH_bank";
  271. axis="osa_horizont";
  272. memory=1;
  273. minValue="rad -360";
  274. maxValue="rad +360";
  275. angle0="rad +360";
  276. angle1="rad -360";
  277. };
  278. class AH_Pitch
  279. {
  280. type="rotationX";
  281. source="horizonDive";
  282. selection="AH_pitch";
  283. axis="osa_horizont";
  284. memory=1;
  285. minValue="rad -360";
  286. maxValue="rad +360";
  287. angle0="rad -360";
  288. angle1="rad +360";
  289. };
  290. class AH_Bank2: AH_Bank
  291. {
  292. selection="AH_bank2";
  293. axis="osa_horizont2";
  294. };
  295. class AH_Pitch2: AH_Pitch
  296. {
  297. selection="AH_pitch2";
  298. axis="osa_horizont2";
  299. };
  300. };
  301. };
  302. class Mi_8MT: Mi_8AMT
  303. {
  304. sectionsInherit="Mi_8AMT";
  305. sections[]=
  306. {
  307. "zasleh","zasleh2"
  308. };
  309. class Animations: Animations
  310. {
  311. class MainTurret
  312. {
  313. type="rotationY";
  314. source="mainTurret";
  315. selection="OtocVez";
  316. axis="OsaVeze";
  317. animPeriod=0;
  318. minValue="rad -360";
  319. maxValue="rad +360";
  320. angle0="rad -360";
  321. angle1="rad +360";
  322. };
  323. class MainGun: MainTurret
  324. {
  325. type="rotation";
  326. source="mainGun";
  327. selection="OtocHlaven";
  328. axis="OsaHlavne";
  329. angle0="rad +360";
  330. angle1="rad -360";
  331. };
  332. class Turret_2: MainTurret
  333. {
  334. source="Turret_2";
  335. selection="OtocVez2";
  336. axis="OsaVeze2";
  337. };
  338. class Gun_2: MainGun
  339. {
  340. source="Gun_2";
  341. selection="OtocHlaven2";
  342. axis="OsaHlavne2";
  343. };
  344. class otocvez_damage: damageHide
  345. {
  346. selection="otocvez";
  347. };
  348. class otocvez_2_damage: damageHide
  349. {
  350. selection="otocvez2";
  351. };
  352. class ammo_belt_rotation
  353. {
  354. source="ReloadAnim";
  355. selection="ammo_belt";
  356. axis="ammo_belt_axis";
  357. memory=1;
  358.  
  359. offset0=0.184;
  360. offset1=0.0;
  361. type="translation";
  362. minValue=0.3;
  363. maxValue=1.0;
  364. };
  365. class ammo_belt_2_rotation: ammo_belt_rotation
  366. {
  367. source="ReloadAnim_2";
  368. selection="ammo_belt_2";
  369. axis="ammo_belt_axis_2";
  370. };
  371. class ammo_belt_bullet007hide_hide:ammo_belt_rotation
  372. {
  373. type="hide";
  374. selection="bullet007hide";
  375. sourceAddress="mirror";
  376. minValue=-1.0;
  377. maxValue=0.0;
  378. hideValue=0.25;
  379. };
  380. class ammo_belt_bullet007_2hide_hide:ammo_belt_2_rotation
  381. {
  382. type="hide";
  383. selection="bullet007_2hide";
  384. sourceAddress="mirror";
  385. minValue=-1.0;
  386. maxValue=0.0;
  387. hideValue=0.25;
  388. };
  389. class Turret_shake:ammo_belt_rotation
  390. {
  391. type="translation";
  392. sourceAddress="mirror";
  393. selection="OtocHlaven_Shake";
  394. axis="osaveze";
  395. offset0=0;
  396. offset1=-0.002;
  397. minValue=0.0;
  398. maxValue=0.05;
  399. };
  400. class Turret_shake_aside:Turret_shake
  401. {
  402. axis="osahlavne";
  403. maxValue=0.05*1.3;
  404. offset0=0;
  405. offset1=-0.02;
  406. };
  407. class Turret_shake_2:ammo_belt_2_rotation
  408. {
  409. type="translation";
  410. sourceAddress="mirror";
  411. selection="OtocHlaven_Shake_2";
  412. axis="osaveze2";
  413. offset0=0;
  414. offset1=-0.002;
  415. minValue=0.0;
  416. maxValue=0.05;
  417. };
  418. class Turret_shake_aside_2:Turret_shake_2
  419. {
  420. axis="osahlavne2";
  421. maxValue=0.05*1.3;
  422. offset0=0;
  423. offset1=-0.02;
  424. };
  425. class Magazine_hide
  426. {
  427. type="hide";
  428. source="reloadMagazine";
  429. sourceAddress="mirror";
  430. selection="magazine";
  431. minValue=0.0;
  432. maxValue=0.5;
  433. hideValue=0.56;
  434. };
  435. class Magazine_2_hide
  436. {
  437. type="hide";
  438. source="reloadMagazine_2";
  439. sourceAddress="mirror";
  440. selection="magazine_2";
  441. minValue=0.0;
  442. maxValue=0.5;
  443. hideValue=0.56;
  444. };
  445. BULLET_HIDE(001,7,100)
  446. BULLET_HIDE(002,7,100)
  447. BULLET_HIDE(003,7,100)
  448. BULLET_HIDE(004,7,100)
  449. BULLET_HIDE(005,7,100)
  450. BULLET_HIDE(006,7,100)
  451. BULLET_HIDE_2nd(001,7,100)
  452. BULLET_HIDE_2nd(002,7,100)
  453. BULLET_HIDE_2nd(003,7,100)
  454. BULLET_HIDE_2nd(004,7,100)
  455. BULLET_HIDE_2nd(005,7,100)
  456. BULLET_HIDE_2nd(006,7,100)
  457. class bullet007hide_hide: Magazine_hide
  458. {
  459. selection="bullet007hide";
  460. hideValue=0.005;
  461. };
  462. class bullet007_2hide_hide: bullet007hide_hide
  463. {
  464. selection="bullet007_2hide";
  465. };
  466. };
  467. };
  468. class Mi_8MTV_3: Mi_8MT
  469. {
  470. sectionsInherit="Mi_8MT";
  471. sections[]=
  472. {
  473. "zasleh3"
  474. };
  475. class Animations: Animations
  476. {
  477. class Turret_3: MainTurret
  478. {
  479. source="Turret_3";
  480. selection="OtocVez3";
  481. axis="OsaVeze3";
  482. };
  483. class Gun_3: MainGun
  484. {
  485. source="Gun_3";
  486. selection="OtocHlaven3";
  487. axis="OsaHlavne3";
  488. };
  489. class otocvez_3_damage: damageHide
  490. {
  491. selection="otocvez3";
  492. };
  493. class HUDaction_Hide: Rotation
  494. {
  495. animPeriod=1;
  496. source="HUDaction_Hide";
  497. selection="HUD";
  498. axis="hud_axis";
  499. angle1=-1.570796;
  500. angle0=0.000000;
  501. };
  502. class HUDaction: HUDaction_Hide
  503. {
  504. type="Hide";
  505. source="HUDaction";
  506. selection="HUD_Hide";
  507. axis="";
  508. minValue=0.00;
  509. maxValue=0.000001;/*
  510. angle0=3.141593/3;
  511. angle1=0.000000;*/
  512. };
  513. class HUDaction_Hide2: HUDaction_Hide
  514. {
  515. type="rotationX";
  516. source="RPM";
  517. selection="HUD_Hide";
  518. minValue=0.0;
  519. maxValue=0.00001;
  520. angle0=-3.141593*3/2;
  521. angle1=0.000000;
  522. };
  523. class ammo_belt_rotation;
  524. class ammo_belt_3_rotation: ammo_belt_rotation
  525. {
  526. source="ReloadAnim_3";
  527. selection="ammo_belt_3";
  528. axis="ammo_belt_axis_3";
  529. };
  530. class ammo_belt_bullet007_3hide_hide:ammo_belt_3_rotation
  531. {
  532. type="hide";
  533. selection="bullet007_3hide";
  534. sourceAddress="mirror";
  535. minValue=-1.0;
  536. maxValue=0.0;
  537. hideValue=0.25;
  538. };
  539. class Turret_shake_3:ammo_belt_3_rotation
  540. {
  541. type="translation";
  542. sourceAddress="mirror";
  543. selection="OtocHlaven_Shake_3";
  544. axis="osaveze2";
  545. offset0=0;
  546. offset1=-0.002;
  547. minValue=0.0;
  548. maxValue=0.05;
  549. };
  550. class Turret_shake_aside_3:Turret_shake_3
  551. {
  552. axis="osahlavne3";
  553. maxValue=0.05*1.3;
  554. offset0=0;
  555. offset1=-0.02;
  556. };
  557. class Magazine_3_hide
  558. {
  559. type="hide";
  560. source="reloadMagazine_3";
  561. sourceAddress="mirror";
  562. selection="magazine_3";
  563. minValue=0.0;
  564. maxValue=0.5;
  565. hideValue=0.56;
  566. };
  567. BULLET_HIDE_3rd(001,7,100)
  568. BULLET_HIDE_3rd(002,7,100)
  569. BULLET_HIDE_3rd(003,7,100)
  570. BULLET_HIDE_3rd(004,7,100)
  571. BULLET_HIDE_3rd(005,7,100)
  572. BULLET_HIDE_3rd(006,7,100)
  573. class bullet007_3hide_hide: Magazine_3_hide
  574. {
  575. selection="bullet007_3hide";
  576. hideValue=0.005;
  577. };
  578. };
  579. };
  580. class Mi_171: Mi_8MTV_3
  581. {
  582. skeletonName="Mi171skeleton";
  583. class Animations: Animations
  584. {
  585. class HIDE_exhaust
  586. {
  587. type="hide";
  588. source="HIDE_exhaust";
  589. sourceAddress="mirror";
  590. selection="HIDE_exhaust";
  591. minValue=0;
  592. maxValue=1;
  593. };
  594. class HIDE_front_armor: HIDE_exhaust
  595. {
  596. source="HIDE_front_armor";
  597. selection="HIDE_front_armor";
  598. };
  599. class HIDE_weapon_holders: HIDE_exhaust
  600. {
  601. source="HIDE_weapon_holders";
  602. selection="HIDE_weapon_holders";
  603. };
  604. };
  605. };
  606. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement