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

Dr. McKay 08-03-2012 13:11

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

Is this still the case when using ClientCommand(client, "retry")?

Powerlord 08-03-2012 13:54

Re: Kick client via Steam?
 
Quote:

Originally Posted by Dr. McKay (Post 1763839)
Is this still the case when using ClientCommand(client, "retry")?

retry is marked FCVAR_SERVER_CAN_EXECUTE? If not, the client will block it.

Dr. McKay 08-03-2012 13:59

Re: Kick client via Steam?
 
Quote:

Originally Posted by Powerlord (Post 1763873)
retry is marked FCVAR_SERVER_CAN_EXECUTE? If not, the client will block it.

Yes, it is. At least in TF2.

Dr. McKay 08-06-2012 21:36

Re: Kick client via Steam?
 
https://forums.alliedmods.net/showthread.php?t=192153

GoD-Tony 08-07-2012 02:55

Re: Kick client via Steam?
 
Quote:

Originally Posted by Dr. McKay (Post 1763839)
Is this still the case when using ClientCommand(client, "retry")?

Quote:

Originally Posted by Dr. McKay (Post 1766122)

Haha, it's cool that it works but I'm not sure if I like the method used. :)

Dr. McKay 09-05-2012 18:35

Re: Kick client via Steam?
 
It might be possible to kick clients without a hackish retry/reject.

Check out this screenshot:

http://cloud.steampowered.com/ugc/57...4ADB2F2F598E8/

GoD-Tony 09-11-2012 09:48

Re: Kick client via Steam?
 
Quote:

Originally Posted by Dr. McKay (Post 1792269)
It might be possible to kick clients without a hackish retry/reject.

Check out this screenshot:

http://cloud.steampowered.com/ugc/57...4ADB2F2F598E8/

Looks like the server is doing:
Code:

engine->ServerCommand("kickall #TF_PVE_Disconnect\n");


All times are GMT -4. The time now is 22:47.

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