Skip to content

Add a global limit for e2s#3627

Merged
Astralcircle merged 5 commits into
wiremod:masterfrom
Mikey-Mikey:master
Jun 15, 2026
Merged

Add a global limit for e2s#3627
Astralcircle merged 5 commits into
wiremod:masterfrom
Mikey-Mikey:master

Conversation

@Mikey-Mikey

Copy link
Copy Markdown
Contributor

Title is self-explanatory, adds a ConVar for global limits and removes the highest usage e2 when the global limit is hit.
CVar: wire_expression2_quota_globalmax

@Astralcircle Astralcircle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to create a separate Tick hook for this, just sum up all the time received with getTotalTime and create a function to kill the heaviest chip without specifying the owner

@Mikey-Mikey

Copy link
Copy Markdown
Contributor Author

ah true, for some reason i glossed past the E2_Think hook.

@Mikey-Mikey

Copy link
Copy Markdown
Contributor Author

so did you want me to just basically move it into E2_Think?

@Astralcircle

Copy link
Copy Markdown
Contributor

so did you want me to just basically move it into E2_Think?

Yes

@Mikey-Mikey

Copy link
Copy Markdown
Contributor Author

changed it btw.

@Astralcircle Astralcircle merged commit 41f15b4 into wiremod:master Jun 15, 2026
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