Server sends this message as a response to C2S::JOIN message to confirm that client was successfully onboarded into a game. This message contains information about set of units that client starts the game with. No precise positions indicated in this message, because map is not yet generated and units aren't placed on the map.
struct s2c_joined_t {
char type; // MSG_S2C_JOINED
int player_id; // ID assigned to a player
unsigned char num_unit_types; // Number of unit types found in client's wallet
};
After that there are exactly num_unit_types
structures of the following type:
struct s2c_unit_entry_t {
unsigned char unit_type; // Type of the unit found in client's wallet
unsigned char amount; // Amount of units of this type that will participate in a game
};
The following unit types are supported in Season 0:
const unsigned char UNIT_RP_ZOMBIE = 0;
const unsigned char UNIT_RP_GUARD = 1;
const unsigned char UNIT_RP_SPESSNAZ = 4;