Home | History | Annotate | Download | only in client

Lines Matching full:vec2

136 pmtrace_t Cam_DoTrace(vec3_t vec1, vec3_t vec2)
147 return PM_PlayerMove(pmove.origin, vec2);
204 vec3_t vec, vec2;
214 VectorAdd(forward, up, vec2);
215 VectorAdd(vec2, right, vec2);
216 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
218 VectorCopy(vec2, vec);
220 VectorAdd(forward, up, vec2);
221 VectorSubtract(vec2, right, vec2);
222 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
224 VectorCopy(vec2, vec);
226 VectorAdd(forward, right, vec2);
227 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
229 VectorCopy(vec2, vec);
231 VectorSubtract(forward, right, vec2);
232 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
234 VectorCopy(vec2, vec);
236 VectorAdd(forward, up, vec2);
237 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
239 VectorCopy(vec2, vec);
241 VectorSubtract(forward, up, vec2);
242 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
244 VectorCopy(vec2, vec);
246 VectorAdd(up, right, vec2);
247 VectorSubtract(vec2, forward, vec2);
248 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
250 VectorCopy(vec2, vec);
252 VectorSubtract(up, right, vec2);
253 VectorSubtract(vec2, forward, vec2);
254 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
256 VectorCopy(vec2, vec);
259 VectorSubtract(vec3_origin, forward, vec2);
260 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
262 VectorCopy(vec2, vec);
264 VectorCopy(forward, vec2);
265 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
267 VectorCopy(vec2, vec);
270 VectorSubtract(vec3_origin, right, vec2);
271 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
273 VectorCopy(vec2, vec);
275 VectorCopy(right, vec2);
276 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) {
278 VectorCopy(vec2, vec);
438 vec3_t vec, vec2;
454 vectoangles(vec, vec2);
455 vec2[PITCH] = -vec2[PITCH];
457 cam_viewangles[PITCH] = adjustang(cam_viewangles[PITCH], vec2[PITCH], cl_camera_maxpitch.value);
458 cam_viewangles[YAW] = adjustang(cam_viewangles[YAW], vec2[YAW], cl_camera_maxyaw.value);
489 vectoangles(vec, vec2);
490 vec2[PITCH] = -vec2[PITCH];
492 cam_viewangles[PITCH] = adjustang(cam_viewangles[PITCH], vec2[PITCH], cl_camera_maxpitch.value);
493 cam_viewangles[YAW] = adjustang(cam_viewangles[YAW], vec2[YAW], cl_camera_maxyaw.value);