[General Purpose] Manually empty and reload ammo
- You can now use the shortcut key to manually empty and reload ammo for units. Aircraft still needs to return to the airport to reload.
CanManualReloadcontrols whether this type of techno can manually empty and reload ammo.CanManualReload.WhenFullcontrols whether can manually empty and reload ammo when the ammo is full.CanManualReload.ResetROFcontrols whether need to reset rearm timer when manually empty and reload ammo.CanManualReload.DetonateWarheadcontrols whether need to detonate a warhead at the techno's location withDamage=Ammowhen manually empty and reload ammo.CanManualReload.DetonateConsumecontrols whetherCanManualReload.DetonateWarheadrequire the techno to have more ammo than this value (or equal to) before reloading in order to detonate.- For shortcut keys’ localization add
TXT_MANUAL_RELOADandTXT_MANUAL_RELOAD_DESCinto your.csffile.
In rulesmd.ini:
[SOMETECHNO] ; TechnoType
CanManualReload=false ; boolean
CanManualReload.WhenFull=false ; boolean
CanManualReload.ResetROF=true ; boolean
CanManualReload.DetonateWarhead= ; WarheadType
CanManualReload.DetonateConsume=0 ; integer
Since it will empty the ammunition first, it will use EmptyReload and EmptyReloadAmount.
You can also combine CanManualReload, NoAmmoWeapon, FeedbackWeapon and AttachEffect to make some special attack effects.
Nightly build for this pull request:
- compiled-dll-969217913fa59428046163464b9c91c6a6e614bd.zip These artifacts will expire in 90 days and will not be available for download after that time.
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.
What inspired this idea?
What inspired this idea?
A unit that does not require ammunition and can overload (just like a skill), or a unit consumes a lot in the first round but the sustained firepower is insufficient. The combination I first talked about was wave force artillery.
is it possible to add a shortcut to trigger this by deploy command? Think that'll be easier to be used by players than adding a new hotkey
However, Ammo may not be a commonly used springboard. Perhaps detonating warheads on units or something similar would be more universal?
Yes, so there is CanManualReload.DetonateWarhead.