radarold.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <?xml version="1.0"?>
  2. <!-- Radar, with 4 AI blips (green), 20/40 mile range -->
  3. <!-- 4 MP blips (yellow), 20/40 mile range -->
  4. <!-- Must use with the JSBSim system "radar.xml" -->
  5. <!-- by Dave Culp -->
  6. <PropertyList>
  7. <path>radar.ac</path>
  8. <animation>
  9. <type>material</type>
  10. <object-name>screen</object-name>
  11. <emission>
  12. <red>0.0</red>
  13. <green>0.1</green>
  14. <blue>0.0</blue>
  15. <factor-prop>controls/lighting/instruments-norm</factor-prop>
  16. </emission>
  17. </animation>
  18. <!-- *************************************************-->
  19. <!-- * TARGET 1 (AI) range 20 ***********************-->
  20. <!-- *************************************************-->
  21. <animation>
  22. <type>select</type>
  23. <object-name>blip1</object-name>
  24. <condition>
  25. <and>
  26. <property>ai/models/aircraft[0]/radar/in-range</property>
  27. <less-than>
  28. <property>ai/models/aircraft[0]/radar/range-nm</property>
  29. <value>21</value>
  30. </less-than>
  31. <equals>
  32. <property>fdm/jsbsim/systems/radar/range</property>
  33. <value>20</value>
  34. </equals>
  35. </and>
  36. </condition>
  37. </animation>
  38. <animation>
  39. <type>translate</type>
  40. <object-name>blip1</object-name>
  41. <property>ai/models/aircraft[0]/radar/x-shift</property>
  42. <factor>0.001625</factor>
  43. <axis>
  44. <y>1</y>
  45. </axis>
  46. </animation>
  47. <animation>
  48. <type>translate</type>
  49. <object-name>blip1</object-name>
  50. <property>ai/models/aircraft[0]/radar/y-shift</property>
  51. <factor>0.001625</factor>
  52. <axis>
  53. <z>1</z>
  54. </axis>
  55. </animation>
  56. <!-- *************************************************-->
  57. <!-- * TARGET 2 (AI) range 20 ***********************-->
  58. <!-- *************************************************-->
  59. <animation>
  60. <type>select</type>
  61. <object-name>blip2</object-name>
  62. <condition>
  63. <and>
  64. <property>ai/models/aircraft[1]/radar/in-range</property>
  65. <less-than>
  66. <property>ai/models/aircraft[1]/radar/range-nm</property>
  67. <value>21</value>
  68. </less-than>
  69. <equals>
  70. <property>fdm/jsbsim/systems/radar/range</property>
  71. <value>20</value>
  72. </equals>
  73. </and>
  74. </condition>
  75. </animation>
  76. <animation>
  77. <type>translate</type>
  78. <object-name>blip2</object-name>
  79. <property>ai/models/aircraft[1]/radar/x-shift</property>
  80. <factor>0.001625</factor>
  81. <axis>
  82. <y>1</y>
  83. </axis>
  84. </animation>
  85. <animation>
  86. <type>translate</type>
  87. <object-name>blip2</object-name>
  88. <property>ai/models/aircraft[1]/radar/y-shift</property>
  89. <factor>0.001625</factor>
  90. <axis>
  91. <z>1</z>
  92. </axis>
  93. </animation>
  94. <!-- *************************************************-->
  95. <!-- * TARGET 3 (AI) range 20 ***********************-->
  96. <!-- *************************************************-->
  97. <animation>
  98. <type>select</type>
  99. <object-name>blip3</object-name>
  100. <condition>
  101. <and>
  102. <property>ai/models/aircraft[2]/radar/in-range</property>
  103. <less-than>
  104. <property>ai/models/aircraft[2]/radar/range-nm</property>
  105. <value>21</value>
  106. </less-than>
  107. <equals>
  108. <property>fdm/jsbsim/systems/radar/range</property>
  109. <value>20</value>
  110. </equals>
  111. </and>
  112. </condition>
  113. </animation>
  114. <animation>
  115. <type>translate</type>
  116. <object-name>blip3</object-name>
  117. <property>ai/models/aircraft[2]/radar/x-shift</property>
  118. <factor>0.001625</factor>
  119. <axis>
  120. <y>1</y>
  121. </axis>
  122. </animation>
  123. <animation>
  124. <type>translate</type>
  125. <object-name>blip3</object-name>
  126. <property>ai/models/aircraft[2]/radar/y-shift</property>
  127. <factor>0.001625</factor>
  128. <axis>
  129. <z>1</z>
  130. </axis>
  131. </animation>
  132. <!-- *************************************************-->
  133. <!-- * TARGET 4 (AI) range 20 ***********************-->
  134. <!-- when there are multiple tankers, it chooses the first only? -->
  135. <!-- *************************************************-->
  136. <animation>
  137. <type>select</type>
  138. <object-name>blip4</object-name>
  139. <condition>
  140. <and>
  141. <property>ai/models/tanker[0]/radar/in-range</property>
  142. <less-than>
  143. <property>ai/models/tanker[0]/radar/range-nm</property>
  144. <value>21</value>
  145. </less-than>
  146. <equals>
  147. <property>fdm/jsbsim/systems/radar/range</property>
  148. <value>20</value>
  149. </equals>
  150. </and>
  151. </condition>
  152. </animation>
  153. <animation>
  154. <type>translate</type>
  155. <object-name>blip4</object-name>
  156. <property>ai/models/tanker[0]/radar/x-shift</property>
  157. <factor>0.001625</factor>
  158. <axis>
  159. <y>1</y>
  160. </axis>
  161. </animation>
  162. <animation>
  163. <type>translate</type>
  164. <object-name>blip4</object-name>
  165. <property>ai/models/tanker[0]/radar/y-shift</property>
  166. <factor>0.001625</factor>
  167. <axis>
  168. <z>1</z>
  169. </axis>
  170. </animation>
  171. <!-- *************************************************-->
  172. <!-- * TARGET 1 (MP) range 20 ***********************-->
  173. <!-- *************************************************-->
  174. <animation>
  175. <type>select</type>
  176. <object-name>blip5</object-name>
  177. <condition>
  178. <and>
  179. <property>ai/models/multiplayer[0]/radar/in-range</property>
  180. <less-than>
  181. <property>ai/models/multiplayer[0]/radar/range-nm</property>
  182. <value>21</value>
  183. </less-than>
  184. <equals>
  185. <property>fdm/jsbsim/systems/radar/range</property>
  186. <value>20</value>
  187. </equals>
  188. </and>
  189. </condition>
  190. </animation>
  191. <animation>
  192. <type>translate</type>
  193. <object-name>blip5</object-name>
  194. <property>ai/models/multiplayer[0]/radar/x-shift</property>
  195. <factor>0.001625</factor>
  196. <axis>
  197. <y>1</y>
  198. </axis>
  199. </animation>
  200. <animation>
  201. <type>translate</type>
  202. <object-name>blip5</object-name>
  203. <property>ai/models/multiplayer[0]/radar/y-shift</property>
  204. <factor>0.001625</factor>
  205. <axis>
  206. <z>1</z>
  207. </axis>
  208. </animation>
  209. <!-- *************************************************-->
  210. <!-- * TARGET 2 (MP) range 20 ***********************-->
  211. <!-- *************************************************-->
  212. <animation>
  213. <type>select</type>
  214. <object-name>blip6</object-name>
  215. <condition>
  216. <and>
  217. <property>ai/models/multiplayer[1]/radar/in-range</property>
  218. <less-than>
  219. <property>ai/models/multiplayer[1]/radar/range-nm</property>
  220. <value>21</value>
  221. </less-than>
  222. <equals>
  223. <property>fdm/jsbsim/systems/radar/range</property>
  224. <value>20</value>
  225. </equals>
  226. </and>
  227. </condition>
  228. </animation>
  229. <animation>
  230. <type>translate</type>
  231. <object-name>blip6</object-name>
  232. <property>ai/models/multiplayer[1]/radar/x-shift</property>
  233. <factor>0.001625</factor>
  234. <axis>
  235. <y>1</y>
  236. </axis>
  237. </animation>
  238. <animation>
  239. <type>translate</type>
  240. <object-name>blip6</object-name>
  241. <property>ai/models/multiplayer[1]/radar/y-shift</property>
  242. <factor>0.001625</factor>
  243. <axis>
  244. <z>1</z>
  245. </axis>
  246. </animation>
  247. <!-- *************************************************-->
  248. <!-- * TARGET 3 (MP) range 20 ***********************-->
  249. <!-- *************************************************-->
  250. <animation>
  251. <type>select</type>
  252. <object-name>blip7</object-name>
  253. <condition>
  254. <and>
  255. <property>ai/models/multiplayer[2]/radar/in-range</property>
  256. <less-than>
  257. <property>ai/models/multiplayer[2]/radar/range-nm</property>
  258. <value>21</value>
  259. </less-than>
  260. <equals>
  261. <property>fdm/jsbsim/systems/radar/range</property>
  262. <value>20</value>
  263. </equals>
  264. </and>
  265. </condition>
  266. </animation>
  267. <animation>
  268. <type>translate</type>
  269. <object-name>blip7</object-name>
  270. <property>ai/models/multiplayer[2]/radar/x-shift</property>
  271. <factor>0.001625</factor>
  272. <axis>
  273. <y>1</y>
  274. </axis>
  275. </animation>
  276. <animation>
  277. <type>translate</type>
  278. <object-name>blip7</object-name>
  279. <property>ai/models/multiplayer[2]/radar/y-shift</property>
  280. <factor>0.001625</factor>
  281. <axis>
  282. <z>1</z>
  283. </axis>
  284. </animation>
  285. <!-- *************************************************-->
  286. <!-- * TARGET 4 (MP) range 20 ***********************-->
  287. <!-- *************************************************-->
  288. <animation>
  289. <type>select</type>
  290. <object-name>blip8</object-name>
  291. <condition>
  292. <and>
  293. <property>ai/models/multiplayer[3]/radar/in-range</property>
  294. <less-than>
  295. <property>ai/models/multiplayer[3]/radar/range-nm</property>
  296. <value>21</value>
  297. </less-than>
  298. <equals>
  299. <property>fdm/jsbsim/systems/radar/range</property>
  300. <value>20</value>
  301. </equals>
  302. </and>
  303. </condition>
  304. </animation>
  305. <animation>
  306. <type>translate</type>
  307. <object-name>blip8</object-name>
  308. <property>ai/models/multiplayer[3]/radar/x-shift</property>
  309. <factor>0.001625</factor>
  310. <axis>
  311. <y>1</y>
  312. </axis>
  313. </animation>
  314. <animation>
  315. <type>translate</type>
  316. <object-name>blip8</object-name>
  317. <property>ai/models/multiplayer[3]/radar/y-shift</property>
  318. <factor>0.001625</factor>
  319. <axis>
  320. <z>1</z>
  321. </axis>
  322. </animation>
  323. <!-- *************************************************-->
  324. <!-- * TARGET 1 (AI) range 40 ***********************-->
  325. <!-- *************************************************-->
  326. <animation>
  327. <type>select</type>
  328. <object-name>blip41</object-name>
  329. <condition>
  330. <and>
  331. <property>ai/models/aircraft[0]/radar/in-range</property>
  332. <more-than>
  333. <property>ai/models/aircraft[0]/radar/range-nm</property>
  334. <value>21</value>
  335. </more-than>
  336. <equals>
  337. <property>fdm/jsbsim/systems/radar/range</property>
  338. <value>40</value>
  339. </equals>
  340. </and>
  341. </condition>
  342. </animation>
  343. <animation>
  344. <type>translate</type>
  345. <object-name>blip41</object-name>
  346. <property>ai/models/aircraft[0]/radar/x-shift</property>
  347. <factor>0.0008125</factor>
  348. <axis>
  349. <y>1</y>
  350. </axis>
  351. </animation>
  352. <animation>
  353. <type>translate</type>
  354. <object-name>blip41</object-name>
  355. <property>ai/models/aircraft[0]/radar/y-shift</property>
  356. <factor>0.0008125</factor>
  357. <axis>
  358. <z>1</z>
  359. </axis>
  360. </animation>
  361. <!-- *************************************************-->
  362. <!-- * TARGET 2 (AI) range 40 ***********************-->
  363. <!-- *************************************************-->
  364. <animation>
  365. <type>select</type>
  366. <object-name>blip42</object-name>
  367. <condition>
  368. <and>
  369. <property>ai/models/aircraft[1]/radar/in-range</property>
  370. <more-than>
  371. <property>ai/models/aircraft[1]/radar/range-nm</property>
  372. <value>21</value>
  373. </more-than>
  374. <equals>
  375. <property>fdm/jsbsim/systems/radar/range</property>
  376. <value>40</value>
  377. </equals>
  378. </and>
  379. </condition>
  380. </animation>
  381. <animation>
  382. <type>translate</type>
  383. <object-name>blip42</object-name>
  384. <property>ai/models/aircraft[1]/radar/x-shift</property>
  385. <factor>0.0008125</factor>
  386. <axis>
  387. <y>1</y>
  388. </axis>
  389. </animation>
  390. <animation>
  391. <type>translate</type>
  392. <object-name>blip42</object-name>
  393. <property>ai/models/aircraft[1]/radar/y-shift</property>
  394. <factor>0.0008125</factor>
  395. <axis>
  396. <z>1</z>
  397. </axis>
  398. </animation>
  399. <!-- *************************************************-->
  400. <!-- * TARGET 3 (AI) range 40 ***********************-->
  401. <!-- *************************************************-->
  402. <animation>
  403. <type>select</type>
  404. <object-name>blip43</object-name>
  405. <condition>
  406. <and>
  407. <property>ai/models/aircraft[2]/radar/in-range</property>
  408. <more-than>
  409. <property>ai/models/aircraft[2]/radar/range-nm</property>
  410. <value>21</value>
  411. </more-than>
  412. <equals>
  413. <property>fdm/jsbsim/systems/radar/range</property>
  414. <value>40</value>
  415. </equals>
  416. </and>
  417. </condition>
  418. </animation>
  419. <animation>
  420. <type>translate</type>
  421. <object-name>blip43</object-name>
  422. <property>ai/models/aircraft[2]/radar/x-shift</property>
  423. <factor>0.0008125</factor>
  424. <axis>
  425. <y>1</y>
  426. </axis>
  427. </animation>
  428. <animation>
  429. <type>translate</type>
  430. <object-name>blip43</object-name>
  431. <property>ai/models/aircraft[2]/radar/y-shift</property>
  432. <factor>0.0008125</factor>
  433. <axis>
  434. <z>1</z>
  435. </axis>
  436. </animation>
  437. <!-- *************************************************-->
  438. <!-- * TARGET 4 (AI) range 40 ***********************-->
  439. <!-- *************************************************-->
  440. <animation>
  441. <type>select</type>
  442. <object-name>blip44</object-name>
  443. <condition>
  444. <and>
  445. <property>ai/models/tanker[0]/radar/in-range</property>
  446. <more-than>
  447. <property>ai/models/tanker[0]/radar/range-nm</property>
  448. <value>21</value>
  449. </more-than>
  450. <equals>
  451. <property>fdm/jsbsim/systems/radar/range</property>
  452. <value>40</value>
  453. </equals>
  454. </and>
  455. </condition>
  456. </animation>
  457. <animation>
  458. <type>translate</type>
  459. <object-name>blip44</object-name>
  460. <property>ai/models/tanker[0]/radar/x-shift</property>
  461. <factor>0.0008125</factor>
  462. <axis>
  463. <y>1</y>
  464. </axis>
  465. </animation>
  466. <animation>
  467. <type>translate</type>
  468. <object-name>blip44</object-name>
  469. <property>ai/models/tanker[0]/radar/y-shift</property>
  470. <factor>0.0008125</factor>
  471. <axis>
  472. <z>1</z>
  473. </axis>
  474. </animation>
  475. <!-- *************************************************-->
  476. <!-- * TARGET 1 (MP) range 40 ***********************-->
  477. <!-- *************************************************-->
  478. <animation>
  479. <type>select</type>
  480. <object-name>blip45</object-name>
  481. <condition>
  482. <and>
  483. <property>ai/models/multiplayer[0]/radar/in-range</property>
  484. <more-than>
  485. <property>ai/models/multiplayer[0]/radar/range-nm</property>
  486. <value>21</value>
  487. </more-than>
  488. <equals>
  489. <property>fdm/jsbsim/systems/radar/range</property>
  490. <value>40</value>
  491. </equals>
  492. </and>
  493. </condition>
  494. </animation>
  495. <animation>
  496. <type>translate</type>
  497. <object-name>blip45</object-name>
  498. <property>ai/models/multiplayer[0]/radar/x-shift</property>
  499. <factor>0.0008125</factor>
  500. <axis>
  501. <y>1</y>
  502. </axis>
  503. </animation>
  504. <animation>
  505. <type>translate</type>
  506. <object-name>blip45</object-name>
  507. <property>ai/models/multiplayer[0]/radar/y-shift</property>
  508. <factor>0.0008125</factor>
  509. <axis>
  510. <z>1</z>
  511. </axis>
  512. </animation>
  513. <!-- *************************************************-->
  514. <!-- * TARGET 2 (MP) range 40 ***********************-->
  515. <!-- *************************************************-->
  516. <animation>
  517. <type>select</type>
  518. <object-name>blip46</object-name>
  519. <condition>
  520. <and>
  521. <property>ai/models/multiplayer[1]/radar/in-range</property>
  522. <more-than>
  523. <property>ai/models/multiplayer[1]/radar/range-nm</property>
  524. <value>21</value>
  525. </more-than>
  526. <equals>
  527. <property>fdm/jsbsim/systems/radar/range</property>
  528. <value>40</value>
  529. </equals>
  530. </and>
  531. </condition>
  532. </animation>
  533. <animation>
  534. <type>translate</type>
  535. <object-name>blip46</object-name>
  536. <property>ai/models/multiplayer[1]/radar/x-shift</property>
  537. <factor>0.0008125</factor>
  538. <axis>
  539. <y>1</y>
  540. </axis>
  541. </animation>
  542. <animation>
  543. <type>translate</type>
  544. <object-name>blip46</object-name>
  545. <property>ai/models/multiplayer[1]/radar/y-shift</property>
  546. <factor>0.0008125</factor>
  547. <axis>
  548. <z>1</z>
  549. </axis>
  550. </animation>
  551. <!-- *************************************************-->
  552. <!-- * TARGET 3 (MP) range 40 ***********************-->
  553. <!-- *************************************************-->
  554. <animation>
  555. <type>select</type>
  556. <object-name>blip47</object-name>
  557. <condition>
  558. <and>
  559. <property>ai/models/multiplayer[2]/radar/in-range</property>
  560. <more-than>
  561. <property>ai/models/multiplayer[2]/radar/range-nm</property>
  562. <value>21</value>
  563. </more-than>
  564. <equals>
  565. <property>fdm/jsbsim/systems/radar/range</property>
  566. <value>40</value>
  567. </equals>
  568. </and>
  569. </condition>
  570. </animation>
  571. <animation>
  572. <type>translate</type>
  573. <object-name>blip47</object-name>
  574. <property>ai/models/multiplayer[2]/radar/x-shift</property>
  575. <factor>0.0008125</factor>
  576. <axis>
  577. <y>1</y>
  578. </axis>
  579. </animation>
  580. <animation>
  581. <type>translate</type>
  582. <object-name>blip47</object-name>
  583. <property>ai/models/multiplayer[2]/radar/y-shift</property>
  584. <factor>0.0008125</factor>
  585. <axis>
  586. <z>1</z>
  587. </axis>
  588. </animation>
  589. <!-- *************************************************-->
  590. <!-- * TARGET 4 (MP) range 40 ***********************-->
  591. <!-- *************************************************-->
  592. <animation>
  593. <type>select</type>
  594. <object-name>blip48</object-name>
  595. <condition>
  596. <and>
  597. <property>ai/models/multiplayer[3]/radar/in-range</property>
  598. <more-than>
  599. <property>ai/models/multiplayer[3]/radar/range-nm</property>
  600. <value>21</value>
  601. </more-than>
  602. <equals>
  603. <property>fdm/jsbsim/systems/radar/range</property>
  604. <value>40</value>
  605. </equals>
  606. </and>
  607. </condition>
  608. </animation>
  609. <animation>
  610. <type>translate</type>
  611. <object-name>blip48</object-name>
  612. <property>ai/models/multiplayer[3]/radar/x-shift</property>
  613. <factor>0.0008125</factor>
  614. <axis>
  615. <y>1</y>
  616. </axis>
  617. </animation>
  618. <animation>
  619. <type>translate</type>
  620. <object-name>blip48</object-name>
  621. <property>ai/models/multiplayer[3]/radar/y-shift</property>
  622. <factor>0.0008125</factor>
  623. <axis>
  624. <z>1</z>
  625. </axis>
  626. </animation>
  627. <!-- Range Knob -->
  628. <animation>
  629. <type>rotate</type>
  630. <object-name>RangeKnob</object-name>
  631. <property>fdm/jsbsim/systems/radar/range</property>
  632. <interpolation>
  633. <entry>
  634. <ind>20</ind>
  635. <dep>0.0</dep>
  636. </entry>
  637. <entry>
  638. <ind>40</ind>
  639. <dep>85.0</dep>
  640. </entry>
  641. </interpolation>
  642. <center>
  643. <x-m>0.04</x-m>
  644. <y-m>-0.0645074</y-m>
  645. <z-m>-0.027023</z-m>
  646. </center>
  647. <axis>
  648. <x>-1</x>
  649. <y>0</y>
  650. <z>0</z>
  651. </axis>
  652. </animation>
  653. <!-- Hot Spots -->
  654. <animation>
  655. <type>pick</type>
  656. <object-name>placard</object-name>
  657. <visible>true</visible>
  658. <action>
  659. <button>0</button>
  660. <repeatable>false</repeatable>
  661. <binding>
  662. <command>property-cycle</command>
  663. <property>fdm/jsbsim/systems/radar/range</property>
  664. <value>20</value>
  665. <value>40</value>
  666. </binding>
  667. </action>
  668. </animation>
  669. <!-- *** LoD *** -->
  670. <animation>
  671. <type>range</type>
  672. <min-m>0</min-m>
  673. <max-m>5</max-m>
  674. </animation>
  675. </PropertyList>