## ETPub PCR alpha hacks (etpub_pcr_ah) ## (C) 2006-2007 PatheticCockroach.com ## This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License ## Derivative works may only be done if they are distributed with their source code. ## ## The original etpub_pcr_ah source and binaries can be found around http://www.patheticcockroach.com/etserver/etpub_pcr.php ## ## Note : ETPub PCR alpha hacks are just small modifications for ETPub (http://www.etpub.org) Client have the possibility to display icons instead of class names (see rev 64). This revision adds the class icon fonctionality to the class of the disguise owned by a covert. ------------------------- MODIFICATION STARTS HERE src\cgame\cg_draw.c (line 5110) **** REPLACE // Dens: show the classletter to the client CG_Text_Paint_Ext( cg.hud.flagcov[0]+10, cg.hud.flagcov[1]+25, 0.4 , 0.4, colorYellow, BG_ClassLetterForNumber( (cg_entities[ps->clientNum].currentState.powerups >> PW_OPS_CLASS_1) & 7 ), 0, 0, ITEM_TEXTSTYLE_SHADOWED, &cgs.media.font1 ); **** WITH // Dens: show the classletter to the client if(cg_icon4class.integer==0) CG_Text_Paint_Ext( cg.hud.flagcov[0]+10, cg.hud.flagcov[1]+25, 0.4 , 0.4, colorYellow, BG_ClassLetterForNumber( (cg_entities[ps->clientNum].currentState.powerups >> PW_OPS_CLASS_1) & 7 ), 0, 0, ITEM_TEXTSTYLE_SHADOWED, &cgs.media.font1 ); else CG_DrawPic( cg.hud.flagcov[0]+3, cg.hud.flagcov[1]+5, 28, 28, cgs.media.limboClassButtons2[( (cg_entities[ps->clientNum].currentState.powerups >> PW_OPS_CLASS_1) & 7 )] );