SparkoPro / ghostplusplus

Automatically exported from code.google.com/p/ghostplusplus
0 stars 0 forks source link

documentation about leftreason #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to detect and ban plug pullers to avoid being banned.  I have 
a custom php ban script that I run daily and need to know which of these 
disconnect reasons are from plug pulling and which ones cannot be 
simulated by a program.  

has left the game voluntarily
has lost the connection (connection closed by remote host)
has lost the connection (connection error - ECONNABORT)
has lost the connection (Connection error - ECONRESET)
has lost the connection (player error - received invalid header constant)
has lost the connection (timed out)
lagged out (dropped by admin)
lagged out (dropped by vote)
was automatically dropped after 60 seconds
was disconnected (admin ended game)
was disconnected (gameover timer finished)
was dropped due to desync
was kicked by player [admin 1]
was kicked by player [admin 2]
was kicked by player [etc]
was kicked by vote

The last 4 consern me.  I was not aware that admins could just kick 
players without using the votekick option.  Under which circumstances do 
the last entries get added?  Some of the rest seem similar but are not 
clear.  Like when would someone lag out but not be dropped by a vote?

Original issue reported on code.google.com by ico...@gmail.com on 4 Feb 2010 at 4:52