## 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) !config : FLAG : a (like !admintest) g_tyranny : no USAGE : !config DESCRIPTION : Gives some info about the server config ------------------------- MODIFICATION STARTS HERE src\game\g_shrubbot.c : (line 37) **** AFTER {"check", G_shrubbot_check, 'a', 0, "checks if a player is godmoded", "[^3name|slot#|all^7]"}, **** ADD {"config", G_shrubbot_config, 'a', 0, "gives some info about the server config", ""}, (line 3609) **** BEFORE /* * This function facilitates the SP define. SP() is similar to CP except that * it prints the message to the server console if ent is not defined. */ **** ADD qboolean G_shrubbot_config(gentity_t *ent, int skiparg) { SBP_begin(); SBP(va("^/config : ^7showing server configuration\n")); SBP(va("^dg_tyranny : ^2%i\n", g_tyranny.integer)); SBP(va("^dg_friendlyPlant : ^2%i\n", g_friendlyPlant.integer)); SBP(va("^dg_adreDmg : ^2%i\n", g_adreDmg.integer)); SBP(va("^dg_disguiseDmg : ^2%i\n", g_disguiseDmg.integer)); SBP_end(); return qtrue; } src\game\g_shrubbot.h : (line 116) **** AFTER qboolean G_shrubbot_gib(gentity_t *ent, int skiparg); **** ADD qboolean G_shrubbot_config(gentity_t *ent, int skiparg);