Add comm tower to mil depot types

This commit is contained in:
Nikolai V. Chr 2024-04-21 04:20:10 +02:00
parent 9b9c863dc3
commit d877529140
9 changed files with 9598 additions and 0 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -162,6 +162,21 @@
</condition>
</animation>
<model>
<path>Comm-Tower/Comm-Tower.ac</path>
<name>commT</name>
</model>
<animation>
<type>select</type>
<object-name>commT</object-name>
<condition>
<equals>
<property>sim/multiplay/generic/int[17]</property>
<value>21</value>
</equals>
</condition>
</animation>

View File

@ -62,6 +62,7 @@ var PositionUpdater = func () {
if (type == 18) {damage.hp_max=50;damage.hp=damage.hp_max;}
if (type == 19) {damage.hp_max=2500;damage.hp=damage.hp_max;}
if (type == 20) {damage.hp_max=300;damage.hp=damage.hp_max;}
if (type == 21) {damage.hp_max=200;damage.hp=damage.hp_max;}
last_type = type;
} else {
print("Can only switch type when not damaged!!");

View File

@ -135,6 +135,14 @@
<value>16</value>
</binding>
</button>
<button>
<legend>CommTower</legend>
<binding>
<command>property-assign</command>
<property>sim/multiplay/generic/int[17]</property>
<value>21</value>
</binding>
</button>
</group>