From 84f9b39019e973ea66db7a996d1d8d60baafb45d Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Tue, 3 Feb 2015 00:07:30 +0100 Subject: use r.currentAngles a bit more (for later use) --- src/game/g_misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/g_misc.c b/src/game/g_misc.c index 8c667ad4..ab143e53 100644 --- a/src/game/g_misc.c +++ b/src/game/g_misc.c @@ -191,6 +191,10 @@ void locateCamera( gentity_t *ent ) G_SetMovedir( owner->r.currentAngles, dir ); ent->s.eventParm = DirToByte( dir ); + + ByteToDir( ent->s.eventParm, dir ); + vectoangles( dir, ent->r.currentAngles ); + ent->r.currentAngles[ 2 ] = ent->s.clientNum * 360.0f / 256; } /*QUAKED misc_portal_surface (0 0 1) (-8 -8 -8) (8 8 8) -- cgit