## 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) From what I read around the web, sv_fps shouldn't be set to anything else than 20 in ET (and nobody uses it anyway). So I removed it to uncrowd CS_SERVERINFO a bit. But I left SV_FPS instead to make it easily reversible, should we need it later (which I doubt though) ------------------------- MODIFICATION STARTS HERE src\game\bg_public.h (line 914) **** AFTER // No self-adren #define MEDIC_NOSELFADREN 256 **** ADD #define SV_FPS 20 src\cgame\cg_weapons.c (line 4803) **** REPLACE c->currentState.pos.trDuration = 1000 / 20; //sv_fps.integer; **** WITH c->currentState.pos.trDuration = 1000 / SV_FPS; (line 4806) **** REPLACE BG_EvaluateTrajectory( &c->currentState.pos, cg.snap->serverTime + 1000 / 20, origin2 ,qfalse, c->currentState.effect2Time ); // replace 20 with sv_fps.integer if possible later **** WITH BG_EvaluateTrajectory( &c->currentState.pos, cg.snap->serverTime + 1000 / SV_FPS, origin2 ,qfalse, c->currentState.effect2Time ); src\game\bg_misc.c (line 4176) **** REPLACE s->pos.trDuration = 50; // 1000 / sv_fps (default = 20) **** WITH s->pos.trDuration = 50; // 1000 / SV_FPS src\game\bg_pmove.c (line 6316) **** REPLACE // in reality, this should be split according to sv_fps, **** WITH // in reality, this should be split according to SV_FPS, src\game\g_active.c (line 2455) **** REPLACE G_PredictPmove(ent, (float)frames / (float)sv_fps.integer); **** WITH G_PredictPmove(ent, (float)frames / (float)SV_FPS); src\game\g_antilag.c (line 476) **** REPLACE period = sv_fps.value; **** WITH period = SV_FPS; src\game\g_config.c (line 44 and 69) **** COMMENT OUT, twice { M_ALL, "sv_fps", "20" }, src\game\g_local.h (line 2272) **** COMMENT OUT extern vmCvar_t sv_fps; src\game\g_main.c (line 350) **** COMMENT OUT vmCvar_t sv_fps; (line 885) **** COMMENT OUT { &sv_fps, "sv_fps", "20", CVAR_ROM, 0, qfalse },