Skip to content

Commit

Permalink
Merge pull request #13 from alexeijd/master
Browse files Browse the repository at this point in the history
Small fixes to M1 & A-10
  • Loading branch information
bhugh authored Sep 24, 2019
2 parents 23b707c + 0e41de2 commit a2303b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<PropertyList include="A-10-bombableinclude.xml">


<path>../../../../Aircraft/A-10-Bombable/Models/A10-004-015l3.ac</path>
<texture-path>../../../../Aircraft/A-10-Bombable/Models</texture-path>
<path>Aircraft/A-10-Bombable/Models/A10-004-015l3.ac</path>
<texture-path>Aircraft/A-10-Bombable/Models</texture-path>


<!-- Select the external loads as appropriate -->
Expand Down
8 changes: 4 additions & 4 deletions AI/Aircraft/M1-Abrams-Bombable/m1-bombableinclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#listener function to change livery color if value is change (via dialogue for instance)
var m1_change_color = func(myTankNodeName) {
return;
# return;
var damageValue = getprop(""~myTankNodeName~"/bombable/attributes/damage");
if (damageValue==nil ) damageValue=0;
Expand All @@ -30,9 +30,9 @@
else var base_color = "Models/camo";
bombable.set_livery (cmdarg().getPath(),
base_color~".png",
[ base_color~".png",
base_color~"2.png",
base_color~"3.png");
base_color~"3.png" ]);
if((damageValue >= 0.15) and (damageValue < 1.0))
Expand Down Expand Up @@ -386,4 +386,4 @@
]]>
</unload>
</nasal>
</PropertyList>
</PropertyList>
6 changes: 3 additions & 3 deletions AI/Aircraft/SPAD-VII-Bombable/Models/spadvii.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<description>S.P.A.D. VII</description>
<author>Emmanuel BARANGER (3D/FDM), Brent Hugh (Bombable)</author>

<path>../../../../Aircraft/SPAD-VII-Bombable/Models/spadvii.ac</path>
<texture-path>../../../../Aircraft/SPAD-VII-Bombable/Models/Liveries</texture-path>
<path>Aircraft/SPAD-VII-Bombable/Models/spadvii.ac</path>
<texture-path>Aircraft/SPAD-VII-Bombable/Models/Liveries</texture-path>


<animation>
Expand Down Expand Up @@ -169,4 +169,4 @@



</PropertyList>
</PropertyList>

0 comments on commit a2303b5

Please sign in to comment.