]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Improve some names in the code
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 16:05:41 +0000 (18:05 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 16:05:41 +0000 (18:05 +0200)
data/qcsrc/server/vore.qc

index c9adc930e8e5644e5d8e7233416aab195c5b504d..f8f986313fa7626e3be51aa12909231fcaa22af7 100644 (file)
@@ -117,7 +117,7 @@ void Vore_CameraEffect_Apply()
 }\r
 \r
 .float gurgle_oldstomachload;\r
 }\r
 \r
 .float gurgle_oldstomachload;\r
-void Vore_Gurglesound()\r
+void Vore_GurgleSound()\r
 {\r
        if(time > self.gurglesound_finished || self.gurgle_oldstomachload != self.stomach_load)\r
        {\r
 {\r
        if(time > self.gurglesound_finished || self.gurgle_oldstomachload != self.stomach_load)\r
        {\r
@@ -128,7 +128,7 @@ void Vore_Gurglesound()
        }\r
 }\r
 \r
        }\r
 }\r
 \r
-void Vore_Weight_apply(entity e)\r
+void Vore_WeightApply(entity e)\r
 {\r
        // apply stomach weight that makes you heavier the more you eat\r
        // slowing the player is done in cl_physics.qc\r
 {\r
        // apply stomach weight that makes you heavier the more you eat\r
        // slowing the player is done in cl_physics.qc\r
@@ -179,7 +179,7 @@ void Vore_Swallow(entity e)
        e.predator.stomach_load += 1;\r
        e.predator.regurgitate_prepare = 0;\r
        e.predator.spawnshieldtime = 0; // lose spawn shield when we vore\r
        e.predator.stomach_load += 1;\r
        e.predator.regurgitate_prepare = 0;\r
        e.predator.spawnshieldtime = 0; // lose spawn shield when we vore\r
-       Vore_Weight_apply(e.predator);\r
+       Vore_WeightApply(e.predator);\r
 \r
        // block firing for a small amount of time, or we'll be firing the next frame after we swallow\r
        e.predator.weapon_delay = time + button_delay_time;\r
 \r
        // block firing for a small amount of time, or we'll be firing the next frame after we swallow\r
        e.predator.weapon_delay = time + button_delay_time;\r
@@ -219,7 +219,7 @@ void Vore_Regurgitate(entity e)
        e.predator.stomach_load -= 1;\r
        e.predator.regurgitate_prepare = 0;\r
        e.predator.swallow_delay = time + cvar("g_balance_vore_swallow_delay");\r
        e.predator.stomach_load -= 1;\r
        e.predator.regurgitate_prepare = 0;\r
        e.predator.swallow_delay = time + cvar("g_balance_vore_swallow_delay");\r
-       Vore_Weight_apply(e.predator);\r
+       Vore_WeightApply(e.predator);\r
 \r
        // block firing for a small amount of time, or we'll be firing the next frame\r
        e.weapon_delay = time + button_delay_time;\r
 \r
        // block firing for a small amount of time, or we'll be firing the next frame\r
        e.weapon_delay = time + button_delay_time;\r
@@ -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\r
        // the predator's stomach load is also decreased, as dead prey doesn't count any more\r
        e.predator.stomach_load -= 1;\r
        // first release the prey from the predator, as dead prey needs to be attached differently\r
        // the predator's stomach load is also decreased, as dead prey doesn't count any more\r
        e.predator.stomach_load -= 1;\r
-       Vore_Weight_apply(e.predator);\r
+       Vore_WeightApply(e.predator);\r
        e.predator = world;\r
 \r
        // now put our dead prey inside the predator's stomach, but only as an effect\r
        e.predator = world;\r
 \r
        // now put our dead prey inside the predator's stomach, but only as an effect\r
@@ -298,7 +298,7 @@ void Vore_Disconnect()
                        if(head.predator == self)\r
                                Vore_PreyRelease(head);\r
                }\r
                        if(head.predator == self)\r
                                Vore_PreyRelease(head);\r
                }\r
-               Vore_Gurglesound(); // stop the gurgling sound\r
+               Vore_GurgleSound(); // stop the gurgling sound\r
        }\r
 \r
        self.stomach_load = self.gravity = 0; // prevents a bug\r
        }\r
 \r
        self.stomach_load = self.gravity = 0; // prevents a bug\r
@@ -505,7 +505,7 @@ void Vore()
        }\r
 \r
        if(cvar("g_vore_gurglesound"))\r
        }\r
 \r
        if(cvar("g_vore_gurglesound"))\r
-               Vore_Gurglesound();\r
+               Vore_GurgleSound();\r
 \r
 // --------------------------------\r
 // Code that addresses the prey:\r
 \r
 // --------------------------------\r
 // Code that addresses the prey:\r