case VOICETYPE_GURGLE:\r
// since players can't be prey and predators at the same time, we don't use the prey modifier for the gurgle sound volume\r
if(self.stomach_load)\r
- sound7(self, chan, sample, bound(0, vol_scale * (self.stomach_load / self.stomach_maxload), 1), ATTN_NORM, pitch, 0);\r
+ sound7(self, chan, sample, bound(0, vol_scale * (self.stomach_load / self.stomach_maxload), 1), ATTN_NORM, pitch * 100, 0);\r
else\r
stopsound(self, chan);\r
break;\r
{\r
GlobalSound(self.playersound_gurgle, CHAN_TRIGGER, VOICETYPE_GURGLE, VOL_BASE);\r
\r
- self.gurglesound_finished = time + 11; // yes, hard coded sound length. I know it's bad but what can I do?\r
+ // yes, hard coded sound length. I know it's bad but what can I do?\r
+ if(cvar("g_healthsize") && cvar("g_healthsize_pitch"))\r
+ self.gurglesound_finished = time + 11 * pow(self.scale, -cvar("g_healthsize_pitch")); // modified sound pitch, based on player scale\r
+ else\r
+ self.gurglesound_finished = time + 11; // yes, hard coded sound length. I know it's bad but what can I do?\r
+\r
self.gurgle_oldstomachload = self.stomach_load;\r
}\r
}\r
\r
if(time > self.stomachkick_delay && !self.kick_pressed)\r
{\r
- float damage, vol;\r
+ float damage, vol, pitch;\r
vector force;\r
damage = cvar("g_balance_vore_kick_damage");\r
force = v_forward * cvar("g_balance_vore_kick_force");\r
vol = VOL_BASE;\r
\r
+ // modified sound pitch, based on player scale\r
+ if(cvar("g_healthsize") && cvar("g_healthsize_pitch"))\r
+ pitch = pow(self.predator.scale, -cvar("g_healthsize_pitch"));\r
+\r
// apply player scale to the damage / force of the kick\r
if(cvar("g_healthsize") && cvar("g_balance_vore_kick_scalediff"))\r
{\r
vol = bound(0, vol, 1);\r
\r
Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, force);\r
- sound(self.predator, CHAN_PROJECTILE, strcat("weapons/hit", ftos(floor(random() * 8)), ".wav"), vol, ATTN_NORM);\r
+ sound7(self.predator, CHAN_PROJECTILE, strcat("weapons/hit", ftos(floor(random() * 8)), ".wav"), vol, ATTN_NORM, 100 * pitch, 0);\r
self.predator.punchangle_x = crandom() * cvar("g_balance_vore_kick_predator_punchangle");\r
self.predator.punchangle_y = crandom() * cvar("g_balance_vore_kick_predator_punchangle");\r
self.predator.punchangle_z = crandom() * cvar("g_balance_vore_kick_predator_punchangle");\r