From: Mario Date: Sat, 1 Oct 2016 12:34:36 +0000 (+1000) Subject: Use the CSQC player origin if in 3rd person mode X-Git-Tag: xonotic-v0.8.2~562 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=443f6e04aeec509eb5071c3b91fdd244d27fab10;p=xonotic%2Fxonotic-data.pk3dir.git Use the CSQC player origin if in 3rd person mode --- diff --git a/qcsrc/common/weapons/weapon/hook.qc b/qcsrc/common/weapons/weapon/hook.qc index 23e7c23ae..ba7efe6a3 100644 --- a/qcsrc/common/weapons/weapon/hook.qc +++ b/qcsrc/common/weapons/weapon/hook.qc @@ -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: