All pastes #295579 Raw Edit

Stuff

public text v1 · immutable
#295579 ·published 2006-12-29 15:20 UTC
rendered paste body
#endif
void drawStats() {
	vec4_t backColor = { 0.28f, 0.2f, 0.27f, 0.8f };
	vec4_t borderColor = { 0.5f, 0.5f, 0.5f, 0.5f };
	vec4_t fontColor = { 0.625f, 0.625f, 0.6f, 1.0f };

	char gameMod[20];
	syscall_CG_Cvar_VariableStringBuffer("fs_game", gameMod, sizeof(gameMod));

	int killSpree = eth.cg_time - eth.lastKillTime;

    char stats[628];
    sprintf(stats, "^1ETH: ^3v%s ^2|^7Name: ^x%s^* ^2| ^3%s ^2| ^7Kills: ^1%i ^2| ^7Spree: ^1%i ^2| ^7Xp: ^1%d ",         ETH_VERSION, eth.clientInfo[eth.cg_clientNum].name, gameMod, eth.killCount, eth.killCountNoDeath, eth.cg_snap->ps.stats[STAT_XP]); 

	
    int w = eth_CG_Text_Width_Ext(stats, 0.27f, 0, &eth.fontVariable);
    drawFillRect(8, 8, w + 9, 16 + 2, backColor);
	eth_CG_Text_Paint_Ext(10, 10, 0.27f, 0.27f, fontColor, stats, 0, 0, 0, &eth.fontVariable);
}
// DEBUG