Monthly Target: $400 Donations: $
 0% 

Kick client via Steam?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 03-21-2012 , 05:03   Kick client via Steam?
Reply With Quote #1

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.
__________________

Last edited by GoD-Tony; 03-21-2012 at 05:05.
GoD-Tony is offline
asherkin
Veteran Member
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-21-2012 , 06:02  
Reply With Quote #2

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.
__________________
asherkin is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 03-21-2012 , 09:32   Re: Kick client via Steam?
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
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 View Post
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!
__________________
GoD-Tony is offline
Saul
Junior Member
Join Date: Jun 2007
Old 04-02-2012 , 17:42   Re: Kick client via Steam?
Reply With Quote #4

The Steam connect deny/kicks use the IClient :: Disconnect method.
__________________
- Saul

Last edited by Saul; 04-02-2012 at 17:42.
Saul is offline
Send a message via MSN to Saul
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-03-2012 , 04:53   Re: Kick client via Steam?
Reply With Quote #5

Quote:
Originally Posted by Saul View Post
The Steam connect deny/kicks use the IClient :: Disconnect method.
I just tested it now and it unfortunately results in the same as kick:


I'd like to do this (done with Connect Ext):
__________________

Last edited by GoD-Tony; 04-03-2012 at 04:57.
GoD-Tony is offline
Saul
Junior Member
Join Date: Jun 2007
Old 04-03-2012 , 07:27   Re: Kick client via Steam?
Reply With Quote #6

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 :)
__________________
- Saul

Last edited by Saul; 04-03-2012 at 07:28.
Saul is offline
Send a message via MSN to Saul
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 05-28-2012 , 03:56   Re: Kick client via Steam?
Reply With Quote #7

Quote:
Originally Posted by asherkin View Post
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
__________________

Last edited by GoD-Tony; 05-28-2012 at 04:29.
GoD-Tony is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-01-2012 , 17:20   Re: Kick client via Steam?
Reply With Quote #8

Quote:
Originally Posted by GoD-Tony View Post
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
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 06-02-2012 , 06:48   Re: Kick client via Steam?
Reply With Quote #9

Quote:
Originally Posted by Zephyrus View Post
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
__________________
GoD-Tony is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-03-2012 , 08:36   Re: Kick client via Steam?
Reply With Quote #10

Quote:
Originally Posted by GoD-Tony View Post
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
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:06.


Powered by vBulletin®
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
Theme made by Freecode