From: MirceaKitsune Date: Sun, 29 Jan 2012 16:56:07 +0000 (+0200) Subject: Fix a bug causing regurgitation to loop if holding the regurgitate button down. Mainl... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=76a38f7fe7eac30eae67bac70a7731b4e2f335b9;p=voretournament%2Fvoretournament.git Fix a bug causing regurgitation to loop if holding the regurgitate button down. Mainly fixes bots. --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 50f0e43f..464afe50 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -790,6 +790,7 @@ void Vore() // predator wishes to regurgitate his prey if(self.BUTTON_REGURGITATE && time > self.action_delay) + if(!self.regurgitate_prepare) { if(self.stomach_load) { @@ -862,9 +863,8 @@ void Vore() // apply delayed regurgitating if it was scheduled if(self.predator.regurgitate_prepare && time > self.predator.regurgitate_prepare) { - self.predator.regurgitate_prepare = 0; - self.predator.complain_vore = time + complain_delay_time; // prevent complaining the next frame if this empties our stomach Vore_Regurgitate(self); + self.predator.complain_vore = time + complain_delay_time; // prevent complaining the next frame if this empties our stomach } // execute digesting and team healing diff --git a/docs/Release notes.txt b/docs/Release notes.txt index 69050bef..fb50b5c7 100644 --- a/docs/Release notes.txt +++ b/docs/Release notes.txt @@ -270,6 +270,8 @@ Bug fixes: - Fix a few divisions by 0, specifically those that would take place constantly. +- Holding the Regurgitate button down would cause the process to loop infinitely, which could also cause bots to get stuck trying to throw up. + 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 4e232b36..3432e10f 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -114,8 +114,6 @@ - 0.7 | 0.8: Maybe find better footstep sounds? -- 0.7 | 0.8: Bots get stuck with eaten items sometimes. - - 0.7 | 0.8 BUG: Gibbed dead bodies seem to keep throwing gibs infinitely on dedicated servers. - 0.8: Chat portraits for all models. @@ -123,3 +121,9 @@ - +0.8: Fix flying spectators not going through teleporters and warpzones. Very hard, since they're FLY_WORLDONLY and can't touch triggers - 0.7: Randomize all punchangles. + +- 0.7 | 0.8: Enable r_shadows in some way? + +- 0.7 BUG: Flying spectators cause impact particles. Don't! + +- 0.7 | 0.8: Dim screen while swallowing or being swallowed.