Offset 3rd person grappling hook by player's view offset
authorMario <mario@smbclan.net>
Sat, 30 Dec 2017 06:27:06 +0000 (16:27 +1000)
committerMario <mario@smbclan.net>
Sat, 30 Dec 2017 06:27:06 +0000 (16:27 +1000)
qcsrc/common/weapons/weapon/hook.qc

index b060484..13b5661 100644 (file)
@@ -319,7 +319,7 @@ void Draw_GrapplingHook(entity this)
                        default:
                        case NET_ENT_CLIENT_HOOK:
                                if(autocvar_chase_active)
-                                       a = csqcplayer.origin;
+                                       a = csqcplayer.origin + csqcplayer.view_ofs;
                                else
                                        a = view_origin + view_forward * vs.x + view_right * -vs.y + view_up * vs.z;
                                b = this.origin;