HolyLib Wiki

gameserver.CreateFakeQueueClient

 CGameClient gameserver.CreateFakeQueueClient( string name )

Description

Creates a new fake client with the given name, similar to gameserver.CreateFakeClient, but manually replicates the connection process instead of going through the engine's sv_stressbots-based fake client creation.
It sets a bunch of default user convars (rate, cl_updaterate, cl_interp, ...) and puts the client into the SIGNONSTATE_PRESPAWN state before returning it.

Arguments

1string name

The name to give the fake client

Returns

1CGameClient client

The created fake client or nil if the server isn't active or no free client slot was found