## 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_noobTips : boolean, was meant to save a bit of bandwidth and to free the central screen area a bit 0 - Hide useless tips like "you lost your spawn protection", "you need to wait x time between knives", etc 1 - Show the n00b tips default : 0 ------------------------- MODIFICATION STARTS HERE src\game\g_weapon.c : (line 1800) **** BEFORE trap_SendServerCommand(ent-g_entities, "cp \"Landmine armed...\" 1"); **** ADD if(g_noobTips.integer==1) (line 1846) **** BEFORE trap_SendServerCommand(ent-g_entities, "cp \"Landmine defused...\" 1"); **** ADD if(g_noobTips.integer==1) (line 2080) **** BEFORE trap_SendServerCommand( ent-g_entities, "cp \"Dynamite is now armed with a 30 second timer!\" 1"); **** ADD if(g_noobTips.integer==1) (line 4708) **** BEFORE CP("cp \"You lost your spawn protection\""); **** ADD if(g_noobTips.integer==1) (line 5207) **** REPLACE if ( level.time - ent->client->pmext.knifeThrownTime < effectiveThrowKnifeWait ) { CPx(ent-g_entities, va("cp \"You must wait %.2f second%s " "between knife throws\n\"", (float)effectiveThrowKnifeWait / 1000, (effectiveThrowKnifeWait == 1000)?"":"s")); return; } **** WITH if ( level.time - ent->client->pmext.knifeThrownTime < effectiveThrowKnifeWait ) { if(g_noobTips.integer==1) CPx(ent-g_entities, va("cp \"You must wait %.2f second%s " "between knife throws\n\"", (float)effectiveThrowKnifeWait / 1000, (effectiveThrowKnifeWait == 1000)?"":"s")); return; } (line 5216) **** BEFORE CPx(ent-g_entities, "cp \"You do not have " "any knives left\n\""); **** ADD if(g_noobTips.integer==1) (line 5224) **** BEFORE CPx(ent-g_entities, "print \"You must have your knife " "selected to throw it\n\""); **** ADD if(g_noobTips.integer==1) src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADD extern vmCvar_t g_noobTips; src\game\g_main.c : (line 257) **** AFTER g_spawnInvul; **** ADD vmCvar_t g_noobTips; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_noobTips, "g_noobTips", "0", 0 },