Walker: fix a Bug while walking in southern Hemisphere, include file now
loadable via commandline for inclusion in every Aircraft
|
@ -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>
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 186 KiB |
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 251 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 45 KiB |
|
@ -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 {
|
||||
|
|