diff options
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r-- | src/game/g_weapon.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 6adf48a1..4dd1d67e 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -638,7 +638,7 @@ CheckGrabAttack void CheckGrabAttack( gentity_t *ent ) { trace_t tr; - vec3_t end; + vec3_t end, dir; gentity_t *traceEnt; // set aiming directions @@ -664,7 +664,10 @@ void CheckGrabAttack( gentity_t *ent ) return; if( !( traceEnt->client->ps.stats[ STAT_STATE ] & SS_GRABBED ) ) - VectorCopy( traceEnt->client->ps.viewangles, traceEnt->client->ps.grapplePoint ); + { + AngleVectors( traceEnt->client->ps.viewangles, dir, NULL, NULL ); + traceEnt->client->ps.stats[ STAT_VIEWLOCK ] = DirToByte( dir ); + } traceEnt->client->ps.stats[ STAT_STATE ] |= SS_GRABBED; traceEnt->client->lastGrabTime = level.time; |