Update and add flashlight
[fgdata-textures-ng:fgdata-textures-ng.git] / Aircraft / Hurricane / Models / light-red.xml
1 <?xml version="1.0"?>
2 <!-- Light - Red Flare-->
3 <PropertyList>
4
5         <path>light-red-flare.ac</path>
6
7         <animation>
8                 <type>alpha-test</type>
9                 <object-name>Red-Light-Flare</object-name>
10                 <alpha-factor>0.01</alpha-factor>
11         </animation>
12
13   <effect>
14     <inherits-from>Effects/model-transparent</inherits-from>
15     <object-name>Red-Light-Flare</object-name>
16   </effect>
17
18         <!--<animation>
19                 <type>billboard</type>
20                 <spherical>true</spherical>
21                 <object-name>Red-Light-Flare</object-name>
22         </animation>-->
23
24   <animation>
25     <type>flash</type>
26     <object-name>Red-Light-Flare-0</object-name>
27     <offset>0.0</offset>
28     <factor>1.0</factor>
29     <power>2.0</power>
30     <two-sides type="bool">false</two-sides>
31     <min>0.0</min>
32     <max>2.0</max>
33     <center>
34       <x-m>0.0</x-m>
35       <y-m>0.0</y-m>
36       <z-m>0.0</z-m>
37     </center>
38     <axis>
39       <x>-1.0</x>
40       <y>-0.25</y>
41       <z>0.0</z>
42     </axis>
43   </animation>
44
45   <animation>
46     <type>flash</type>
47     <object-name>Red-Light-Flare-1</object-name>
48     <offset>0.0</offset>
49     <factor>1.0</factor>
50     <power>2.0</power>
51     <two-sides type="bool">false</two-sides>
52     <min>0.0</min>
53     <max>2.0</max>
54     <center>
55       <x-m>0.0</x-m>
56       <y-m>0.0</y-m>
57       <z-m>0.0</z-m>
58     </center>
59     <axis>
60       <x>-0.3</x>
61       <y>-1.0</y>
62       <z>0.0</z>
63     </axis>
64   </animation>
65
66   <animation>
67     <type>flash</type>
68     <object-name>Red-Light-Flare-2</object-name>
69     <offset>0.0</offset>
70     <factor>1.0</factor>
71     <power>1.0</power>
72     <two-sides type="bool">true</two-sides>
73     <min>0.0</min>
74     <max>2.0</max>
75     <center>
76       <x-m>0.0</x-m>
77       <y-m>0.0</y-m>
78       <z-m>0.0</z-m>
79     </center>
80     <axis>
81       <x>0.0</x>
82       <y>0.0</y>
83       <z>1.0</z>
84     </axis>
85   </animation>
86
87   <animation>
88     <type>dist-scale</type>
89     <object-name>Red-Light-Flare</object-name>
90     <interpolation>
91       <entry>
92         <ind>0.001</ind>
93         <dep>1</dep>
94       </entry>
95       <entry>
96         <ind>40000</ind>
97         <dep>150</dep>
98       </entry>
99       <entry>
100         <ind>80000</ind>
101         <dep>300</dep>
102       </entry>
103     </interpolation>
104   </animation>
105
106   <animation>
107                 <type>scale</type>
108                 <object-name>Red-Light-Flare</object-name>
109                 <property>/sim/time/sun-angle-rad</property>
110                 <offset>-1.4</offset>
111                 <x-min>1</x-min>
112                 <y-min>1</y-min>
113                 <z-min>1</z-min>
114                 <x-factor>2</x-factor>
115                 <y-factor>2</y-factor>
116                 <z-factor>2</z-factor>
117         </animation>
118         
119   <animation>
120     <type>light</type>
121     <light-type>spot</light-type>
122     <name>LightNavPort</name>
123     <object-name>LightVolNavPort</object-name>
124     <nopreview/>
125     <position>
126       <x> 0 </x>
127       <y> 0 </y>
128       <z> 0 </z>
129     </position>
130     <direction>
131       <x> -1.0</x>
132       <y> -1.19175359</y>
133       <z> 0.0</z>
134     </direction>
135     <ambient>
136       <r>0.01</r>
137       <g>0.01</g>
138       <b>0.01</b>
139       <a>1.0</a>
140     </ambient>
141     <diffuse>
142       <r>0.7</r>
143       <g>0.2</g>
144       <b>0.2</b>
145       <a>1.0</a>
146     </diffuse>
147     <specular>
148       <r>0.7</r>
149       <g>0.7</g>
150       <b>0.7</b>
151       <a>1.0</a>
152     </specular>
153     <attenuation>
154       <c>1.0</c>
155       <l>0.002</l>
156       <q>0.0005</q>
157     </attenuation>
158     <exponent>2.0</exponent>
159     <near-m>0.0001</near-m>
160     <far-m>50</far-m>
161     <cutoff>90</cutoff>
162   </animation>
163
164   <animation>
165     <type>select</type>
166     <object-name>Red-Light-Flare</object-name>
167      <condition>
168       <or>
169         <equals>
170           <property>/controls/lighting/nav-lights</property>
171           <value>1</value>
172         </equals>
173         <equals>
174           <property>/controls/lighting/nav-lights[1]</property>
175           <value>1</value>
176         </equals>
177       </or>
178     </condition>
179   </animation>
180
181   <animation>
182     <type>select</type>
183     <object-name>LightNavPort</object-name>
184     <condition>
185       <and>
186         <or>
187           <equals>
188             <property>/controls/lighting/nav-lights</property>
189             <value>1</value>
190           </equals>
191           <equals>
192             <property>/controls/lighting/nav-lights[1]</property>
193             <value>1</value>
194           </equals>
195         </or>
196         <greater-than>
197           <property>/sim/time/sun-angle-rad</property>
198           <value>1.4</value>
199         </greater-than>
200       </and>
201     </condition>
202   </animation>
203
204         <!--    *** LoD *** 
205     <animation> 
206       <type>range</type>
207       <object-name>Red-Flare</object-name>
208       <min-m>0</min-m>
209       <max-m>5000</max-m>
210     </animation>-->
211
212 </PropertyList>