}\r
\r
if(!self.silent)\r
- sound(self, CHAN_PAIN, strcat("misc/gib_splat0", ftos(floor(prandom() * 4 + 1)), ".wav"), VOL_BASE, ATTN_NORM);\r
+ {\r
+ float vol;\r
+ vol = VOL_BASE;\r
+ if(self.scale) // sound volume dependent on gib size\r
+ vol *= self.scale;\r
+ vol = bound(0, vol, 1);\r
+\r
+ sound(self, CHAN_PAIN, strcat("misc/gib_splat0", ftos(floor(prandom() * 4 + 1)), ".wav"), vol, ATTN_NORM);\r
+ }\r
pointparticles(particleeffectnum(strcat(species_prefix(self.cnt), "blood")), self.origin + '0 0 1', '0 0 30', 10);\r
\r
Gib_Delete();\r
{\r
case 0x01:\r
if(!issilent)\r
- sound (self, CHAN_PAIN, "misc/gib.wav", VOL_BASE, ATTN_NORM);\r
+ {\r
+ float vol;\r
+ vol = VOL_BASE;\r
+ if(sz) // sound volume dependent on gib size\r
+ vol *= sz;\r
+ vol = bound(0, vol, 1);\r
+\r
+ sound (self, CHAN_PAIN, "misc/gib.wav", vol, ATTN_NORM);\r
+ }\r
\r
if(prandom() < amount)\r
TossGib ("models/gibs/eye.md3", org, vel, prandomvec() * 150, specnum, sz, 0, issilent);\r