Debian Codegraph @

Models/Geometry/Kuznetsov/Kuznetsov.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <PropertyList>
3 <description>Admiral Kuznetsov</description>
4 <author>Daniel Overbeck, Richard Harrison, Uxman (3d)</author>
5 <!-- 3d model from: https://sketchfab.com/3d-models/kuznetsov-aircraft-carrier-460d73a91efb49298c86ee347fae397c -->
6 <status>early-production</status>
7 <path>Kuznetsov.ac</path>
8 <nasal>
9 <load>
10 <![CDATA[
11 var self = cmdarg();
12 print("Model load Admiral Kuznetsov ", self.getPath());
13 var pathc = self.getPath();
14
15 # register the dialog
16
17 setprop(pathc~"/dlg-name", "Kuznetsov");
18
19
20
21 ################
22 # jet blast deflectors
23 var jbd_transit_time = 5.0;
24 setprop("/controls/kuznetsov/jbd[0]/state", 0);
25 setprop("/controls/kuznetsov/jbd[1]/state", 0);
26 setprop("/controls/kuznetsov/jbd[2]/state", 0);
27
28 var jbd0 = aircraft.door.new(pathc~"/surface-positions/jbd[0]", jbd_transit_time, 0);
29 var jbd1 = aircraft.door.new(pathc~"/surface-positions/jbd[1]", jbd_transit_time, 0);
30 var jbd2 = aircraft.door.new(pathc~"/surface-positions/jbd[2]", jbd_transit_time, 0);
31
32 var jbd_array = [jbd0, jbd1, jbd2];
33 var jbd_operate = func (i) {
34 var tgt = getprop("/controls/kuznetsov/jbd["~i~"]/state");
35 if (tgt == 1) {
36 print ("JBD ", i+1, " up.");
37 jbd_array[i].open();
38 } else {
39 print ("JBD ", i+1, " down.");
40 jbd_array[i].close();
41 }
42 }
43 var l_jbd0 = setlistener("/controls/kuznetsov/jbd[0]/state", func {jbd_operate(0);},0,0);
44 var l_jbd1 = setlistener("/controls/kuznetsov/jbd[1]/state", func {jbd_operate(1);},0,0);
45 var l_jbd2 = setlistener("/controls/kuznetsov/jbd[2]/state", func {jbd_operate(2);},0,0);
46
47
48 setprop("/controls/kuznetsov/turn-to-launch-hdg", 0);
49 setprop("/controls/kuznetsov/turn-to-recovery-hdg", 0);
50 setprop("/controls/kuznetsov/turn-to-base-course", 1);
51 ]]>
52 </load>
53
54 <unload>
55 <![CDATA[
56 # clean up listeners
57 removelistener(l_jbd0);
58 removelistener(l_jbd1);
59 removelistener(l_jbd2);
60 ]]>
61 </unload>
62 </nasal>
63 <model>
64 <name>flols</name>
65 <path>Models/Geometry/Nimitz/Models/flols.xml</path>
66 <offsets>
67 <x-m>65</x-m>
68 <y-m>-37</y-m>
69 <z-m>17</z-m>
70 <heading-deg>20</heading-deg>
71 </offsets>
72 </model>
73 <animation>
74 <type>range</type>
75 <min-m>0</min-m>
76 <max-m>30000</max-m>
77 </animation>
78 <animation>
79 <type>rotate</type>
80 <object-name>Radar</object-name>
81 <property>/sim/time/elapsed-sec</property>
82 <factor>35</factor>
83 <center>
84 <x-m>81.8</x-m>
85 <y-m>25.1</y-m>
86 </center>
87 <axis>
88 <z>1</z>
89 </axis>
90 </animation>
91 <animation>
92 <type>rotate</type>
93 <object-name>JetBlastDeflector-1</object-name>
94 <property>surface-positions/jbd[0]/position-norm</property>
95 <interpolation>
96 <entry><ind>0.0000</ind><dep>0</dep></entry>
97 <entry><ind>0.0833</ind><dep>12.2</dep></entry>
98 <entry><ind>0.1666</ind><dep>20.4</dep></entry>
99 <entry><ind>0.2500</ind><dep>28.2</dep></entry>
100 <entry><ind>0.3333</ind><dep>34.6</dep></entry>
101 <entry><ind>0.4166</ind><dep>40.6</dep></entry>
102 <entry><ind>0.5000</ind><dep>45</dep></entry>
103 <entry><ind>0.5833</ind><dep>49</dep></entry>
104 <entry><ind>0.6666</ind><dep>51.6</dep></entry>
105 <entry><ind>0.7500</ind><dep>54</dep></entry>
106 <entry><ind>0.8333</ind><dep>55</dep></entry>
107 <entry><ind>0.9166</ind><dep>56.2</dep></entry>
108 <entry><ind>1.0000</ind><dep>56.2</dep></entry>
109 </interpolation>
110 <center>
111 <x-m>15.8</x-m>
112 <y-m>0</y-m>
113 <z-m>15.17</z-m>
114 </center>
115 <axis>
116 <y>-1</y>
117 </axis>
118 </animation>
119 <animation>
120 <type>rotate</type>
121 <object-name>JetBlastDeflector-2</object-name>
122 <property>surface-positions/jbd[1]/position-norm</property>
123 <interpolation>
124 <entry><ind>0.0000</ind><dep>0</dep></entry>
125 <entry><ind>0.0833</ind><dep>12.2</dep></entry>
126 <entry><ind>0.1666</ind><dep>20.4</dep></entry>
127 <entry><ind>0.2500</ind><dep>28.2</dep></entry>
128 <entry><ind>0.3333</ind><dep>34.6</dep></entry>
129 <entry><ind>0.4166</ind><dep>40.6</dep></entry>
130 <entry><ind>0.5000</ind><dep>45</dep></entry>
131 <entry><ind>0.5833</ind><dep>49</dep></entry>
132 <entry><ind>0.6666</ind><dep>51.6</dep></entry>
133 <entry><ind>0.7500</ind><dep>54</dep></entry>
134 <entry><ind>0.8333</ind><dep>55</dep></entry>
135 <entry><ind>0.9166</ind><dep>56.2</dep></entry>
136 <entry><ind>1.0000</ind><dep>56.2</dep></entry>
137 </interpolation>
138 <center>
139 <x-m>15.8</x-m>
140 <y-m>0</y-m>
141 <z-m>15.17</z-m>
142 </center>
143 <axis>
144 <y>-1</y>
145 </axis>
146 </animation>
147 <animation>
148 <type>rotate</type>
149 <object-name>JetBlastDeflector-3</object-name>
150 <property>surface-positions/jbd[2]/position-norm</property>
151 <interpolation>
152 <entry><ind>0.0000</ind><dep>0</dep></entry>
153 <entry><ind>0.0833</ind><dep>12.2</dep></entry>
154 <entry><ind>0.1666</ind><dep>20.4</dep></entry>
155 <entry><ind>0.2500</ind><dep>28.2</dep></entry>
156 <entry><ind>0.3333</ind><dep>34.6</dep></entry>
157 <entry><ind>0.4166</ind><dep>40.6</dep></entry>
158 <entry><ind>0.5000</ind><dep>45</dep></entry>
159 <entry><ind>0.5833</ind><dep>49</dep></entry>
160 <entry><ind>0.6666</ind><dep>51.6</dep></entry>
161 <entry><ind>0.7500</ind><dep>54</dep></entry>
162 <entry><ind>0.8333</ind><dep>55</dep></entry>
163 <entry><ind>0.9166</ind><dep>56.2</dep></entry>
164 <entry><ind>1.0000</ind><dep>56.2</dep></entry>
165 </interpolation>
166 <center>
167 <x-m>107.9</x-m>
168 <y-m>0</y-m>
169 <z-m>15.17</z-m>
170 </center>
171 <axis>
172 <y>-1</y>
173 </axis>
174 </animation>
175 <animation>
176 <type>pick</type>
177 <object-name>JetBlastDeflector-1</object-name>
178 <action>
179 <button>0</button>
180 <repeatable>false</repeatable>
181 <binding>
182 <command>property-toggle</command>
183 <property>/controls/kuznetsov/jbd[0]/state</property>
184 </binding>
185 </action>
186 </animation>
187 <animation>
188 <type>pick</type>
189 <object-name>JetBlastDeflector-2</object-name>
190 <action>
191 <button>0</button>
192 <repeatable>false</repeatable>
193 <binding>
194 <command>property-toggle</command>
195 <property>/controls/kuznetsov/jbd[1]/state</property>
196 </binding>
197 </action>
198 </animation>
199 <animation>
200 <type>pick</type>
201 <object-name>JetBlastDeflector-3</object-name>
202 <action>
203 <button>0</button>
204 <repeatable>false</repeatable>
205 <binding>
206 <command>property-toggle</command>
207 <property>/controls/kuznetsov/jbd[2]/state</property>
208 </binding>
209 </action>
210 </animation>
211 <animation>
212 <type>interaction</type>
213 <object-name>wire-1</object-name>
214 <object-name>wire-2</object-name>
215 <object-name>wire-3</object-name>
216 <object-name>wire-4</object-name>
217 <interaction-type>carrier-wire</interaction-type>
218 </animation>
219 <animation>
220 <type>rotate</type>
221 <object-name>Bow-Wave</object-name>
222 <object-name>Stern-Wake</object-name>
223 <object-name>Wake</object-name>
224 <property>orientation/roll-deg</property>
225 <factor>1</factor>
226 <center><y-m>0.00</y-m><z-m>0.0473</z-m></center>
227 <axis><x>1</x></axis>
228 </animation>
229 <animation>
230 <type>rotate</type>
231 <object-name>Wake</object-name>
232 <property>surface-positions/rudder-pos-deg</property>
233 <factor>-0.334</factor>
234 <x-m>-88.6176</x-m>
235 <y-m>0.00</y-m>
236 <axis><z>-1</z></axis>
237 <enable-hot type="bool">false</enable-hot>
238 </animation>
239 <animation>
240 <type>noshadow</type>
241 <object-name>wire-1</object-name>
242 <object-name>wire-2</object-name>
243 <object-name>wire-3</object-name>
244 <object-name>wire-4</object-name>
245 <object-name>Wake</object-name>
246 </animation>
247 </PropertyList>