Why does every stumpy sounds exactly the same?

Why does every stumpy sounds exactly the same?

Discuss sound effects, game music, and the creation thereof.

Moderator: Moderators

Post Reply
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Why does every stumpy sounds exactly the same?

Post by Auswaschbar »

Well, it doesn't have to, because you can now add some randomness to your sounds (in sounds.lua):

Code: Select all

RandomizedUnitSound = {
	file = "sounds/boringunitsound.wav",
	gain = 1.5,
	gainmod = 0.1,
	pitch = 1,
	pitchmod = 0.02,
},
Every time RandomizedUnitSound gets played, it will randomly select a gain from [(gain * (1 + gainMod)), (gain * (1 - gainMod))], the same goes for pitch. Obviously, *mod values should stay between 0 (old behaviour, now default) and 1.

Should be used to make battles sound more exiting. Don't overdo it, especially pitchmod will sound weird on larger values.
User avatar
Decimator
Posts: 1118
Joined: 24 Jul 2005, 04:15

Re: Why does every stumpy sounds exactly the same?

Post by Decimator »

Nifty! Does this work with Spring.PlaySoundFile as well?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Why does every stumpy sounds exactly the same?

Post by Auswaschbar »

It works from everywhere
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Why does every stumpy sounds exactly the same?

Post by Caydr »

I simulate this by just moving my camera around a lot.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Why does every stumpy sounds exactly the same?

Post by rattle »

what about control over playback speed for mickey mouse voices?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Why does every stumpy sounds exactly the same?

Post by Auswaschbar »

rattle wrote:what about control over playback speed for mickey mouse voices?
pitch is what you look for, althought it just makes mickey mouse voice without increased playback speed.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Why does every stumpy sounds exactly the same?

Post by TheFatController »

I'll probably get around to it myself however if someone wants to make a config (even a script generated one which within an acceptable margin of not sounding too wierd) for BA i'd happily review it and probably add it.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Re: Why does every stumpy sounds exactly the same?

Post by Dragon45 »

Hey, if you used the unit's unique ID to seed the values, then you could have unique consistent sounds! I would love to have a pet stumpy that made a particular pitch I liked :D
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Why does every stumpy sounds exactly the same?

Post by TheFatController »

BTW this is in BA now for a load of sounds including llt lasers, kbot servos (Core AK), flak explosions and of course the stumpy :)
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Why does every stumpy sounds exactly the same?

Post by Gota »

TheFatController wrote:BTW this is in BA now for a load of sounds including llt lasers, kbot servos (Core AK), flak explosions and of course the stumpy :)
In 7.11?
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Why does every stumpy sounds exactly the same?

Post by TheFatController »

Yeah 7.1+
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Why does every stumpy sounds exactly the same?

Post by Gota »

Hmm i opened sounds.lua and didn't see this command there.
In BA 7.11.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Why does every stumpy sounds exactly the same?

Post by TheFatController »

local Sounds = {
SoundItems = {
IncomingChat = {
file = "sounds/beep4.wav",
in3d = "false",
},
MultiSelect = {
file = "sounds/button9.wav",
in3d = "false",
},
MapPoint = {
file = "sounds/beep6.wav",
rolloff = 0.3,
dopplerscale = 0,
},
FailedCommand = {
file = "sounds/cantdo4.wav",
},
warning2 = {
file = "sounds/warning2.wav",
rolloff = 0.2,
dopperscale = 0,
},
lasrfir1 = {
file = "sounds/lasrfir1.wav",
pitch = 1,
pitchmod = 0.05,
},
lasrfir2 = {
file = "sounds/lasrfir2.wav",
pitch = 1,
pitchmod = 0.05,
},
lasrfir3 = {
file = "sounds/lasrfir3.wav",
pitch = 1,
pitchmod = 0.05,
},
bertha1 = {
file = "sounds/bertha1.wav",
pitch = 1,
pitchmod = 0.025,
},
bertha6 = {
file = "sounds/bertha6.wav",
pitch = 1,
pitchmod = 0.025,
},
flakhit = {
file = "sounds/flakhit.wav",
pitch = 1,
pitchmod = 0.075,
},
flakfire = {
file = "sounds/flakfire.wav",
gainmod = 0.1,
},
canlite3 = {
file = "sounds/canlite3.wav",
pitch = 1,
pitchmod = 0.05,
},
xplosml3 = {
file = "sounds/xplosml3.wav",
pitch = 1,
pitchmod = 0.05,
},
servlrg3 = {
file = "sounds/servlrg3.wav",
pitch = 1,
pitchmod = 0.025,
},
servlrg4 = {
file = "sounds/servlrg4.wav",
pitch = 1,
pitchmod = 0.025,
},
servmed1 = {
file = "sounds/servmed1.wav",
pitch = 1,
pitchmod = 0.025,
},
servmed2 = {
file = "sounds/servmed2.wav",
pitch = 1,
pitchmod = 0.025,
},
servroc1 = {
file = "sounds/servroc1.wav",
pitch = 1,
pitchmod = 0.025,
},
servsml5 = {
file = "sounds/servsml5.wav",
pitch = 1,
pitchmod = 0.025,
},
servsml6 = {
file = "sounds/servsml6.wav",
pitch = 1,
pitchmod = 0.025,
},
servtny1 = {
file = "sounds/servtny1.wav",
pitch = 1,
pitchmod = 0.025,
},
servtny2 = {
file = "sounds/servtny2.wav",
pitch = 1,
pitchmod = 0.025,
},
xplomas2 = {
file = "sounds/xplomas2.wav",
pitch = 1,
pitchmod = 0.05,
maxconcurrent = 3,
},
hackshot = {
file = "sounds/hackshot.wav",
pitch = 1,
pitchmod = 0.02,
maxconcurrent = 5,
},
},
}

return Sounds
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Why does every stumpy sounds exactly the same?

Post by Gota »

Yea i saw that.
Don't you need to use "randomizedunitsounds"?
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: Why does every stumpy sounds exactly the same?

Post by hunterw »

china will gwow largah

beooding the chinese empiyah
User avatar
Jazcash
Posts: 5306
Joined: 08 Dec 2007, 17:39

Re: Why does every stumpy sounds exactly the same?

Post by Jazcash »

hunterw wrote:china will gwow largah

beooding the chinese empiyah
I'm sorry wut?
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Re: Why does every stumpy sounds exactly the same?

Post by Erom »

Those were construction noises from the Chinese bulldozer in CnC Generals. Not that it makes it any less lolwut.
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: Why does every stumpy sounds exactly the same?

Post by hunterw »

its because they didnt sounds exactly the same
Post Reply

Return to “Sound Effects & Music”

cron