1
0
Fork 0

Walker: fix a Bug while walking in southern Hemisphere, include file now

loadable via commandline for inclusion in every Aircraft
This commit is contained in:
dfaber 2013-12-16 21:12:30 +01:00
parent e6c31a1942
commit 0f3788d1b0
10 changed files with 14 additions and 35 deletions

View file

@ -1,20 +0,0 @@
<?xml version="1.0"?>
<PropertyList>
<sim n="0">
<model n="0">
<crew n="0">
<pilot n="0">
<theme-name>Waldo Default</theme-name>
<character>0</character>
<gender>0</gender>
<outfit>0</outfit>
</pilot>
</crew>
</model>
</sim>
</PropertyList>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View file

@ -120,18 +120,7 @@
<foot-y-r>0.1031</foot-y-r>
<foot-z>-0.8852</foot-z>
</limbs>
<animation>
<type>select</type>
<object-name>head</object-name>
<object-name>hair</object-name>
<object-name>eyes</object-name>
<condition>
<not-equals>
<property>sim/current-view/name</property>
<value>Walk View</value>
</not-equals>
</condition>
</animation>
<!-- hip -->
<animation>

View file

@ -58,7 +58,7 @@
</animation>
<model>
<path>Aircraft/Generic/Human/Models/outfit/flightsuit-m.xml</path>
<path>Aircraft/Generic/Human/Models/outfit/flightsuit.xml</path>
<name>Flightsuit</name>
</model>
<animation>

View file

@ -1,6 +1,6 @@
AC3Db
MATERIAL "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0
MATERIAL "trousers" rgb 0.152063 0.144304 0.14815 amb 1 1 1 emis 0 0 0 spec 0 0 0 shi 0 trans 0
MATERIAL "trousers" rgb 0.152063 0.144304 0.14815 amb 1 1 1 emis 0 0 0 spec 0.322712 0.307983 0.321806 shi 128 trans 0
MATERIAL "boots" rgb 0.168753 0.17555 0.210344 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 128 trans 0
MATERIAL "boots.001" rgb 0.168753 0.17555 0.210344 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 128 trans 0
MATERIAL "alu.001" rgb 0.55592 0.55592 0.55592 amb 1 1 1 emis 0 0 0 spec 1 1 1 shi 64 trans 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View file

@ -402,7 +402,15 @@ var ext_mov = func (moved) {
var lat3 = lat_m * ERAD_deg;
var lon3 = lon_m * ERAD_deg / cos(posy1);
posx2 = posx1 - lon3; # heading is offset or reversed west to east
posy2 = (posy1 < 0 ? posy1 - lat3 : posy1 + lat3);
# if (posy1 < 0 ) {
# posy2 = posy1 + lat3;
# print (" South");
# } else {
# posy2 = posy1 + lat3;
# print (" North");
# }
posy2 = posy1 + lat3;
# posy2 = (posy1 < 0 ? posy1 - lat3 : posy1 + lat3);
# southern or northern hemisphere
}
if (falling) { # add movement from aircraft upon jumping
@ -762,6 +770,8 @@ var reinit_walker = func {
setprop("sim/walker/parachute-opened-altitude-ft", 0);
parachute_deployed_sec = 0;
setprop("sim/walker/parachute-opened-sec", 0);
setprop("sim/walker/key-triggers/outside-toggle",1);
walker_model.remove();
}
var init_common = func {