## ETPub PCR alpha hacks (etpub_pcr_ah) ## (C) 2006-2007 PatheticCockroach.com ## This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 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) Not much code here... we just applied a revision from etpub g_autoTempBan [bitmask] # When set, anyone kicked for the reasons you specify, will be temporarily banned for g_autoTempBanTime seconds # 1 - Tempban when reaching g_teamDamageRestriction # 2 - Tempban when someone is kicked by a shrubbot admin (using the !kick command). A normal shrubbot !kick kicks for 120 seconds # 4 - Tempban when someone is kicked by the advanced warning system. A normal kick by the warning system lasts 120 seconds # Default : 0 g_autoTempBanTime [integer] # The number of seconds kicked for when g_autoTempBan is set # Default is 1800 g_kickTimeK : The number of seconds kicked for after being kicked by !kick and when g_autoTempBan & 2 == true If set to 0, g_autoTempBanTime will be used instead Default : 0 You shouldn't set this to a too high value, for higher durations you want to use !ban [player] [duration] g_kickTimeW : The number of seconds kicked for after being kicked !warn and when g_autoTempBan & 4 == true If set to 0, g_autoTempBanTime will be used instead Default : 0 rev 1715 (changed g_auoTempBan into a bitflag, so teamdamage, !kick and !warn tempbans are separated) : 1. applied 2. modified for use with rev 59 : src\game\g_shrubbot.c : (line 1495) **** REPLACE if ( (g_autoTempBan.integer & TEMPBAN_SHRUB_KICK) && g_autoTempBanTime.integer > 0 ) { banTime = g_autoTempBanTime.integer; **** WITH if ( (g_autoTempBan.integer & TEMPBAN_SHRUB_KICK) && g_autoTempBanTime.integer > 0 ) { banTime = ((abs(g_kickTimeK.integer)>0) ? abs(g_kickTimeK.integer) : g_autoTempBanTime.integer); (line 2769) **** REPLACE if ( (g_autoTempBan.integer & TEMPBAN_SHRUB_WARN) && g_autoTempBanTime.integer > 0 ) { banTime = g_autoTempBanTime.integer; **** WITH if ( (g_autoTempBan.integer & TEMPBAN_SHRUB_WARN) && g_autoTempBanTime.integer > 0 ) { banTime = ((abs(g_kickTimeW.integer)>0) ? abs(g_kickTimeW.integer) : g_autoTempBanTime.integer); IN src\game\g_main.c AND g_local.h : RENAME g_kickTime TO g_kickTimeK SET DEFAULT VALUE FOR g_kickTimeK TO 0