## 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) g_adreDmg : Sets the percentage of damage taken when under adre. The default value for this in ET is 50. Known limitation : headshots still do at least their minimum damage. default : 75 ------------------------- MODIFICATION STARTS HERE src\game\g_combat.c : (line 1809) **** AFTER if( targ->client && targ->client->ps.powerups[PW_ADRENALINE] ) { **** REPLACE take *= .5f; **** WITH take *= g_adreDmg.integer*0.01f; src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADD extern vmCvar_t g_adreDmg; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_adreDmg; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_adreDmg, "g_adreDmg", "75", 0 },