AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SteamTools (https://forums.alliedmods.net/forumdisplay.php?f=147)
-   -   Kick client via Steam? (https://forums.alliedmods.net/showthread.php?t=180827)

GoD-Tony 03-21-2012 05:03

Kick client via Steam?
 
Is it possible to kick a client out of the server with a custom reason using Steam?

I ask because I'd like to kick clients without the "Disconnect:" prefix in the kick reason, and Steam related kicks/drops are the only ones I've seen that do this.

asherkin 03-21-2012 06:02

That's more part of the server's interface to Steam rather than SteamWorks itself, so shouldn't be a part of SteamTools.

Probably more of a SM feature request.

GoD-Tony 03-21-2012 09:32

Re: Kick client via Steam?
 
Quote:

Originally Posted by asherkin (Post 1672965)
That's more part of the server's interface to Steam rather than SteamWorks itself, so shouldn't be a part of SteamTools.

I suppose that means it could work with all mods, which is nice.

Quote:

Originally Posted by asherkin (Post 1672965)
Probably more of a SM feature request.

I'm not sure if another kick native will be added purely for aesthetics (and slightly longer reason), but no harm is asking. :)

Thanks for the info!

Saul 04-02-2012 17:42

Re: Kick client via Steam?
 
The Steam connect deny/kicks use the IClient :: Disconnect method.

GoD-Tony 04-03-2012 04:53

Re: Kick client via Steam?
 
Quote:

Originally Posted by Saul (Post 1680749)
The Steam connect deny/kicks use the IClient :: Disconnect method.

I just tested it now and it unfortunately results in the same as kick:
http://i.imgur.com/2sulO.png

I'd like to do this (done with Connect Ext):
http://i.imgur.com/uhIVY.png

Saul 04-03-2012 07:27

Re: Kick client via Steam?
 
IClient::Disconnect sends a NET_Disconnect message down the netchan, whereas connection rejections are an out-of-band S2C_CONNREJECT message. They're different messages with different functions, however you can only use S2C_CONNREJECT during the signon state.

My point still stands that Steam deny/kicks use the IClient::Disconnect method, though :)

GoD-Tony 05-28-2012 03:56

Re: Kick client via Steam?
 
Quote:

Originally Posted by asherkin (Post 1672965)
Probably more of a SM feature request.

Is this still a valid request after what's been said above? (is it doable)

Edit:
Code:

<@asherkin> GoD-Tony: it's not possible

Zephyrus 06-01-2012 17:20

Re: Kick client via Steam?
 
Quote:

Originally Posted by GoD-Tony (Post 1717938)
Is this still a valid request after what's been said above? (is it doable)

Edit:
Code:

<@asherkin> GoD-Tony: it's not possible

why cant you just force reconnect the client and kick him afterwards during onclientconnect

GoD-Tony 06-02-2012 06:48

Re: Kick client via Steam?
 
Quote:

Originally Posted by Zephyrus (Post 1720997)
why cant you just force reconnect the client and kick him afterwards during onclientconnect

IClient::Reconnect is not the same as having a client drop and connect again. They are still connected to the server and keep their UserID. It wouldn't trigger the necessary callbacks.

http://mxr.alliedmods.net/hl2sdk-ob-...c/iclient.h#31

Zephyrus 06-03-2012 08:36

Re: Kick client via Steam?
 
Quote:

Originally Posted by GoD-Tony (Post 1721296)
IClient::Reconnect is not the same as having a client drop and connect again. They are still connected to the server and keep their UserID. It wouldn't trigger the necessary callbacks.

http://mxr.alliedmods.net/hl2sdk-ob-...c/iclient.h#31

oh i see


All times are GMT -4. The time now is 20:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.