Starting of the winch arm idea.
<?xml version="1.0"?>
<!--
Cargo Towing - Cargo Towing Addon for Flightgear
Written and developed by Wayne Bragg (wlbragg)
Copyright (C) 2020 Wayne Bragg
basecargoset.xml
Version 1.0.0 beta 1/21/2020
Cargo Towing is licensed under the Gnu Public License v3+ (GPLv3+)
-->
<!--
This is the Long Line portion of the cargo hauling capability.
Syncs animation of the cargo and harness to the rope.
Any new cargo model must be included in this file.
Each model also needs to have its own definition file - see cargo1.xml, cargo2.xml, etc.
-->
<PropertyList>
<model>
<path>cub-ground.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 2.0 </z-m>
</offsets>
<condition>
<and>
<!-- flags for animating -->
<property>sim/cargo/cargo1-onhook</property>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</and>
</condition>
</model>
<model>
<path>cubharness.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 1.5 </z-m>
</offsets>
<condition>
<and>
<property>sim/cargo/cargo1-onhook</property>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/rope/pulling</property>
</not>
</and>
</condition>
</model>
<model>
<path>shipping-container-big.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 2.0 </z-m>
</offsets>
<condition>
<and>
<or>
<!-- same model used three times, see cargo2.xml. cargo3.xml, cargo4,xml-->
<property>sim/cargo/cargo2-onhook</property>
<property>sim/cargo/cargo3-onhook</property>
<property>sim/cargo/cargo4-onhook</property>
</or>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</and>
</condition>
</model>
<model>
<path>shippingcontainerbigharness.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 1.5 </z-m>
</offsets>
<condition>
<and>
<or>
<property>sim/cargo/cargo2-onhook</property>
<property>sim/cargo/cargo3-onhook</property>
<property>sim/cargo/cargo4-onhook</property>
</or>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/rope/pulling</property>
</not>
</and>
</condition>
</model>
<model>
<path>ground-tank.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 2.0 </z-m>
</offsets>
<condition>
<and>
<property>sim/cargo/cargo5-onhook</property>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</and>
</condition>
</model>
<model>
<path>groundtankharness.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 1.5 </z-m>
</offsets>
<condition>
<and>
<property>sim/cargo/cargo5-onhook</property>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/rope/pulling</property>
</not>
</and>
</condition>
</model>
<model>
<path>ground-tank-large.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 2.0 </z-m>
</offsets>
<condition>
<and>
<property>sim/cargo/cargo6-onhook</property>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</and>
</condition>
</model>
<model>
<path>groundtanklargeharness.ac</path>
<offsets>
<x-m>-0.175 </x-m>
<y-m>-0.1 </y-m>
<z-m> 1.5 </z-m>
</offsets>
<condition>
<and>
<property>sim/cargo/cargo6-onhook</property>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/rope/pulling</property>
</not>
</and>
</condition>
</model>
...
</PropertyList>
# Cargo Towing - Cargo Towing capability for Flightgear
# Written and developer by Wayne Bragg (wlbragg)
# Copyright (C) 2020 Wayne Bragg
# cargoset.nas
# Version 1.0.0 beta 1/21/2020
# Cargo Towing is licensed under the Gnu Public License v3+ (GPLv3+)
#################### inject cargo models into the scene ####################
var cargo1 = {};
var cargo2 = {};
var cargo3 = {};
var cargo4 = {};
var cargo5 = {};
var cargo6 = {};
var cargo7 = {};
var cargo8 = {};
var cargo9 = {};
var cargo10 = {};
var cargo11 = {};
var cargo12 = {};
var cargo13 = {};
var cargo14 = {};
#set initial position of the cargo models out of site and out of range
var lat = getprop("/position/latitude-deg")-.0002;
var lon = getprop("/position/longitude-deg")-.0002;
var alt = -999;
#property tree location of cargo models
var model_path = "[addon=org.flightgear.addons.CGTOW]Models/basecargoset/";
# offset ft cargoheight m harnessheight m
#container-big -3.879 m = 12.72 2.66 6.10
#cub-ground -3.209 m = 10.53 1.83 5.98
#ground-tank -3.737 m = 12.26 2.42 6.44
#ground-tank-lg -5.884 m = 18.58 4.18 6.02
#ground-tank-tall -4.976 m = 16.32 3.69 6.02
#tank-stand -3.562 m = 11.68 2.12 6.08
#pine-tree -3.334 m = 10.93 2.08 6.12
#dump-truck -6.937 m = 22.76 9.3 10.59
#micro-relay -7.257 m = 23.81 5.98 6.06
#micro-wave -8.101 m = 26.58 5.99 6.99
#tower-sec-one -14.053 m = 46.14 12.81 8.52
#tower-sec-two -14.129 m = 46.35 12.94 8.52
#tower-sec-three -14.323 m = 46.99 13.06 8.52
#tower-sec-four -14.416 m = 47.29 13.24 8.52
#tower-sec-five -14.436 m = 47.36 13.22 8.52
#tower-sec-six -14.435 m = 47.35 13.22 8.52
#tower-sec-seven -14.469 m = 47.47 13.25 8.52
#tower-radio -162.331 m =532.58 173.63 8.52
#radio-tower-sec -26.058 m = 85.49 24.84 16.75
#mobile-pod -4.059 m = 13.32 2.86 14.39
# there are three types of cargo depending on connection capability
# 1) long line only
# (stack = 0, offset = distance from blender 0 z to cargo bottom z), alt = alt-90)
# 2) long line and hard docked
# (stack = 0, offset = distance from blender 0 z to cargo bottom z), alt = def of -999
# 3) stackable
# (stack = position of object it can stack on)
# (can be either 1 or 2 connection type, but is implemented only when in long line)
# TODO: limit stackable to on long line only?
#use height in feet or *3.28 for ground
#use height in feet or *3.28 or drop height for connection to stack
#inject new cargo models into the scene stack drop height
# itemnum index name location index height weight harness
cargo1 = place_model( "1", 0, "cub-ground", model_path, 0, 0.0, 1200, 1.83, 5.98, lat, lon, alt, 0, 0, 0, -1);
cargo2 = place_model( "2", 1, "container-big", model_path, 8, 2.66, 1500, 2.66, 6.10, lat, lon, alt, 0, 0, 0, -1);
cargo3 = place_model( "3", 2, "container-big", model_path, 8, 2.66, 1000, 2.66, 6.10, lat, lon, alt, 0, 0, 0, -1);
cargo4 = place_model( "4", 3, "container-big", model_path, 8, 2.66, 5000, 2.66, 6.10, lat, lon, alt, 0, 0, 0, -1);
cargo5 = place_model( "5", 4, "ground-tank", model_path, 8, 6.44, 2000, 2.42, 6.44, lat, lon, alt, 0, 0, 0, -1);
cargo6 = place_model( "6", 5, "ground-tank-lg", model_path, 8, 6.02, 4200, 4.18, 6.02, lat, lon, alt-90, 0, 0, 0, -1);
cargo7 = place_model( "7", 6, "ground-tank-tall", model_path, 8, 6.02, 3000, 3.69, 6.02, lat, lon, alt-90, 0, 0, 0, -1);
cargo8 = place_model( "8", 7, "tank-stand", model_path, 8, 6.08, 250, 2.12, 6.08, lat, lon, alt-90, 0, 0, 0, -1);
cargo9 = place_model( "9", 8, "dump-truck", model_path, 0, .5, 10000, 5.69,15.45, lat, lon, alt-90, 0, 0, 0, -1);
cargo10 = place_model("10", 9, "tower-radio", model_path, 0, 0.0, 5000, 161, 8.52, lat, lon, alt-90, 0, 0, 0, -1);
cargo11 = place_model("11", 10, "mobile-pod", model_path, 0, 0.0, 1200, 2.86,14.39, lat, lon, alt, 0, 0, 0, -1);
cargo12 = place_model("12", 11, "hvac", model_path, 0, 7.64, 24000, 7.64,15.45, lat, lon, alt, 0, 0, 0, -1);
cargo13 = place_model("13", 12, "tank", model_path, 7, 1.00, 500, 3.00, 6.08, lat, lon, alt-90, 0, 0, 0, -1);
cargo14 = place_model("14", 13, "ball", model_path, -1, 0.564, 1200, 0.76, 0.01, lat, lon, alt-90, 0, 0, 0, -1);
cargo_init();
#});
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Cargo Towing - Cargo Towing Addon for Flightgear
Written and developed by Wayne Bragg (wlbragg)
Copyright (C) 2020 Wayne Bragg
cargo1.xml
Version 1.0.0 beta 1/21/2020
Cargo Towing is licensed under the Gnu Public License v3+ (GPLv3+)
-->
<!--
This is the model injected into the scene for the cargo hauling capability.
Any new cargo must be have a file like this one and a definition in Cargo-Hauling/long-line.xml.
-->
<PropertyList>
<model>
<path>cub-ground.ac</path>
<name>cub-ground</name>
<condition>
<and>
<property>sim/cargo/enabled</property>
<or>
<not>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</not>
<and>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<property>sim/cargo/hitsground</property>
<property>sim/cargo/cargo1-onhook</property>
</and>
<and>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/cargo1-onhook</property>
</not>
</and>
</or>
</and>
</condition>
</model>
<!--animation>
<object-name>cub-ground</object-name>
<enable-hot type="bool">false</enable-hot>
</animation-->
</PropertyList>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This is the model injected into the scene for the cargo hauling capability.
Any new cargo must be have a file like this one and a definition in Cargo-Hauling/long-line.xml.
-->
<PropertyList>
<model>
<path>shipping-container-big.ac</path>
<name>shipping-container-big</name>
<condition>
<and>
<property>sim/cargo/enabled</property>
<or>
<not>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</not>
<and>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<property>sim/cargo/hitsground</property>
<property>sim/cargo/cargo2-onhook</property>
</and>
<and>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/cargo2-onhook</property>
</not>
</and>
</or>
</and>
</condition>
</model>
<!--animation>
<object-name>shipping-container-big</object-name>
<enable-hot type="bool">false</enable-hot>
</animation-->
</PropertyList>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This is the model injected into the scene for the cargo hauling capability.
Any new cargo must be have a file like this one and a definition in Cargo-Hauling/long-line.xml.
-->
<PropertyList>
<model>
<path>shipping-container-big.ac</path>
<name>shipping-container-big</name>
<condition>
<and>
<property>sim/cargo/enabled</property>
<or>
<not>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
</not>
<and>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<property>sim/cargo/hitsground</property>
<property>sim/cargo/cargo2-onhook</property>
</and>
<and>
<property>sim/gui/dialogs/aicargo-dialog/connection</property>
<not>
<property>sim/cargo/cargo2-onhook</property>
</not>
</and>
</or>
</and>
</condition>
</model>
<!--animation>
<object-name>shipping-container-big</object-name>
<enable-hot type="bool">false</enable-hot>
</animation-->
</PropertyList>
<sets n="4">
<name type="string">NewSetName</name>
<path type="string">newfoldername</path>
</sets>
<setselected type="string">4</setselected>
<model>
<name>newfoldernamecargoset</name>
<path>[addon=org.flightgear.addons.CGTOW]Models/newfoldernamecargoset/newfoldernamecargoset.xml</path>
<condition>
<equals>
<property>/sim/cargo/setselected</property>
<value>4</value>
</equals>
</condition>
</model>
may help re-surrect the old "christmas tree" challenge
Users browsing this forum: No registered users and 0 guests