## 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 http://games.chruker.dk/enemy_territory/modding_project_bugfix.php?bug_id=088 : Bugfix 088 - Players field of view at intermission is different if you had deployed a MG42 Problem: The client code fixes the FOV to 90 if intermission before it fixes the FOV to 55 if you are using the MG42, tank or other heavy weapons. This patch was applied in ETPub, but with an error that was on PBF before 26th september 2006. Here we correct it. I don't think this changes the behavior of the client though, it just removes a few useless lines of code. ------------------------- MODIFICATION STARTS HERE src\cgame\cg_view.c : (line 902) **** REPLACE // CHRUKER: b088 - Players field of view at intermission is different if you // had deployed a MG42 (fixation moved further down) if ( cg.predictedPlayerState.pm_type == PM_INTERMISSION ) { // if in intermission, use a fixed value fov_x = 90; } else { fov_x = cg_fov.value; **** WITH // CHRUKER: b088 - Players field of view at intermission is different if you had deployed a MG42 (fixation moved further down) if ( cg.predictedPlayerState.pm_type != PM_INTERMISSION ) { fov_x = cg_fov.value; And to remove a stupid warning : (line 888) **** REPLACE float fov_x, fov_y; **** WITH float fov_x=90, fov_y;