HolyLib Wiki

HolyLib:OnChannelOverflow

  boolean HolyLib:OnChannelOverflow( CGameClient client )

Description

Called when the client's net channel is overflowed.

Arguments

1CGameClient client
The client thats changing the SignOnState

Returns

1boolean cancel = false
Return true to stop the engine from disconnecting the client.

Example

Example on how to handle a overflow
hook.Add("HolyLib:OnChannelOverflow", "Example", function(client) local bf = client:GetStreamReliable() file.Write("stream.txt", bf:GetData()) bf:Reset() -- Reset the stream, data may get lost, but the client won't be dropped return true -- Return true to stop the engine from disconnecting the client end)