## 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) bugfixes : - from rev24 : setlevel used to create random buggy greetings for new admins - from rev11 : medics would always be able to pick up medpacks, even with full health => changed if(ps->stats[STAT_HEALTH] >= (int)((ps->stats[STAT_MAX_HEALTH])*g_medicMaxHealth.integer*0.01)) { client update : - for rev11 : src\game\cg_draw.c (line 2675) **** REPLACE if( cgs.clientinfo[ cg.crosshairClientNum ].cls == PC_MEDIC ) { maxHealth *= 1.12f; } **** WITH if( cgs.clientinfo[ cg.crosshairClientNum ].cls == PC_MEDIC ) { maxHealth *= g_medicMaxHealth.integer*0.01f; } (line 4669) **** REPLACE if( cgs.clientinfo[ cg.snap->ps.clientNum ].cls == PC_MEDIC ) { frac = cg.snap->ps.stats[STAT_HEALTH] / ( (float) cg.snap->ps.stats[STAT_MAX_HEALTH] * 1.12f ); **** WITH if( cgs.clientinfo[ cg.snap->ps.clientNum ].cls == PC_MEDIC ) { frac = cg.snap->ps.stats[STAT_HEALTH] / ( (float) cg.snap->ps.stats[STAT_MAX_HEALTH] * g_medicMaxHealth.integer*0.01f );