Jump to content

Suggestion: Block automatic TC repair/upgrade after recent damage (manual actions still allowed)

Pending 1.6.0

Pepuni.
Pepuni.

Posted

Hi,

I’m using BetterTC on a production Rust server and I’d like to suggest a small improvement related to raid balance.

Currently, automatic repair is correctly blocked after recent damage using SecondsSinceAttacked, but automatic upgrade is not, which allows players to instantly upgrade structures via the TC while being raided.

The behavior I’m aiming for is:

❌ Block ONLY automatic TC actions (auto-repair / auto-upgrade)

⏱️ For X seconds after any building entity takes damage

✅ Still allow all manual actions:

Manual repair with hammer

Manual upgrade

Placing new building pieces

From a code perspective, this could be achieved by applying the same SecondsSinceAttacked check already used in RepairProgress to the upgrade loop in UpdateProgress, without interfering with vanilla mechanics.

This would significantly improve raid balance while keeping manual gameplay intact.

Thanks for your work on the plugin!

ninco90

Posted

The current repair mode, I believe (if I remember correctly), when it detects a block or entity with recent construction damage, doesn't repair that specific block, but continues repairing the rest of the entities.

In your case, I think what you want is for all entities to be checked for recent damage before upgrading, so you can proceed with upgrading the entire base, right?

Alternatively, you want it to stop when it detects recent damage, but of course, that wouldn't be practical either...

And the first option I mentioned would be to perform a double check on all entities, which is perfect for small bases, but might not be practical for large ones... I'd say that for these cases, it's more convenient to use NoEscape or something similar.

2.1m

Downloads

Total number of downloads.

10k

Customers

Total customers served.

145.5k

Files Sold

Total number of files sold.

3.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.