I wonder if someone could do something with orpheu and this call
(this is the prototype on CS:S but this call exists on engine dll/so so I guess it's the same)
PHP Code:
SV_FindEmptySlot (netadr_t *adr, int *pslot, client_t **ppClient)
This is called from SV_ConnectClient and returns the next available slot allowing the user connect to the server...
Of course it's necessary to allocate more slots/memory before.
Yes, my point is to make a 32+ slots
I also found this
PHP Code:
/*
================
SV_FindEmptySlot
Get slot # and set client_t pointer for player, if possible
We don't do this search on a "reconnect, we just reuse the slot
================
*/
int SV_FindEmptySlot( netadr_t *adr, int *pslot, client_t **ppClient )
{
client_t *client=0;
int slot;
int clients;
clients = 0;
SV_CountPlayers( &clients );
for ( slot = 0 ; slot < svs.maxclients ; slot++ )
{
client = &svs.clients[slot];
if ( !client->active && !client->spawned && !client->connected )
break;
}
if ( slot >= svs.maxclients )
{
SV_RejectConnection( adr, "Server is full.\n" );
return 0;
}
*pslot = slot;
*ppClient = client;
// Success
return 1;
}
__________________