## 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_medicHealthRegen : # The rate at which medics regenerate health (in HP per second). This rate is divided into two parts: # The first is from 1 to 90% of medic max HP, and then above that. # The system default is 3/2 (3 HP per second, then 2 HP per second). # default : 0 # (See http://etpub.org/ETPubServerDocs.html#g_medicHealthRegen) This modification adds custom regen. 7 - custom : g_medicRegen1/g_medicRegen2 g_medicRegen1 and 2 are in HP per seconds, default = 1 ------------------------- MODIFICATION STARTS HERE src\game\bg_public.h : (line 931) **** AFTER // Medics don't regenerate health #define MEDIC_REGENRATE00 6 **** ADD // Medics regenerate custom health #define MEDIC_REGENRATEXX 7 src\game\g_active.c : (line 799) **** AFTER case MEDIC_REGENRATE00: regenRate1 = 0; regenRate2 = 0; break; **** ADD case MEDIC_REGENRATEXX: regenRate1 = g_medicRegen1.integer; regenRate2 = g_medicRegen2.integer; break; src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADD extern vmCvar_t g_medicRegen1; extern vmCvar_t g_medicRegen2; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_medicRegen1; vmCvar_t g_medicRegen2; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_medicRegen1, "g_medicRegen1", "1", 0 }, { &g_medicRegen2, "g_medicRegen2", "1", 0 }, ------------------------- PERSONAL NOTES // Determine regen rate switch(g_medicHealthRegen.integer) {