You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Unify deploy allow checks so they are only checked in one place.
- Move functionality that could hypothetically be called from multiple locations to TechnoExt functions.
- Extend auto-deploy / deploy blocking to all vehicle deploy functions.
- Remove Hooks.Unload.cpp as it had too few remaining hooks to be worth keeping around.
- In general leave the functionality in such state that it will be easier to extend to other types if need be.
### `IsSimpleDeployer` vehicle ammo change on deploy
1736
1736
1737
-
-`Ammo.AddOnDeploy` determines the number of ammo added or substracted on unit deploy.
1738
-
1739
-
In `rulesmd.ini`:
1740
-
```ini
1741
-
[SOMEVEHICLE]; VehicleType
1742
-
Ammo.AddOnDeploy=0 ; integer
1743
-
```
1744
-
1745
-
```{warning}
1746
-
Due to technical constraints, units that use `Convert.Deploy` from [Ares' Type Conversion](https://ares-developers.github.io/Ares-docs/new/typeconversion.html) to change type with `Ammo.AddOnDeploy` will add or substract ammo despite of convertion success. This will also happen when unit exits tank bunker.
1747
-
```
1748
-
1749
-
### `IsSimpleDeployer` vehicle auto-deploy / deploy block on ammo change
1750
-
1751
-
- Vehicle deployment can now be affected by ammo count.
1752
-
-`Ammo.AutoDeployMinimumAmount` determines the minimal number of ammo at which a vehicle converts/deploys automatically.
1753
-
-`Ammo.DeployUnlockMinimumAmount` determines the minimal number of ammo that unlocks issuing vehicle converting/deploying command.
1754
-
-`Ammo.AutoDeployMaximumAmount` and `Ammo.DeployUnlockMaximumAmount` behave analogically.
1755
-
- Setting a negative number will disable ammo count check.
1756
-
1737
+
-`Ammo.AddOnDeploy` determines the number of ammo added or subtracted after the vehicle has deployed or undeployed.
1738
+
- Ammo count cannot go below 0 or above the maximum ammo for vehicle's type (in case the deploy results in type conversion, type is the one after the conversion).
1739
+
1757
1740
In `rulesmd.ini`:
1758
1741
```ini
1759
-
[SOMEVEHICLE]; VehicleType
1760
-
Ammo.AutoDeployMinimumAmount=-1 ; integer
1761
-
Ammo.AutoDeployMaximumAmount=-1 ; integer
1762
-
Ammo.DeployUnlockMinimumAmount=-1 ; integer
1763
-
Ammo.DeployUnlockMaximumAmount=-1 ; integer
1764
-
```
1765
-
1766
-
```{warning}
1767
-
Auto-deploy feature requires `Convert.Deploy` from [Ares' Type Conversion](https://ares-developers.github.io/Ares-docs/new/typeconversion.html) to change type. Unit without it will constantly use deploy command on self until ammo is changed.
1742
+
[SOMEVEHICLE]; VehicleType
1743
+
Ammo.AddOnDeploy=0 ; integer
1768
1744
```
1769
1745
1770
1746
### IsSimpleDeployer facing and animation customization
AmphibiousUnload= ; boolean, default to [General] -> AmphibiousUnload
2007
2007
```
2008
2008
2009
+
### Automatic deploy and blocking deploying based on ammo
2010
+
2011
+
- It is now possible for deployable vehicles (`DeploysInto`, `DeployFire`, `IsSimpleDeployer` and those that have passengers) to automatically deploy or prevent deploying based on their current ammo.
2012
+
-`Ammo.AutoDeployMinimumAmount` & `Ammo.AutoDeployMaximumAmount` determine minimum and maximum ammo the vehicle should have for it to automatically deploy. Negative values disable the check.
2013
+
-`Ammo.DeployUnlockMinimumAmount` & `Ammo.AutoDeployMaximumAmount` determine minimum and maximum ammo the vehicle should have for deploying to be available in general. Negative values disable the check.
2014
+
2015
+
In `rulesmd.ini`:
2016
+
```ini
2017
+
[SOMEVEHICLE]; VehicleType
2018
+
Ammo.AutoDeployMinimumAmount=-1 ; integer
2019
+
Ammo.AutoDeployMaximumAmount=-1 ; integer
2020
+
Ammo.DeployUnlockMinimumAmount=-1 ; integer
2021
+
Ammo.DeployUnlockMaximumAmount=-1 ; integer
2022
+
```
2023
+
2009
2024
### Damaged unit image changes
2010
2025
2011
2026
- When a unit is damaged (health points percentage is lower than `[AudioVisual] -> ConditionYellow` percentage), it now may use different image set by `Image.ConditionYellow` VehicleType.
0 commit comments