From: Mario Date: Sat, 30 Dec 2017 06:27:06 +0000 (+1000) Subject: Offset 3rd person grappling hook by player's view offset X-Git-Tag: xonotic-v0.8.5~2397 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d97cbb2d38b0b1c25a686b9b14ff681eb82528eb;p=xonotic%2Fxonotic-data.pk3dir.git Offset 3rd person grappling hook by player's view offset --- 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;