## 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_fireteamSize : Sets the maximum size of a fireteam (you need an up-to-date client if you want g_fireteamSize >6). Min : 2 Max : 8 Default : 6 ------------------------- MODIFICATION STARTS HERE src\game\bg_public.h (line 134) **** REPLACE // tjw: number of players allowed on one fireteam #define MAX_FIRETEAM_MEMBERS 6 **** ADD // tjw: number of players allowed on one fireteam #define MAX_FIRETEAM_MEMBERS 8 #define MIN_FIRETEAM_MEMBERS 2 src\game\g_fireteams.c : (line 281) **** REPLACE if( i >= MAX_FIRETEAM_MEMBERS ) { G_ClientPrintAndReturn( entityNum, "Too many players already on this Fireteam"); return; } **** WITH if( (i >= g_fireteamSize.integer && g_fireteamSize.integer >= MIN_FIRETEAM_MEMBERS) || (i >= MAX_FIRETEAM_MEMBERS) ) { G_ClientPrintAndReturn( entityNum, "Too many players already on this Fireteam"); return; } (line 591) **** REPLACE for( j = 0; j < MAX_CLIENTS; j++ ) { if( j >= MAX_FIRETEAM_MEMBERS || level.fireTeams[i].joinOrder[j] == -1 ) { break; } } if( j >= MAX_FIRETEAM_MEMBERS ) { continue; } **** WITH for( j = 0; j < MAX_CLIENTS; j++ ) { if( (j >= g_fireteamSize.integer && g_fireteamSize.integer >= MIN_FIRETEAM_MEMBERS) || j >= MAX_FIRETEAM_MEMBERS || level.fireTeams[i].joinOrder[j] == -1 ) { break; } } if( (j >= g_fireteamSize.integer && g_fireteamSize.integer >= MIN_FIRETEAM_MEMBERS) || j >= MAX_FIRETEAM_MEMBERS ) { continue; } src\game\g_local.h : (line 2154) **** AFTER extern vmCvar_t g_spawnInvul; **** ADDED extern vmCvar_t g_fireteamSize; src\game\g_main.c : (line 257) **** AFTER vmCvar_t g_spawnInvul; **** ADD vmCvar_t g_fireteamSize; (line 755) **** AFTER { &g_spawnInvul, "g_spawnInvul", "3", 0 }, **** ADD { &g_fireteamSize, "g_fireteamSize", "6", 0 },