Increase chase cam target trace distance

Allows for chasecam to function in large open maps, useful for the
func_vehicle mod where people naturally want to create open maps.
Patch suggested by Marko Permanto, based on a commit in Ironwail by
Andrei Drexler.
https://sourceforge.net/p/quakespasm/patches/34/
6e55a30c90
This commit is contained in:
Ozkan Sezer 2023-03-31 10:47:02 +03:00
parent 3e599a847b
commit 9106af96fb
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ void Chase_UpdateForDrawing (void)
VectorCopy (ideal, r_refdef.vieworg);
// find the spot the player is looking at
VectorMA (cl.viewent.origin, 4096, forward, temp);
VectorMA (cl.viewent.origin, 1<<20, forward, temp);
TraceLine (cl.viewent.origin, temp, crosshair);
// calculate camera angles to look at the same spot