From 37bece06e371506e4b4d24dce0ab06508db85475 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Fri, 1 Apr 2011 01:20:31 +0300 Subject: [PATCH] Decrease trace_fraction by 0.1 to avoid the camera getting limited exactly at the surface of the wall. That allowed the view to poke through at some angles. --- qcsrc/client/View.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index c55aa8cc6..4c6ac9172 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -440,7 +440,7 @@ void CSQC_UpdateView(float w, float h) // don't allow the camera to go through walls traceline(pmove_org, chase_target_origin, MOVE_NORMAL, self); - chase_target_origin = pmove_org - view_forward * chase_current_distance * trace_fraction; // pass 2, also multiplying view_forward with trace_fraction, to avoid sticking the camera in solid + chase_target_origin = pmove_org - view_forward * chase_current_distance * (trace_fraction - 0.1); // pass 2, also multiplying view_forward with trace_fraction, to avoid sticking the camera in solid } R_SetView(VF_ORIGIN, chase_target_origin); -- 2.39.2