Named in the code or data of server, client.
PlayerDisconnectEvent[GameEventHandler("player_disconnect")]
public HookResult OnPlayerDisconnect(PlayerDisconnectEvent args) {
// args.Userid, args.Reason, args.Name, args.Networkid, args.Xuid, args.PlayerID,
// args.EverFullyConnected
return HookResult.Continue;
}| Field | Type | Deadworks property | Valve's comment |
| userid | player_controller | Userid CBasePlayerController? | user ID on server |
| reason | short | Reason int | see networkdisconnect enum protobuf |
| name | string | Name string | player name |
| networkid | string | Networkid string | player network (i.e steam) id |
| xuid | uint64 | Xuid ulong | steam id |
| PlayerID | short | PlayerID int | |
| ever_fully_connected | bool | EverFullyConnected bool | Was the player ever fully connected? |