Index: src/game/g_client.c =================================================================== --- src/game/g_client.c (revision 945) +++ src/game/g_client.c (working copy) @@ -958,6 +958,7 @@ char c2[ MAX_INFO_STRING ]; char userinfo[ MAX_INFO_STRING ]; team_t team; + gender_t sex; ent = g_entities + clientNum; client = ent->client; @@ -1115,6 +1116,16 @@ else client->ps.persistant[ PERS_STATE ] &= ~PS_WALLCLIMBINGTOGGLE; + // gender + s = Info_ValueForKey( userinfo, "sex" ); + + if( Q_stricmp( s, "male" ) == 0 ) + sex = GENDER_MALE; + else if( Q_stricmp( s, "female" ) == 0 ) + sex = GENDER_FEMALE; + else + sex = GENDER_NEUTER; + // teamInfo s = Info_ValueForKey( userinfo, "teamoverlay" ); @@ -1143,10 +1154,10 @@ Com_sprintf( userinfo, sizeof( userinfo ), "n\\%s\\t\\%i\\model\\%s\\hmodel\\%s\\c1\\%s\\c2\\%s\\" "hc\\%i\\w\\%i\\l\\%i\\tt\\%d\\" - "tl\\%d\\ig\\%16s", + "tl\\%d\\ig\\%16s\\g\\%d", client->pers.netname, team, model, model, c1, c2, client->pers.maxHealth, client->sess.wins, client->sess.losses, teamTask, - teamLeader, BG_ClientListString( &client->sess.ignoreList ) ); + teamLeader, BG_ClientListString( &client->sess.ignoreList ), sex ); trap_SetConfigstring( CS_PLAYERS + clientNum, userinfo ); Index: src/cgame/cg_players.c =================================================================== --- src/cgame/cg_players.c (revision 945) +++ src/cgame/cg_players.c (working copy) @@ -814,6 +814,10 @@ v = Info_ValueForKey( configstring, "tl" ); newInfo.teamLeader = atoi( v ); + // gender + v = Info_ValueForKey( configstring, "g" ); + newInfo.gender = atoi( v ); + // model v = Info_ValueForKey( configstring, "model" ); Q_strncpyz( newInfo.modelName, v, sizeof( newInfo.modelName ) );