General > Developers Corner
Question on addon feasibility
Buzzkill:
Greetings all. Quick-ish question for you on an idea I've had bouncing around in my head.
A little back story. I was fairly involved in the scene about 10 years ago, doing development on MetaMod with Hulu and to some extent AdminMod. I recently got pulled back in when I found my kids playing GMod (the circle is now complete!).
So I fired up a junk PC and have been screwing around with a sandbox server. Given the low CPU specs, spam is something I'm paying close attention to. I'm currently using PatchProtect, which is my favorite-of-the-day, and it does a decent job, but the server can still get run into the ground on occasion. I was thinking about a more brute force approach....
Say an addon monitored performance and if it detected CPU > X for more than Y periods, it began intelligently removing props. In theory it sounds like it has some possibilities, but I was wondering if anyone had already tried this and run into some issue that isn't obvious to me. Any thoughts or insight is appreciated.
Thanks for the time.
Buzz / Mike
Neku:
I'm not sure if you can retrieve CPU usage in Garry's Mod.
There are plenty of other alternatives for removing props, just Google "gmod anti prop abuse" or something along those lines.
XxLMM13xX:
DarkRP servers come with a anti pro spam unit if that's what you mean
Buzzkill:
Thanks guys. I realize that there are a number of anti-spam, prop protection tools. I've played with Simple Prop Protection, Falco's and Patch Protect. They all do a good job of restricting props and throttling spam. However, it seems there'd be some value in attacking the problem from the other end (ie, when the server gets slammed). If processor usage stats aren't available through GMod then it's probably a no-go then.
MrPresident:
We had an addon that we made at one point that would disable physics if the game started lagging. You can compare CurTime with RealTime or something like that to see if it's starting to slow. I don't quite remember.
Navigation
[0] Message Index
[#] Next page
Go to full version