## 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_playDead : # Allows players use the 'playdead' command and their character will act like it is dead # until the playdead command is issued again (or they really die). bitflag : 1 - Enable playdead 2 - Disable the annoying CP messages "Playing dead", "SURPRISE!" Default : 3 ------------------------- MODIFICATION STARTS HERE src\game\g_cmds.c : (line 109) **** REPLACE if(!g_playDead.integer) return; **** WITH if(!(g_playDead.integer & PLAYDEAD_ENABLED)) return; (line 134) **** REPLACE CP("cp \"SURPRISE!\" 1"); **** WITH if(!(g_playDead.integer & PLAYDEAD_NO_MSG)) CP("cp \"SURPRISE!\" 1"); src\game\g_active.c (line 866) **** REPLACE // notify client that they are playing dead if(client->ps.eFlags & EF_PLAYDEAD && ent->health > 0) CP("cp \"Playing Dead\" 1"); **** WITH // notify client that they are playing dead if(client->ps.eFlags & EF_PLAYDEAD && ent->health > 0 && !(g_playDead.integer & PLAYDEAD_NO_MSG)) CP("cp \"Playing Dead\" 1"); src\game\g_main.c (line 770) **** REPLACE { &g_playDead, "g_playDead", "0", 0 }, **** WITH { &g_playDead, "g_playDead", "3", 0 }, src\game\bg_public.h (line 913) **** AFTER // No self-adren #define MEDIC_NOSELFADREN 256 **** ADD // g_playDead // Enable playdead #define PLAYDEAD_ENABLED 1 // Disable annoying CP message #define PLAYDEAD_NO_MSG 2