-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Reset timer for Super Weapons #1153
Reset timer for Super Weapons #1153
Conversation
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. |
If you want a model for testing it I posted an example in action of what I'm going to use in my case: [LimboUpgrade_SW01] |
holy mother of god |
Mistake, I left it as |
Moved the variable TimerRestarted into SuperExt. Removed the tag "SW.FirstClickRestartsTimer.AutoFire.ForceDetonation".
… paid money if the operation was aborted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use
false
instead ofno
in documentation. SW.FirstClickRestartsTimer.Cost
should accept both negative and positive values, like in vanilla (also positive/negative refunds).EVA.RestartedTimer
,Message.InsufficientFunds
andMessage.RestartedTimer
should be mentioned in the documentation.
But I don't have good feelings about removing the substraction mandatory part of the money tag. This was createdfor upgrades in mind :-/
Applied feedback. |
I'll close this pull request because there is a desync I can't fix in the hook at 0x6CBCD4 . |
Warhead or Weapon detonation at target cell
tags work with this feature is needed to setSW.FirstClickRestartsTimer.ForceDetonations=yes
.SW.FirstClickRestartsTimer.Cost
soMoney.Amount
isn't recommended here.SW.FirstClickRestartsTimer.AutoFire
launchs the super weapon at the end of the first counter restart. Don't use the tagSW.AutoFire
.SW.FirstClickRestartsTimer.RefundIfAborted
refunds the paid cost if the SW is no longer available if the restarted countdown haven't finished.In
rulesmd.ini
:[SOMESW] ; Super Weapon
SW.FirstClickRestartsTimer=no ; boolean
SW.FirstClickRestartsTimer.AutoFire=no ; boolean
SW.FirstClickRestartsTimer.Cost=0 ; integer, always substract money
SW.FirstClickRestartsTimer.RefundIfAborted=no ; boolean
Message.InsufficientFunds= ; CSF entry key
Message.RestartedTimer= ; CSF entry key
EVA.RestartedTimer= ; EVA entry