engine: server: add new client state cs_spawning, to ensure that client cannot spawn before it has an entity

This commit is contained in:
Alibek Omarov
2025-05-06 19:34:52 +03:00
parent c6251174df
commit ded38020d3
4 changed files with 13 additions and 6 deletions

View File

@@ -94,6 +94,7 @@ typedef enum
cs_free = 0, // can be reused for a new connection
cs_zombie, // client has been disconnected, but don't reuse connection for a couple seconds
cs_connected, // has been assigned to a sv_client_t, but not in game yet
cs_spawning, // put in game, but not spawned yet
cs_spawned // client is fully in game
} cl_state_t;