Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[General Purpose] Manually empty and reload ammo #1493

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

CrimRecya
Copy link
Contributor

@CrimRecya CrimRecya commented Jan 15, 2025

  • 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.
    • CanManualReload controls whether this type of techno can manually empty and reload ammo.
    • CanManualReload.ResetROF controls whether need to reset rearm timer when manually empty and reload ammo.
    • CanManualReload.DetonateWarhead controls whether need to detonate a warhead at the techno's location with 1 damage when manually empty and reload ammo.
    • CanManualReload.DetonateConsume controls whether CanManualReload.DetonateWarhead require 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_RELOAD and TXT_MANUAL_RELOAD_DESC into your .csf file.

In rulesmd.ini:

[SOMETECHNO]                        ; TechnoType
CanManualReload=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.

Copy link

Nightly build for this pull request:

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.

@Speederovsky
Copy link

What inspired this idea?

@CrimRecya
Copy link
Contributor Author

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.

@CrimRecya CrimRecya changed the title Manually empty and reload ammo [General Purpose] Manually empty and reload ammo Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants