Raised This Month: $51 Target: $400
 12% 

How does mp_autokick detect if people is "away"?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 12-31-2014 , 07:53   How does mp_autokick detect if people is "away"?
Reply With Quote #1

Very simple question.
How does mp_autokick detect if people is "away"? I looked through hl2sdk, but couldn't find anything..
klausenbusk is offline
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 12-31-2014 , 09:39   Re: How does mp_autokick detect if people is "away"?
Reply With Quote #2

Quote:
Originally Posted by klausenbusk View Post
Very simple question.
How does mp_autokick detect if people is "away"? I looked through hl2sdk, but couldn't find anything..
Stands still and doesn't move his view point for some time
__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-31-2014 , 09:41   Re: How does mp_autokick detect if people is "away"?
Reply With Quote #3

Quote:
Originally Posted by Michalplyoutube View Post
Stands still and doesn't move his view point for some time
which can be easily passed by doing: +left in console, and not get kicked.
tip: typing a rcon command (or even just 'rcon') will disable autokick from yourself.
Mitchell is offline
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 12-31-2014 , 09:51   Re: How does mp_autokick detect if people is "away"?
Reply With Quote #4

But how do it check "movement"*, and what does it check more than "movement"(commands?)?
*Do it reset when you press a button, or do it check your eye angels and location every x seconds?

Last edited by klausenbusk; 12-31-2014 at 09:51.
klausenbusk is offline
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 12-31-2014 , 09:56   Re: How does mp_autokick detect if people is "away"?
Reply With Quote #5

It checks how much player is standing still and if player moves change eye angels it resets
__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-31-2014 , 10:44   Re: How does mp_autokick detect if people is "away"?
Reply With Quote #6

The best way to detect if they are idle is to test both buttons and commands.
If buttons stay the same too long, or if they don't send any commands, they're afk.
If they have +moveleft or whatever, the buttons won't change.
Testing position or angles isn't good, because it doesn't work for spectators or people with macros to hold down keys.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



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 14:38.


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