## ETPub PCR alpha hacks (etpub_pcr_ah) ## (C) 2006-2007 PatheticCockroach.com ## This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 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) bug 0000006 : Remaining lives are not shown for zombie and bot players. ------------------------- MODIFICATION STARTS HERE src\cgame\cg_scoreboard.c (line 375) **** REPLACE // PatheticCockroach - connecting players if ( score->ping == -1) { CG_DrawSmallString( tempx, y, "^1CONN", fade ); return; } // PatheticCockroach - zombied out players if ( score->ping == 999) { CG_DrawSmallString( tempx, y, "^8ZOMB", fade ); return; } // PatheticCockroach - show the bots if ( score->ping == 998) { CG_DrawSmallString( tempx, y, "^9BOT", fade ); return; } CG_DrawSmallString( tempx, y, va( "%4i", score->ping ), fade ); tempx += INFO_LATENCY_WIDTH; **** WITH // PatheticCockroach - connecting players if ( score->ping == -1) { CG_DrawSmallString( tempx, y, "^1CONN", fade ); } // PatheticCockroach - zombied out players else if ( score->ping == 999) { CG_DrawSmallString( tempx, y, "^8ZOMB", fade ); } // PatheticCockroach - show the bots else if ( score->ping == 998) { CG_DrawSmallString( tempx, y, " ^9BOT", fade ); } else { CG_DrawSmallString( tempx, y, va( "%4i", score->ping ), fade ); } tempx += INFO_LATENCY_WIDTH; (line 595) **** REPLACE // PatheticCockroach - connecting players if ( score->ping == -1) { CG_DrawSmallString( tempx, y, "^1CONN", fade ); return; } // PatheticCockroach - zombied out players if ( score->ping == 999) { CG_DrawSmallString( tempx, y, "^8ZOMB", fade ); return; } // PatheticCockroach - show the bots if ( score->ping == 998) { CG_DrawSmallString( tempx, y, "^9BOT", fade ); return; } CG_DrawStringExt( tempx, y, va( "%4i", score->ping ), hcolor, qfalse, qfalse, MINICHAR_WIDTH, MINICHAR_HEIGHT, 0 ); tempx += INFO_LATENCY_WIDTH; **** WITH // PatheticCockroach - connecting players if ( score->ping == -1) { CG_DrawSmallString( tempx, y, "^1CONN", fade ); } // PatheticCockroach - zombied out players else if ( score->ping == 999) { CG_DrawSmallString( tempx, y, "^8ZOMB", fade ); } // PatheticCockroach - show the bots else if ( score->ping == 998) { CG_DrawSmallString( tempx, y, " ^9BOT", fade ); } else { CG_DrawStringExt( tempx, y, va( "%4i", score->ping ), hcolor, qfalse, qfalse, MINICHAR_WIDTH, MINICHAR_HEIGHT, 0 ); } tempx += INFO_LATENCY_WIDTH; ------------------------- PERSONAL NOTES