## 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_kickTime : The duration, in seconds, during which a kicked user won't be able to join the game back after being kicked by an admin using !kick Default : 90 (ETPub default is 120) You shouldn't set this to a too high value, for higher durations you want to use !ban [player] [duration] g_kickTimeW : The duration, in seconds, during which a kicked user won't be able to join the game back after being kicked by an admin using !warn. If set to 0, g_kickTime will be used instead. Default : 0 ------------------------- MODIFICATION STARTS HERE src\game\g_shrubbot.c : (line 2766) **** REPLACE trap_DropClient(pids[0], "You have been kicked because you received too many warnings.", 120); **** WITH trap_DropClient(pids[0], "You have been kicked because you received too many warnings.", (abs(g_kickTimeW.integer)>0) ? abs(g_kickTimeW.integer) : abs(g_kickTime.integer)); (line 1505) **** REPLACE trap_DropClient(pids[0], va("You have been kicked, Reason: %s", (*reason) ? reason : "kicked by admin"), 120); **** WITH trap_DropClient(pids[0], va("You have been kicked, Reason: %s", (*reason) ? reason : "kicked by admin"), abs(g_kickTime.integer)); src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADDED extern vmCvar_t g_kickTime; extern vmCvar_t g_kickTimeW; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_kickTime; vmCvar_t g_kickTimeW; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_kickTime, "g_kickTime", "90", 0 }, { &g_kickTimeW, "g_kickTimeW", "0", 0 },