Skip to content

Hivebot Rebalance#561

Open
Ossa88 wants to merge 4 commits intoPentestSS13:masterfrom
Ossa88:hivebots
Open

Hivebot Rebalance#561
Ossa88 wants to merge 4 commits intoPentestSS13:masterfrom
Ossa88:hivebots

Conversation

@Ossa88
Copy link
Collaborator

@Ossa88 Ossa88 commented Feb 13, 2026

About The Pull Request

This is wave 1 of a Hivebot spawning rebalance.

Waste planets currently spawn, on average:
100-150 free standing hivebots
10-20 Hivebot fabricators

Each Hivebot Fabricator spawns 5 hivebots before it goes into its wait mode.
There is no maximum that a single fabricator can spawn, it just waits until one of its 5 has died.

This means, on average a waste planet can spawn 100-300 hivebots.
This causes a massive load on the server in both AI Behavior Calculations and Mob Calculations.

The first wave solution:

First, Fabricators have had their maximum units at a single time reduced to 4.
Second, Fabricators have a resource system that it spends on units. Stronger units cost more.

This means that the maximum units a fabricator can produce is between 2 and 10. 2 Core Hivebots, or 10 basic.

Fabricators have been given more sprites to indicate if they are in idle mode (waiting for a slave hivebot to die) or depleted their resources.
On average this reduced a hivebot planet by about 20%

But, to help counter this. Hivebots that can spawn had their rates adjusted:
Cores are 5x more likely Than before (1 -> 5)
Mechanics are 2x more likely Than before (5 -> 10)
Strongs are 2x more likely Than before (5 -> 10)
Rapids are 1.5x more likely Than before (10 -> 15)
Ranged are 0.25 less likely Than before (40 -> 30)
Basic are 0.25 less likely Than before (40 -> 30)

(The old roll was a random 101... the new is a random 100)

Second wave might be to adjust the Wasteplanet generation rates on hivebots. As this alone might create 100-200 by its self.

Why It's Good For The Game

Hivebots double dip in server load. They are both included inside the mobs sub controller and the ai behavior sub controller. This means the server has to work extra hard for these mobs.

Changelog

🆑
balance: Attempts to rebalance hivebot spawn rates to reduce server load
/:cl:

@Constellado Constellado added the Modularization Requested Additional Modularization might be required/requested or fixes to modularization. label Feb 14, 2026
@Constellado
Copy link
Collaborator

Constellado commented Feb 14, 2026

I can see a ton of this (if not all of this) being able to be modularised! I added the modularisation requested tag as a result.

@Ossa88
Copy link
Collaborator Author

Ossa88 commented Feb 14, 2026

I can see a ton of this (if not all of this) being able to be modularised! I added the modularisation requested tag as a result.

Oh a ton can... I was just getting it working first then was gonna do modulation after the fact...

The big issue we have right now is pentest.dme being edited by too many tms lol... So since this was contained I decided to keep it there for testing

@Ossa88
Copy link
Collaborator Author

Ossa88 commented Feb 15, 2026

PR #526 , also adjusts some hivebot stuff. But should not conflict with these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Change Modularization Requested Additional Modularization might be required/requested or fixes to modularization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants