mirror of
https://github.com/l0k1/oprf_assets.git
synced 2026-09-12 10:29:28 +00:00
power
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Copyright (c) 2015 onox
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<mouse n="0">
|
||||
|
||||
<mode n="0">
|
||||
<button n="3">
|
||||
<binding n="0">
|
||||
<script></script>
|
||||
</binding>
|
||||
<binding n="1">
|
||||
<condition>
|
||||
<property>/sim/current-view/can-change-z-offset</property>
|
||||
</condition>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var distance = getprop("/sim/current-view/z-offset-m");
|
||||
var multiple = getprop("/sim/current-view/z-offset-inc-step");
|
||||
var min_dist = getprop("/sim/current-view/z-offset-min-m");
|
||||
|
||||
# Round distance to a multiple of the step
|
||||
distance = math.round(std.min(-min_dist, distance + multiple) / multiple) * multiple;
|
||||
setprop("/sim/current-view/z-offset-m", distance);
|
||||
|
||||
gui.popupTip(sprintf("%d meter", abs(getprop("/sim/current-view/z-offset-m"))));
|
||||
</script>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button n="4">
|
||||
<binding n="0">
|
||||
<script></script>
|
||||
</binding>
|
||||
<binding n="1">
|
||||
<condition>
|
||||
<property>/sim/current-view/can-change-z-offset</property>
|
||||
</condition>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var distance = getprop("/sim/current-view/z-offset-m");
|
||||
var multiple = getprop("/sim/current-view/z-offset-dec-step");
|
||||
var max_dist = getprop("/sim/current-view/z-offset-max-m");
|
||||
|
||||
# Round distance to a multiple of the step
|
||||
distance = math.round(std.max(-max_dist, distance + multiple) / multiple) * multiple;
|
||||
setprop("/sim/current-view/z-offset-m", distance);
|
||||
|
||||
gui.popupTip(sprintf("%d meter", abs(getprop("/sim/current-view/z-offset-m"))));
|
||||
</script>
|
||||
</binding>
|
||||
</button>
|
||||
</mode>
|
||||
|
||||
</mouse>
|
||||
|
||||
</PropertyList>
|
||||
@@ -0,0 +1,218 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Copyright (C) 2008 Alex (D-HUND)
|
||||
Copyright (C) 2009 Vivian Meazza
|
||||
Copyright (c) 2015 onox
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<current-view>
|
||||
<view-number type="int">1</view-number>
|
||||
</current-view>
|
||||
|
||||
<chase-distance-m type="double">-400.0</chase-distance-m>
|
||||
|
||||
<view n="0">
|
||||
<name>Cockpit View</name>
|
||||
<enabled type="bool">false</enabled>
|
||||
</view>
|
||||
|
||||
<view n="1">
|
||||
<name>Helicopter View</name>
|
||||
<config>
|
||||
<pitch-offset-deg>-5</pitch-offset-deg>
|
||||
<target-y-offset-m type="double">150</target-y-offset-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="2">
|
||||
<name>Chase View</name>
|
||||
<enabled type="bool">false</enabled>
|
||||
</view>
|
||||
|
||||
<view n="5">
|
||||
<name>Chase View Without Yaw</name>
|
||||
<enabled type="bool">false</enabled>
|
||||
</view>
|
||||
|
||||
<view n="100">
|
||||
<name>Hangar View</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">true</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>2</x-offset-m><!-- right -->
|
||||
<y-offset-m>15</y-offset-m><!-- up -->
|
||||
<z-offset-m>113</z-offset-m><!-- back -->
|
||||
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="101">
|
||||
<name>Phalanx Forward Left</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">false</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>-21.1147</x-offset-m><!-- right -->
|
||||
<y-offset-m>16.8345</y-offset-m><!-- up -->
|
||||
<z-offset-m>-121.2666</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>90</heading-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="102">
|
||||
<name>Phalanx Forward Right</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">false</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>23.1336</x-offset-m><!-- right -->
|
||||
<y-offset-m>16.6478</y-offset-m><!-- up -->
|
||||
<z-offset-m>-112.684</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>90</heading-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="103">
|
||||
<name>Phalanx Aft</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">false</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>23.3165</x-offset-m><!-- right -->
|
||||
<y-offset-m>18.1198</y-offset-m><!-- up -->
|
||||
<z-offset-m>134.344</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>90</heading-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="106">
|
||||
<name>Flight Deck Aft View</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">false</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>10</x-offset-m><!-- right -->
|
||||
<y-offset-m>21.925</y-offset-m><!-- up -->
|
||||
<z-offset-m>42</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>163</heading-offset-deg>
|
||||
<pitch-offset-deg>5</pitch-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="107">
|
||||
<name>Flight Deck Forward View</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">false</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>0</x-offset-m><!-- right -->
|
||||
<y-offset-m>21.925</y-offset-m><!-- up -->
|
||||
<z-offset-m>-35</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>180</heading-offset-deg>
|
||||
<pitch-offset-deg>10</pitch-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="108">
|
||||
<name>Bubble View</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">true</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>4.1</x-offset-m><!-- right -->
|
||||
<y-offset-m>20.325</y-offset-m><!-- up -->
|
||||
<z-offset-m>-93</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>180</heading-offset-deg>
|
||||
<pitch-offset-deg>0</pitch-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="109">
|
||||
<name>Goofers' View</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">false</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>27.074</x-offset-m><!-- right -->
|
||||
<y-offset-m>35.3325</y-offset-m><!-- up -->
|
||||
<z-offset-m>42.67</z-offset-m><!-- back -->
|
||||
|
||||
<heading-offset-deg>136</heading-offset-deg>
|
||||
<pitch-offset-deg>-11</pitch-offset-deg>
|
||||
<default-field-of-view-deg>40</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
<view n="110">
|
||||
<name>Primary Flight Control View</name>
|
||||
<type>lookfrom</type>
|
||||
<internal type="bool">true</internal>
|
||||
<config>
|
||||
<from-model type="bool">true</from-model>
|
||||
<from-model-idx type="int">0</from-model-idx>
|
||||
|
||||
<x-offset-m>23.2669</x-offset-m><!-- right -->
|
||||
<y-offset-m>35.082</y-offset-m><!-- up -->
|
||||
<z-offset-m>20.1064</z-offset-m><!-- back -->
|
||||
|
||||
<pitch-offset-deg>-5</pitch-offset-deg>
|
||||
<default-field-of-view-deg>60</default-field-of-view-deg>
|
||||
<ground-level-nearplane-m type="double">0.1f</ground-level-nearplane-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
</PropertyList>
|
||||
Reference in New Issue
Block a user