From: MirceaKitsune Date: Wed, 14 Mar 2012 23:06:26 +0000 (+0200) Subject: Fix a bug with the grabber hook not spawning if shooting it right after reload X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=fc22cb4edaf4802379cbce49ce3ad260289cc523;hp=9e8011ed38aab98f311104212c8c76b339856075;p=voretournament%2Fvoretournament.git Fix a bug with the grabber hook not spawning if shooting it right after reload --- diff --git a/data/qcsrc/server/w_grabber.qc b/data/qcsrc/server/w_grabber.qc index 89d20137..f0d34e0e 100644 --- a/data/qcsrc/server/w_grabber.qc +++ b/data/qcsrc/server/w_grabber.qc @@ -249,7 +249,8 @@ float w_grabber(float req) } else if (req == WR_RELOAD) { - self.grabber_state |= GRABBER_REMOVING; + if(self.clip_load >= 0) // prevents a bug + self.grabber_state |= GRABBER_REMOVING; W_Reload(min(cvar("g_balance_grabber_primary_ammo"), cvar("g_balance_grabber_secondary_ammo")), cvar("g_balance_grabber_reload_ammo"), cvar("g_balance_grabber_reload_time"), "weapons/reload.wav"); } else if (req == WR_SUICIDEMESSAGE) diff --git a/docs/Release notes.txt b/docs/Release notes.txt index c5315827..a81a3e55 100644 --- a/docs/Release notes.txt +++ b/docs/Release notes.txt @@ -274,6 +274,8 @@ Bug fixes: - Holding the Regurgitate button down would cause the process to loop infinitely, which could also cause bots to get stuck trying to throw up. +- If holding the alt fire button while reloading, the grabber would fire the hook (and take ammo) after reload, but the hook would not spawn. + Features: - There is no longer a player swallow limit. Players have a stomach capacity (for predators) and a mass (for prey), both based on player scale. As long as your mass is not exceeded, you can keep swallowing players. This affects your weight and overall player capacity based on player size as well. eg: You might be able to eat only one large player, three tiny players, or two normal sized players at the same time. Stomach size will also reflect your capacity, not the player count, being bigger or smaller based on the prey inside and their size compared to yours. By default, a macro can swallow up to 15 mircos and a micro up to 1 macro. diff --git a/docs/TODO.txt b/docs/TODO.txt index 7c87f7ee..00ef8d87 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -108,8 +108,6 @@ - 0.7 | 0.8: Use R_SetProperty instead of R_SetView -- 0.7 BUG: If holding the alt fire button down while reloading, the grabber will attempt to fire the hook after reload (and take ammo), but the hook will not spawn. - - 0.7 BUG: Swallow model gets bumped outside of the view at times. This is likely due to the change to offset the original weapon viewmodel. - 0.7 | 0.8: Do the Desertfactory textures have metal footsteps where they need to?