]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - chase.c
now supports skyboxes in q3bsp (note: must use the "sky" key in worldspawn to set...
[xonotic/darkplaces.git] / chase.c
diff --git a/chase.c b/chase.c
index 1d0fe2a6b83a4fdf4a889f92d49b4cfe8be300bc..cef9305828cde8d0ffd9d4023fc91562614c6c61 100644 (file)
--- a/chase.c
+++ b/chase.c
@@ -54,12 +54,15 @@ void Chase_Update (void)
        if (chase_up.value != camup)
                Cvar_SetValueQuick(&chase_up, camup);
 
+       // this + 22 is to match view_ofs for compatibility with older versions
+       camup += 22;
+
        VectorCopy(cl.viewangles, projectangles);
        if (gamemode == GAME_GOODVSBAD2 && chase_stevie.integer)
        {
                projectangles[0] = 90;
                r_refdef.viewangles[0] = 90;
-               camback = 1024;
+               camback = 2048;
        }
        AngleVectors (projectangles, forward, NULL, NULL);
 
@@ -68,7 +71,7 @@ void Chase_Update (void)
        chase_dest[1] = r_refdef.vieworg[1] + forward[1] * dist;
        chase_dest[2] = r_refdef.vieworg[2] + forward[2] * dist + chase_up.value;
 
-       CL_TraceLine (r_refdef.vieworg, chase_dest, stop, normal, 0, true, NULL);
+       CL_TraceLine(r_refdef.vieworg, chase_dest, stop, normal, true, NULL, SUPERCONTENTS_SOLID | SUPERCONTENTS_SKY);
        chase_dest[0] = stop[0] + forward[0] * 8 + normal[0] * 4;
        chase_dest[1] = stop[1] + forward[1] * 8 + normal[1] * 4;
        chase_dest[2] = stop[2] + forward[2] * 8 + normal[2] * 4;