Advertisement
Guest User

Untitled

a guest
Aug 21st, 2020
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.16 KB | None | 0 0
  1. ----- MODEL.CFG -----
  2.  
  3.  
  4. ; Reference LOD implementation, please keep these comments (for now).
  5.  
  6. [model.options]
  7. ; if true, when showing the exterior, also show the interior model (default false)
  8. withExterior_showInterior=false
  9. ; if true, when showing the interior with the exterior, exclude interior.lod.0 (default false); only has an effect when withExterior_showInterior is true
  10. withExterior_showInterior_hideFirstLod=false
  11. ; when showing the interior, force showing lod0 (default true)
  12. withInterior_forceFirstLod=false
  13. ; when showing the interior, also show the exterior model (default false)
  14. withInterior_showExterior=false
  15.  
  16. [models]
  17. exterior=SimpleAircraft.xml
  18. interior=SimpleAircraft_Interior.xml
  19.  
  20.  
  21. ----- SimpleAircraft.xml -----
  22.  
  23.  
  24. <?xml version="1.0" encoding="utf-8" ?>
  25.  
  26. <ModelInfo>
  27.  
  28. <LODS>
  29. <!-- Highest LOD -->
  30. <!-- minimum display size in % (should be bounding sphere vertical screen size, sphere will often be slightly larger than you expect) -->
  31. <!-- default minSize is 0 -->
  32. <LOD minSize="50" ModelFile="f14d.mdl"/>
  33.  
  34. </LODS>
  35.  
  36. <Animation name="c_wheel" guid="BC935F16-43CD-4046-8EF3-06E44A5940AB" length="200" type="Sim" typeparam2="c_wheel" typeparam="AutoPlay" />
  37.  
  38. <Animation name="c_gear" guid="E2E339A6-FCBF-43a9-A780-3473E03AB54B" length="100" type="Sim" typeparam2="c_gear" typeparam="AutoPlay" />
  39. <Animation name="l_gear" guid="E6A307E6-D0D8-4ca0-8A8E-77B7EA22FFB9" length="100" type="Sim" typeparam2="l_gear" typeparam="AutoPlay" />
  40. <Animation name="r_gear" guid="77C00B94-DDA1-450a-B725-1E2B4ADF6BC8" length="100" type="Sim" typeparam2="r_gear" typeparam="AutoPlay" />
  41.  
  42. <Animation name="c_tire_anim" guid="40470978-5D39-4709-94F2-0406CC893774" length="100" type="Sim" typeParam2="c_tire_anim" typeParam="AutoPlay" />
  43. <Animation name="l_tire_anim" guid="59A85118-0DDD-46D1-81BC-62B7E1A46782" length="100" type="Sim" typeParam2="l_tire_anim" typeParam="AutoPlay" />
  44. <Animation name="r_tire_anim" guid="0FE2DDBC-B7B0-41EC-9B7A-EE04C5B02446" length="100" type="Sim" typeParam2="r_tire_anim" typeParam="AutoPlay" />
  45.  
  46. <Animation name="prop_anim" guid="E8A94AB5-CBBD-4978-862B-4D78D9FF3E25" length="100" type="Sim" typeParam2="prop_anim" typeParam="AutoPlay" />
  47. <Animation name="prop1_blurred" guid="a30d1108-0e02-4e78-a41a-4c072a815e90" length="100" type="Sim" typeParam2="prop1_blurred" typeParam="AutoPlay" />
  48. <Animation name="prop1_slow" guid="b964023e-998f-40bf-9875-19f21c3b8031" length="100" type="Sim" typeParam2="prop1_slow" typeParam="AutoPlay" />
  49. <Animation name="prop1_still" guid="1ca952e2-9e61-4905-b1ca-46a2c07b8bdf" length="100" type="Sim" typeParam2="prop1_still" typeParam="AutoPlay" />
  50.  
  51. <Animation name="elevator_percent_key" guid="69fced03-9a10-49a7-aa82-2b79ab5b63e0" length="100" type="Sim" typeParam2="elevator_percent_key" typeParam="AutoPlay" />
  52.  
  53. <Animation name="l_aileron_percent_key" guid="bad53e9a-1958-4b22-90fe-23513d121db3" length="100" type="Sim" typeParam2="l_aileron_percent_key" typeParam="AutoPlay" />
  54. <Animation name="r_aileron_percent_key" guid="77db62be-36d4-4c03-bea7-c4cc2a224d9d" length="100" type="Sim" typeParam2="r_aileron_percent_key" typeParam="AutoPlay" />
  55.  
  56. <Animation name="l_flap_percent_key" guid="DB029E5C-1A48-42d5-8290-EF098DFABB4F" length="100" type="Sim" typeparam2="l_flap_percent_key" typeparam="AutoPlay" />
  57. <Animation name="r_flap_percent_key" guid="3849E47F-9088-4699-8959-EC0C54DF8015" length="100" type="Sim" typeparam2="r_flap_percent_key" typeparam="AutoPlay" />
  58.  
  59. <Animation name="rudder_percent_key" guid="5433b2a0-0fd9-4192-8f7d-0ba36bf7191d" length="100" type="Sim" typeParam2="rudder_percent_key" typeParam="AutoPlay" />
  60.  
  61. <PartInfo>
  62. <Name>c_wheel</Name>
  63. <AnimLength>200</AnimLength>
  64. <Animation>
  65. <Parameter>
  66. <Code>
  67. (A:GEAR CENTER STEER ANGLE, grads) 0 &gt; if{ (A:GEAR CENTER STEER ANGLE, grads) 0.5 * } els{ (A:GEAR CENTER STEER ANGLE, grads) 0.5 * 200 + }
  68. </Code>
  69. </Parameter>
  70. </Animation>
  71. <MouseRect>
  72. <TooltipID>TOOLTIPTEXT_STEER_ANGLE</TooltipID>
  73. </MouseRect>
  74. </PartInfo>
  75.  
  76. <PartInfo>
  77. <Name>prop_anim</Name>
  78. <AnimLength>100</AnimLength>
  79. <Animation>
  80. <Parameter>
  81. <Sim>
  82. <Variable>PROP ROTATION ANGLE:1</Variable>
  83. <Units>radians</Units>
  84. <Scale>15.92</Scale>
  85. </Sim>
  86. </Parameter>
  87. </Animation>
  88. </PartInfo>
  89.  
  90. <PartInfo>
  91. <Name>prop1_still</Name>
  92. <AnimLength>100</AnimLength>
  93. <Visibility>
  94. <Parameter>
  95. <Code>
  96. (A:PROP MAX RPM PERCENT:1, percent) 6.25 &lt; if{ 1 } els{ 0 }
  97. </Code>
  98. </Parameter>
  99. </Visibility>
  100. </PartInfo>
  101.  
  102. <PartInfo>
  103. <Name>prop1_slow</Name>
  104. <AnimLength>100</AnimLength>
  105. <Visibility>
  106. <Parameter>
  107. <Code>
  108. (A:PROP MAX RPM PERCENT:1, percent) 6.25 &gt;
  109. if{
  110. (A:PROP MAX RPM PERCENT:1, percent) 12.5 &lt; if{ 1 } els{ 0 }
  111. } els{ 0 }
  112. </Code>
  113. </Parameter>
  114. </Visibility>
  115. </PartInfo>
  116.  
  117. <PartInfo>
  118. <Name>prop1_blurred</Name>
  119. <AnimLength>100</AnimLength>
  120. <Visibility>
  121. <Parameter>
  122. <Code>
  123. (A:PROP MAX RPM PERCENT:1, percent) 12.5 &gt; if{ 1 } els{ 0 }
  124. </Code>
  125. </Parameter>
  126. </Visibility>
  127. </PartInfo>
  128.  
  129. <PartInfo>
  130. <Name>c_gear</Name>
  131. <AnimLength>100</AnimLength>
  132. <Animation>
  133. <Parameter>
  134. <Sim>
  135. <Variable>GEAR ANIMATION POSITION:0</Variable>
  136. <Units>number</Units>
  137. <Scale>100</Scale>
  138. </Sim>
  139. </Parameter>
  140. </Animation>
  141. </PartInfo>
  142.  
  143. <PartInfo>
  144. <Name>l_gear</Name>
  145. <Copy>c_gear</Copy>
  146. <AnimLength>100</AnimLength>
  147. <Animation>
  148. <Parameter>
  149. <Sim>
  150. <Variable>GEAR ANIMATION POSITION:1</Variable>
  151. </Sim>
  152. </Parameter>
  153. </Animation>
  154. </PartInfo>
  155.  
  156. <PartInfo>
  157. <Name>r_gear</Name>
  158. <Copy>c_gear</Copy>
  159. <AnimLength>100</AnimLength>
  160. <Animation>
  161. <Parameter>
  162. <Sim>
  163. <Variable>GEAR ANIMATION POSITION:2</Variable>
  164. </Sim>
  165. </Parameter>
  166. </Animation>
  167. </PartInfo>
  168.  
  169. <PartInfo>
  170. <Name>c_tire_anim</Name>
  171. <AnimLength>100</AnimLength>
  172. <Animation>
  173. <Parameter>
  174. <Sim>
  175. <Variable>CENTER WHEEL ROTATION ANGLE</Variable>
  176. <Units>radians</Units>
  177. <Bias>0</Bias>
  178. <Scale>15.91</Scale>
  179. </Sim>
  180. </Parameter>
  181. </Animation>
  182. </PartInfo>
  183.  
  184. <PartInfo>
  185. <Name>l_tire_anim</Name>
  186. <AnimLength>100</AnimLength>
  187. <Animation>
  188. <Parameter>
  189. <Sim>
  190. <Variable>LEFT WHEEL ROTATION ANGLE</Variable>
  191. <Units>radians</Units>
  192. <Bias>0</Bias>
  193. <Scale>15.91</Scale>
  194. </Sim>
  195. </Parameter>
  196. </Animation>
  197. </PartInfo>
  198.  
  199. <PartInfo>
  200. <Name>r_tire_anim</Name>
  201. <AnimLength>100</AnimLength>
  202. <Animation>
  203. <Parameter>
  204. <Sim>
  205. <Variable>RIGHT WHEEL ROTATION ANGLE</Variable>
  206. <Units>radians</Units>
  207. <Bias>0</Bias>
  208. <Scale>15.91</Scale>
  209. </Sim>
  210. </Parameter>
  211. </Animation>
  212. </PartInfo>
  213.  
  214. <PartInfo>
  215. <Name>elevator_percent_key</Name>
  216. <AnimLength>100</AnimLength>
  217. <Animation>
  218. <Parameter>
  219. <Sim>
  220. <Variable>ELEVATOR DEFLECTION PCT</Variable>
  221. <Units>percent</Units>
  222. <Bias>50</Bias>
  223. </Sim>
  224. </Parameter>
  225. </Animation>
  226. </PartInfo>
  227.  
  228. <PartInfo>
  229. <Name>l_aileron_percent_key</Name>
  230. <AnimLength>100</AnimLength>
  231. <Animation>
  232. <Parameter>
  233. <Sim>
  234. <Variable>AILERON LEFT DEFLECTION PCT</Variable>
  235. <Scale>1</Scale>
  236. <Units>percent</Units>
  237. <Bias>50</Bias>
  238. </Sim>
  239. </Parameter>
  240. </Animation>
  241. </PartInfo>
  242.  
  243. <PartInfo>
  244. <Name>r_aileron_percent_key</Name>
  245. <AnimLength>100</AnimLength>
  246. <Animation>
  247. <Parameter>
  248. <Sim>
  249. <Variable>AILERON RIGHT DEFLECTION PCT</Variable>
  250. <Scale>1</Scale>
  251. <Units>percent</Units>
  252. <Bias>50</Bias>
  253. </Sim>
  254. </Parameter>
  255. </Animation>
  256. </PartInfo>
  257.  
  258. <PartInfo>
  259. <Name>l_flap_percent_key</Name>
  260. <AnimLength>100</AnimLength>
  261. <Animation>
  262. <Parameter>
  263. <Sim>
  264. <Variable>TRAILING EDGE FLAPS LEFT PERCENT</Variable>
  265. <Units>percent</Units>
  266. <Scale>1</Scale>
  267. <Bias>0</Bias>
  268. </Sim>
  269. </Parameter>
  270. </Animation>
  271. </PartInfo>
  272.  
  273. <PartInfo>
  274. <Name>r_flap_percent_key</Name>
  275. <AnimLength>100</AnimLength>
  276. <Animation>
  277. <Parameter>
  278. <Sim>
  279. <Variable>TRAILING EDGE FLAPS RIGHT PERCENT</Variable>
  280. <Units>percent</Units>
  281. <Scale>1</Scale>
  282. <Bias>0</Bias>
  283. </Sim>
  284. </Parameter>
  285. </Animation>
  286. </PartInfo>
  287.  
  288. <PartInfo>
  289. <Name>rudder_percent_key</Name>
  290. <AnimLength>100</AnimLength>
  291. <Animation>
  292. <Parameter>
  293. <Sim>
  294. <Variable>RUDDER DEFLECTION PCT</Variable>
  295. <Units>percent</Units>
  296. <Bias>50</Bias>
  297. </Sim>
  298. </Parameter>
  299. </Animation>
  300. </PartInfo>
  301.  
  302. </ModelInfo>
  303.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement