## 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_maxTimelimit : The maximum timelimit, in minutes, that can be set using the timelimit vote. To disable, set it to 0. default = 90 ------------------------- MODIFICATION STARTS HERE src\game\g_vote.c : (line 799) **** AFTER else if(atoi(arg2) < 0) { G_refPrintf(ent, "Sorry, can't specify a timelimit < 0!"); return(G_INVALID); } **** ADD else if(g_maxTimelimit.integer>0 && (atoi(arg2) == 0 || atoi(arg2)>g_maxTimelimit.integer)) { CP(va("cp \"^8Timelimit must be lower than %i minutes\"",g_maxTimelimit.integer)); return(G_INVALID); } src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADD extern vmCvar_t g_maxTimelimit; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_maxTimelimit; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_maxTimelimit, "g_maxTimelimit", "90", 0 }, ------------------------- PERSONAL NOTES CP(va("cp \"^3You must wait %i seconds before joining ^3a new team.\n\" 3", (int)(5 - ((level.time - client->pers.enterTime)/1000)))); //G_refPrintf(ent, "The timelimit must be lower than %d",g_maxTimelimit.integer);