## 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) bugfixes : - in rev11, medics could, for some values of g_medicMaxhealth, always pick up medpacks even with full health -> modified this line : if(ps->stats[STAT_HEALTH] >= (int)((ps->stats[STAT_MAX_HEALTH])*g_medicMaxHealth.integer*0.01 - 0.5)) { client update : - for rev11, 15, 17 and 20 : Some modifications have been cancelled to prevent the "bcs exceeded BIG_INFO_STRING" error src\game\g_main.c (line 785) **** REPLACE { &g_medicMinAmmo, "g_medicMinAmmo", "1", 0 }, { &g_medicMaxAmmo, "g_medicMaxAmmo", "3", 0 }, **** WITH { &g_medicMinAmmo, "g_medicMinAmmo", "1", 0 }, { &g_medicMaxAmmo, "g_medicMaxAmmo", "3", 0 }, (a bit farther) **** REPLACE { &g_medicMaxHealth, "g_medicMaxHealth", "112", 0 }, **** WITH { &g_medicMaxHealth, "g_medicMaxHealth", "112", CVAR_SYSTEMINFO }, (a bit higher) **** REPLACE { &g_adreselfCharge, "g_adreselfCharge", "80", 0 }, **** WITH { &g_adreselfCharge, "g_adreselfCharge", "80", 0 }, src\cgame\cg_main.c (line 632) **** REPLACE // etpub_pcr_ah { &g_medicMaxHealth, "g_medicMaxHealth", "112", 0 }, { &g_medicMinAmmo, "g_medicMinAmmo", "1", 0 }, { &g_medicMaxAmmo, "g_medicMaxAmmo", "3", 0 }, { &g_firstAid, "g_firstAid", "0", CVAR_SYSTEMINFO | CVAR_ROM }, { &g_adreselfCharge, "g_adreselfCharge", "80", 0 }, **** WITH // etpub_pcr_ah { &g_medicMaxHealth, "g_medicMaxHealth", "112", CVAR_ROM }, { &g_medicMinAmmo, "g_medicMinAmmo", "1", CVAR_ROM }, { &g_medicMaxAmmo, "g_medicMaxAmmo", "3", CVAR_ROM }, { &g_firstAid, "g_firstAid", "0", CVAR_ROM }, { &g_adreselfCharge, "g_adreselfCharge", "80", CVAR_ROM }, src\ui\ui_main.c (line 8862) **** REPLACE // etpub_pcr_ah { &g_medicMaxHealth, "g_medicMaxHealth", "112", 0 }, { &g_medicMinAmmo, "g_medicMinAmmo", "1", 0 }, { &g_medicMaxAmmo, "g_medicMaxAmmo", "3", 0 }, **** WITH // etpub_pcr_ah { &g_medicMaxHealth, "g_medicMaxHealth", "112", CVAR_ROM }, { &g_medicMinAmmo, "g_medicMinAmmo", "1", CVAR_ROM }, { &g_medicMaxAmmo, "g_medicMaxAmmo", "3", CVAR_ROM }, - let's remove useless cvars from the info string, sv_fps shouldn't be modified anyway src\game\g_main.c (line 888) **** REPLACE { &sv_fps, "sv_fps", "20", CVAR_SYSTEMINFO, 0, qfalse }, **** WITH { &sv_fps, "sv_fps", "20", CVAR_ROM, 0, qfalse },