From: Mario Date: Wed, 27 Dec 2017 00:28:59 +0000 (+1000) Subject: When chase_active is enabled either way, force player position for hook origin X-Git-Tag: xonotic-v0.8.5~2403 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb5639c7db6d9e03faff478de89035ba824a6e77;p=xonotic%2Fxonotic-data.pk3dir.git When chase_active is enabled either way, force player position for hook origin --- diff --git a/qcsrc/common/weapons/weapon/hook.qc b/qcsrc/common/weapons/weapon/hook.qc index 4a21a5169..b060484c1 100644 --- a/qcsrc/common/weapons/weapon/hook.qc +++ b/qcsrc/common/weapons/weapon/hook.qc @@ -318,7 +318,7 @@ void Draw_GrapplingHook(entity this) { default: case NET_ENT_CLIENT_HOOK: - if(autocvar_chase_active > 0) + if(autocvar_chase_active) a = csqcplayer.origin; else a = view_origin + view_forward * vs.x + view_right * -vs.y + view_up * vs.z;