From: FruitieX Date: Wed, 13 Oct 2010 11:19:19 +0000 (+0300) Subject: don't increase the speed counter clientside if we're out of ammo X-Git-Tag: xonotic-v0.1.0preview~307^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=07f901e98573547d03ab2c2f46c4e12cbfd3a410;p=xonotic%2Fxonotic-data.pk3dir.git don't increase the speed counter clientside if we're out of ammo --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index b4da5c815..6305be323 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -838,7 +838,7 @@ void CSQC_UpdateView(float w, float h) else nex_speed = max(nex_minvelocity, nex_speed - nex_speed_falloff_rate * frametime); - if (activeweapon == WEP_NEX && button_attack2 && nex_charge) + if (activeweapon == WEP_NEX && button_attack2 && nex_charge && getstati(GetAmmoStat(3))) nex_speed = min(nex_maxvelocity, nex_speed + nex_charge_rate * frametime); // ring around crosshair representing bullets left in camping rifle clip