]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 b060484c153fa4946540b71b499f9f9b1afd1abb..13b5661fecae03d87bbe6de17346c2b4a5e549f2 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;