Use pow() for all scale differences, which should make them much more correct, and...
[voretournament/voretournament.git] / data / qcsrc / server / cl_player.qc
index 92c77a391654ffbf3aee65eec3715bef6bfe73b3..7e4f410553821cc8308b53d4403e353f42a73e00 100644 (file)
@@ -1236,7 +1236,7 @@ void GlobalSound(string sample, float chan, float voicetype)
        if(self.stat_eaten && cvar("g_vore_soundocclusion")) // reduce sound volume for prey, to simulate stomach culling\r
                vol *= cvar("g_vore_soundocclusion");\r
        if(cvar("g_healthsize") && cvar("g_healthsize_soundfactor")) // amplify or reduce sound volume based on the size of the player\r
-               vol *= (self.scale * cvar("g_healthsize_soundfactor"));\r
+               vol *= pow(self.scale, cvar("g_healthsize_soundfactor"));\r
        vol = bound(0, vol, 1);\r
 \r
        switch(voicetype)\r