## 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_disguiseDmg : Sets the percentage of damage taken when under disguise. The default value for this in ET is 100. Known limitation : headshots still do at least their minimum damage. default : 75 See also : g_coverts (8 and 16) IMPORTANT : g_coverts should NOT be 8. If you set g_coverts to 8, g_disguiseDmg will always be 50. ------------------------- MODIFICATION STARTS HERE src\game\g_combat.c : (line 1838) **** AFTER // perro: optionally do half-damage if the target is a covie in disguise (g_coverts 8) if (targ -> client && targ->client->ps.powerups[PW_OPS_DISGUISED] && (g_coverts.integer & COVERTF_DISGUISE_HALFDMG) ) { take *= .5f; } **** ADD else if( targ->client && targ->client->ps.powerups[PW_OPS_DISGUISED] ) { take *= g_disguiseDmg.integer*0.01f; } src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADD extern vmCvar_t g_disguiseDmg; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_disguiseDmg; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_disguiseDmg, "g_disguiseDmg", "75", 0 },