Random sounds

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Random sounds

Postby D'Lanor » Tue Apr 01, 2008 8:23 am

Cyan uses sounds which play randomly. You can usually recognize these by "Random" or "Rand" in their filenames. And no, that is not a reference to Rand Miller ;)

Now PyPRP has this sound flag: - incidental. Is this what should be used for random sounds?

I tried the following flags on my sound emitter:
Code: Select all
- incidental
- autostart
- localonly
- is3dsound

That did not work though. It plays fine however if I replace incidental with looping so I know I set up the sound correctly.

I also tried the combination incidental and looping but then it just loops continuously.

I could set this up in python but I would like to know if there is an easy way before I attempt anything like that. So can it be done with sound flags?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Random sounds

Postby Tsar Hoikas » Tue Apr 01, 2008 12:20 pm

AFAIK, the random sound support has not been implemented... They're a bit... different... from conventional sounds.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Random sounds

Postby D'Lanor » Tue Apr 01, 2008 3:14 pm

Ok thanks. The Python way went fine btw. I used the Bahro scream method, but hardcoded the chance value instead of taking it from an SDL.

The hardest part was finding an Alcscript to pass the sound responder to a Python file. I don't think I did that properly but it works.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Random sounds

Postby Tsar Hoikas » Wed Apr 02, 2008 11:02 am

I don't blame you for using python on random sounds... I'm not too sure I understand how the devil Cyan does random sounds.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia


Return to Building

Who is online

Users browsing this forum: No registered users and 8 guests