1
0
Fork 0
fgdata/Aircraft/Generic/Human/Models/walker.xml
TheFGFSEagle edf4077402 Add compositor flashlight to the walker to replace the ALS one from Effects/model-combined
See: https://sourceforge.net/p/flightgear/codetickets/2853/

Squashed commit of the following:

commit 28d4891e613f0ec14e13da2db3a1dd294ef0d922
Author: hbeni <beni@hallinger.org>
Date:   Tue Jan 9 08:03:40 2024 +0100

    Walker menu item label changed

    fix #2655
    see: https://sourceforge.net/p/flightgear/codetickets/2655/

commit 61adecd3b7d706ef13462e855ba9c141a8d0995b
Author: hbeni <beni@hallinger.org>
Date:   Mon Jan 8 08:43:36 2024 +0100

    Walker flashlight moved to own XML file and renamed colour-attributes to color

commit ef7c6119506368abc02d9ee0c239d6fa6b0ad6af
Author: hbeni <beni@hallinger.org>
Date:   Sun Jan 7 16:53:11 2024 +0100

    Walker/Flashlight: add CTRL+F as default keybind to toggle modes

commit 55d62498e5a86aa83d0447cce99ff054c0596076
Author: hbeni <beni@hallinger.org>
Date:   Sun Jan 7 16:25:45 2024 +0100

    Dimmed walker flashlight, so it better corresponds to the old c172 one

commit 0c8bc8a6c1c6c07308ddfb4d73ca6cf92fe40cae
Author: hbeni <beni@hallinger.org>
Date:   Sun Jan 7 14:46:47 2024 +0100

    Walker: Add a flashlight

    This adds a compositor based flashlight to the walker model.
    The flashlight currently has three modes: off/white/red.
    It can be toggled using the walker menu entry.
2024-01-09 22:24:09 +01:00

119 lines
2.7 KiB
XML

<?xml version="1.0"?>
<PropertyList include="equipment/flashlight.xml">
<!--
<nasal>
<load>
update.add("Aircraft/Generic/Human/Models/Themes", "sim/multiplay/generic/string[10]");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
-->
<model>
<name>male</name>
<path>Aircraft/Generic/Human/Models/walker-inc.xml</path>
</model>
<animation>
<type>select</type>
<object-name>male</object-name>
<condition>
<equals>
<property>sim/walker/gender</property>
<value>0</value>
</equals>
</condition>
</animation>
<!--
<animation>
<type>scale</type>
<object-name>male</object-name>
<x-offset>1.1</x-offset>
<y-offset>1.0</y-offset>
<z-offset>0.9</z-offset>
</animation>
-->
<model>
<name>female</name>
<path>Aircraft/Generic/Human/Models/walker-inc.xml</path>
<overlay>
<models>
<char0-path>Aircraft/Generic/Human/Models/amelia.xml</char0-path>
<char1-path>Aircraft/Generic/Human/Models/amelia.xml</char1-path>
<char2-path>Aircraft/Generic/Human/Models/amelia.xml</char2-path>
<outfit0>Aircraft/Generic/Human/Models/outfit/default-f.xml</outfit0>
<outfit1>Aircraft/Generic/Human/Models/outfit/flightsuit-f.xml</outfit1>
<outfit2>Aircraft/Generic/Human/Models/outfit/airliner-f.xml</outfit2>
<outfit3>Aircraft/Generic/Human/Models/outfit/airliner-f.xml</outfit3>
</models>
<limbs>
<chest-x>-0.0112992</chest-x>
<chest-y>0.0</chest-y>
<chest-z>0.1676192</chest-z>
<head-x>0.0250915</head-x>
<head-y>0.0</head-y>
<head-z>0.577579</head-z>
<shoulder-x>0.0322284</shoulder-x>
<shoulder-y-l>-0.152689</shoulder-y-l>
<shoulder-y-r>0.152689</shoulder-y-r>
<shoulder-z>0.496473</shoulder-z>
<elbow-x>0.0544844</elbow-x>
<elbow-y-l>-0.439449</elbow-y-l>
<elbow-y-r>0.439449</elbow-y-r>
<elbow-z>0.492835</elbow-z>
<hand-x>0.0327848</hand-x>
<hand-y-l>-0.685121</hand-y-l>
<hand-y-r>0.685121</hand-y-r>
<hand-z>0.487592</hand-z>
<leg-x>-0.0364763</leg-x>
<leg-y-l>-0.0527938</leg-y-l>
<leg-y-r>0.0527938</leg-y-r>
<leg-z>-0.0216712</leg-z>
<knee-x>0.00578977</knee-x>
<knee-y-r>0.0886923</knee-y-r>
<knee-y-l>-0.0886923</knee-y-l>
<knee-z>-0.377503</knee-z>
<foot-x>0.0806138</foot-x>
<foot-y-l>-0.110317</foot-y-l>
<foot-y-r>0.110317</foot-y-r>
<foot-z>-0.872164</foot-z>
</limbs>
</overlay>
</model>
<animation>
<type>select</type>
<object-name>female</object-name>
<condition>
<equals>
<property>sim/walker/gender</property>
<value>1</value>
</equals>
</condition>
</animation>
<!--
<animation>
<type>scale</type>
<object-name>female</object-name>
<x-offset>1.07</x-offset>
<y-offset>1.082</y-offset>
<z-offset>1.082</z-offset>
</animation>
0.075 up
0.0092 aft
-->
</PropertyList>