1
0
Fork 0
forked from fte/fteqw

I was getting the camera stuck in too many walls..

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@464 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-17 18:10:06 +00:00
parent 010cd26fc7
commit 8bc9a08ec6

View file

@ -152,6 +152,9 @@ trace_t Cam_DoTrace(vec3_t vec1, vec3_t vec2)
return PM_PlayerTrace(pmove.origin, vec2); return PM_PlayerTrace(pmove.origin, vec2);
} }
extern vec3_t player_mins;
extern vec3_t player_maxs;
// Returns distance or 9999 if invalid for some reason // Returns distance or 9999 if invalid for some reason
static float Cam_TryFlyby(player_state_t *self, player_state_t *player, vec3_t vec, qboolean checkvis) static float Cam_TryFlyby(player_state_t *self, player_state_t *player, vec3_t vec, qboolean checkvis)
{ {
@ -159,6 +162,11 @@ static float Cam_TryFlyby(player_state_t *self, player_state_t *player, vec3_t v
trace_t trace; trace_t trace;
float len; float len;
player_mins[0] = player_mins[1] = -16;
player_mins[2] = -24;
player_maxs[0] = player_maxs[1] = 16;
player_maxs[2] = 32;
vectoangles(vec, v); vectoangles(vec, v);
// v[0] = -v[0]; // v[0] = -v[0];
VectorCopy (v, pmove.angles); VectorCopy (v, pmove.angles);