From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 18 May 2020 19:02:51 +0000 (+0200) Subject: remove swamp detection in strafehud due to recent changes to swamps X-Git-Tag: xonotic-v0.8.5~738^2~69 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a85d59d9095ecdd1bba1b5354e308a037f3e3bcb;p=xonotic%2Fxonotic-data.pk3dir.git remove swamp detection in strafehud due to recent changes to swamps --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 1c6f5b0cf..73f158d69 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -78,9 +77,8 @@ void HUD_StrafeHUD() float strafehud_onground = strafeplayer == csqcplayer ? IS_ONGROUND(strafeplayer) : !(strafeplayer.anim_implicit_state & ANIMIMPLICITSTATE_INAIR); float strafehud_speed = !autocvar__hud_configure ? vlen(vec2(csqcplayer.velocity)) : 1337; // use local csqcmodel entity for this even when spectating, flickers too much otherwise float strafehud_maxspeed_crouch_mod = IS_DUCKED(strafeplayer) ? .5 : 1; - float strafehud_maxspeed_swamp_mod = strafeplayer.in_swamp ? strafeplayer.swamp_slowdown : 1; float strafehud_maxspeed_phys = strafehud_onground ? PHYS_MAXSPEED(strafeplayer) : PHYS_MAXAIRSPEED(strafeplayer); - float strafehud_maxspeed = !autocvar__hud_configure ? (strafehud_maxspeed_phys * strafehud_maxspeed_crouch_mod * strafehud_maxspeed_swamp_mod) : 320; + float strafehud_maxspeed = !autocvar__hud_configure ? (strafehud_maxspeed_phys * strafehud_maxspeed_crouch_mod) : 320; float strafehud_vel_angle = vectoangles(strafeplayer.velocity).y; float strafehud_view_angle = view_angles.y + 180; float strafehud_angle; @@ -260,7 +258,7 @@ void HUD_StrafeHUD() } if(strafehud_turn) { - strafehud_maxspeed = PHYS_MAXAIRSTRAFESPEED(strafeplayer) * strafehud_maxspeed_swamp_mod; // no crouching here because it doesn't affect air strafing + strafehud_maxspeed = PHYS_MAXAIRSTRAFESPEED(strafeplayer); // no crouching here because it doesn't affect air strafing strafehud_wishangle = strafehud_turnangle; } }