From d97cbb2d38b0b1c25a686b9b14ff681eb82528eb Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 30 Dec 2017 16:27:06 +1000 Subject: [PATCH] Offset 3rd person grappling hook by player's view offset --- qcsrc/common/weapons/weapon/hook.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/hook.qc b/qcsrc/common/weapons/weapon/hook.qc index b060484c1..13b5661fe 100644 --- a/qcsrc/common/weapons/weapon/hook.qc +++ b/qcsrc/common/weapons/weapon/hook.qc @@ -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; -- 2.39.2