From: MirceaKitsune Date: Sun, 27 Feb 2011 16:05:41 +0000 (+0200) Subject: Improve some names in the code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f4056413559053bbb83640837b0750cb139e339b;p=voretournament%2Fvoretournament.git Improve some names in the code --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index c9adc930..f8f98631 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -117,7 +117,7 @@ void Vore_CameraEffect_Apply() } .float gurgle_oldstomachload; -void Vore_Gurglesound() +void Vore_GurgleSound() { if(time > self.gurglesound_finished || self.gurgle_oldstomachload != self.stomach_load) { @@ -128,7 +128,7 @@ void Vore_Gurglesound() } } -void Vore_Weight_apply(entity e) +void Vore_WeightApply(entity e) { // apply stomach weight that makes you heavier the more you eat // slowing the player is done in cl_physics.qc @@ -179,7 +179,7 @@ void Vore_Swallow(entity e) e.predator.stomach_load += 1; e.predator.regurgitate_prepare = 0; e.predator.spawnshieldtime = 0; // lose spawn shield when we vore - Vore_Weight_apply(e.predator); + Vore_WeightApply(e.predator); // block firing for a small amount of time, or we'll be firing the next frame after we swallow e.predator.weapon_delay = time + button_delay_time; @@ -219,7 +219,7 @@ void Vore_Regurgitate(entity e) e.predator.stomach_load -= 1; e.predator.regurgitate_prepare = 0; e.predator.swallow_delay = time + cvar("g_balance_vore_swallow_delay"); - Vore_Weight_apply(e.predator); + Vore_WeightApply(e.predator); // block firing for a small amount of time, or we'll be firing the next frame e.weapon_delay = time + button_delay_time; @@ -240,7 +240,7 @@ void Vore_DeadPrey_Configure(entity e) // first release the prey from the predator, as dead prey needs to be attached differently // the predator's stomach load is also decreased, as dead prey doesn't count any more e.predator.stomach_load -= 1; - Vore_Weight_apply(e.predator); + Vore_WeightApply(e.predator); e.predator = world; // now put our dead prey inside the predator's stomach, but only as an effect @@ -298,7 +298,7 @@ void Vore_Disconnect() if(head.predator == self) Vore_PreyRelease(head); } - Vore_Gurglesound(); // stop the gurgling sound + Vore_GurgleSound(); // stop the gurgling sound } self.stomach_load = self.gravity = 0; // prevents a bug @@ -505,7 +505,7 @@ void Vore() } if(cvar("g_vore_gurglesound")) - Vore_Gurglesound(); + Vore_GurgleSound(); // -------------------------------- // Code that addresses the prey: