gunsight.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0"?>
  2. <!-- F-4N gunsight, by Dave Culp -->
  3. <PropertyList>
  4. <path>gunsight.ac</path>
  5. <animation>
  6. <type>material</type>
  7. <object-name>switchbox</object-name>
  8. <emission>
  9. <red>0.6</red>
  10. <green>0.3</green>
  11. <blue>0.3</blue>
  12. <factor-prop>controls/lighting/instruments-norm</factor-prop>
  13. </emission>
  14. </animation>
  15. <!-- pipper on/off -->
  16. <animation>
  17. <type>select</type>
  18. <object-name>pipper</object-name>
  19. <condition>
  20. <property>controls/armament/gunsight/power-on</property>
  21. </condition>
  22. </animation>
  23. <!-- pipper brightness -->
  24. <animation>
  25. <type>material</type>
  26. <object-name>pipper</object-name>
  27. <emission>
  28. <red>1.0</red>
  29. <green>1.0</green>
  30. <blue>1.0</blue>
  31. <factor-prop>controls/armament/gunsight/intensity</factor-prop>
  32. </emission>
  33. </animation>
  34. <!-- pipper depression with g-load -->
  35. <animation>
  36. <type>translate</type>
  37. <object-name>pipper</object-name>
  38. <property>accelerations/nlf</property>
  39. <factor>-0.012</factor>
  40. <min>0</min>
  41. <axis>
  42. <x>0</x>
  43. <y>0</y>
  44. <z>1</z>
  45. </axis>
  46. </animation>
  47. <animation>
  48. <type>select</type>
  49. <object-name>switch-on</object-name>
  50. <condition>
  51. <property>controls/armament/gunsight/power-on</property>
  52. </condition>
  53. </animation>
  54. <animation>
  55. <type>select</type>
  56. <object-name>switch-off</object-name>
  57. <condition>
  58. <not>
  59. <property>controls/armament/gunsight/power-on</property>
  60. </not>
  61. </condition>
  62. </animation>
  63. <!-- Hot Spots -->
  64. <animation>
  65. <type>pick</type>
  66. <object-name>switchbox</object-name>
  67. <visible>true</visible>
  68. <action>
  69. <button>0</button>
  70. <repeatable>false</repeatable>
  71. <binding>
  72. <command>property-toggle</command>
  73. <property>controls/armament/gunsight/power-on</property>
  74. </binding>
  75. </action>
  76. </animation>
  77. <!-- *** LoD *** -->
  78. <animation>
  79. <type>range</type>
  80. <min-m>0</min-m>
  81. <max-m>50</max-m>
  82. </animation>
  83. </PropertyList>