## 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) We applied rev 1696 with a little modification that was needed for g_forceLimboHealth ------------------------- MODIFICATION STARTS HERE src\game\g_etbot_interface.cpp (line 2958) **** REPLACE if(pMsg) { if (pEnt && pEnt->inuse && pEnt->client && pEnt->client->ps.pm_type == PM_DEAD && !(pEnt->client->ps.pm_flags & PMF_LIMBO)) { limbo(pEnt, qtrue); pMsg->m_GoLimbo = True; } else { pMsg->m_GoLimbo = False; } } break; **** WITH if(pMsg) { // Dens: don't forget to look if the pEnt SHOULD really be in limbo // this check prevenst extra bodies and weird spectator behaviour int limbo_health = FORCE_LIMBO_HEALTH; if(g_forceLimboHealth.integer == 1) limbo_health = FORCE_LIMBO_HEALTH2; else if(g_forceLimboHealth.integer>10) limbo_health = 0 - g_forceLimboHealth.integer; if (pEnt && pEnt->inuse && pEnt->client && pEnt->health > limbo_health && pEnt->client->ps.pm_type == PM_DEAD && !(pEnt->client->ps.pm_flags & PMF_LIMBO)) { limbo(pEnt, qtrue); pMsg->m_GoLimbo = True; } else { pMsg->m_GoLimbo = False; } } break;