[EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
1 Attachment(s)
Update:
Quote:
Without further ado (or any infact) I present CBaseServer tools. Credit for the idea and research for this goes entirely to Nephyrin. I just stole it and made it usable for SourceMod. Tools is probably a bit elaborate considering its a single hook. Hooks the engine version of client connect and can provide the steamid of the connecting client. I have no idea how secure this is (hasn't been auth'd) or how easy it is to spoof. I would not recommend using this to auth sourcemod admins. The attached plugin will check if a client is admin and kick a client if they are (so works perfectly even if the server is entirely full - console connect only). It works as a simple reserved slots plugin with no advanced features or comparing the confirmed steamid once the client has connected. If I get permission to make this part of SourceMod core, i'll add this to the base reserved slots. Until then feel free to expand on my example to suit your needs. Also in the code is my detour class that i've slowly been putting together, so if you want to try one, this should make it easier. (`k4rim and crimson - looking at you here) Note: If you are using threaded sql admins this won't work because It cant instantly check if a steamid is an admin. Source Code Compatible with EP1 (Insurgency, etc.), Orangebox mods (AoC, PvKII, etc.), and Valve's new Orangebox (TF2, DODS, CSS OB). It is recommended to remove all previous dll/so, autoload, and gamedata files relating to the extension if upgrading. |
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
just looked at it fast, this is sooooo nice!!!!! thx alot man.
|
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Goodjob :D.
|
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Master pRED at work. Good job!
|
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Awesome work! Think this has finally converted me to sourcemod...
Edit: Meant to say, tested this on a small TF2 server, windows 2003, latest sourcemod 1.0 snapshot, worked perfectly - Fantastic work! |
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Good job!
+1 *pRED +1 Nephyrin |
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
I love you.
|
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Mmm updates.
|
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
predcrab can you spoof the max player packet going to a client so a server with max players of 32 shows 32/33 to the client. This will fool their client to allow them to double click the server instead of typing connect from the console. Or just hack sv_visiblemaxplayers to allow a value higher than 32.
I'm not sure if this is the spot but IDA shows this in engine.dll. Quote:
|
Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Updated plugin so it only kicks people if the server is full. Interesting concept.
Wozer: You sure you want this? Reasonably trivial to add but will stop the autojoin function from working. Most reserved slot users know to use console. |
All times are GMT -4. The time now is 15:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.