]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the CSQC player origin if in 3rd person mode
authorMario <mario@smbclan.net>
Sat, 1 Oct 2016 12:34:36 +0000 (22:34 +1000)
committerMario <mario@smbclan.net>
Sat, 1 Oct 2016 12:34:36 +0000 (22:34 +1000)
qcsrc/common/weapons/weapon/hook.qc

index 23e7c23ae5b2b16ccdd9b918e03ea378cfef60e4..ba7efe6a31a33384e1c1b0cbcb0a535e6ca72b99 100644 (file)
@@ -383,13 +383,16 @@ void Draw_GrapplingHook(entity this)
                        break;
        }
 
-       if((this.owner.sv_entnum == player_localentnum - 1) && autocvar_chase_active <= 0)
+       if((this.owner.sv_entnum == player_localentnum - 1))
        {
                switch(this.HookType)
                {
                        default:
                        case NET_ENT_CLIENT_HOOK:
-                               a = view_origin + view_forward * vs.x + view_right * -vs.y + view_up * vs.z;
+                               if(autocvar_chase_active > 0)
+                                       a = csqcplayer.origin;
+                               else
+                                       a = view_origin + view_forward * vs.x + view_right * -vs.y + view_up * vs.z;
                                b = this.origin;
                                break;
                        case NET_ENT_CLIENT_ARC_BEAM: