Jump to content
  • 0

Random pitch shifting monster sounds


Cacodoomonic

Question

Posted (edited)

I need a little help with this. Certain ports of DOOM gave random monster voice pitches. Meaning it sounded different each time you encountered a monster by random (i know this was universally hated for the most part). But this is something I want to replicate in my mod. How can I do this? I assume it is done with SNDINFO, but I cannot seem to find the function.

 

This is my sound info but it gives me an error on bootup.

//ZOMBIE MAN
$pitchshift Zombie/Idle 7.0
$pitchshift Zombie/Active 7.0
$pitchshift Zombie/Sight 7.0
$pitchshift Zombie/Attack 7.0
$pitchshift Zombie/Pain 7.0
$pitchshift Zombie/Drath 7.0
Zombie/Active  ZOMBIE03
Zombie/Idle    ZOMBIE01
Zombie/Sight   ZOMBIE05
Zombie/Attack  ZOMBIE04
Zombie/Pain    ZOMBIE06
Zombie/Death   ZOMBIE02

This is my error message:

Execution could not continue.

Script error, "CriesOfDoom.ipk3:sndinfo" line 371:
SC_GetNumber: Bad numeric constant "7.0".

I can't figure out what is wrong. I tried adding the range in triangular brackets also. Nothing.

 

edit: I removed the .0's and the game boots up now. However, the random pitch shifted voices still do not take effect. I'm not sure why.

Edited by Cacodoomonic

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

If you use $pitchset you can set a random range that doesn't depend on "randomize pitches" being set in the sound options.

 

This will make the pistol shift randomly in a range between half-speed and double speed (probably far more than you want for a sound):

$pitchset weapons/pistol 0.5 2.0

 

Keep in mind that some people *really* hate random pitch shifting and this takes away the option for them to disable it.

Edited by plums

Share this post


Link to post
  • 0
Posted (edited)
8 hours ago, plums said:

If you use $pitchset you can set a random range that doesn't depend on "randomize pitches" being set in the sound options.

 

This will make the pistol shift randomly in a range between half-speed and double speed (probably far more than you want for a sound):


$pitchset weapons/pistol 0.5 2.0

 

Keep in mind that some people *really* hate random pitch shifting and this takes away the option for them to disable it.

So if I do this:

$pitchset Zombie/Pain 0.5 1.0

For example, the single wav file in the game will be randomly shifted from half pitch to normal pitch? 

 

17 hours ago, Shepardus said:

You need to have pitch shifting enabled in your sound options for it to take effect.

What do I do if I do not have a sound options? My entire mod uses a custom options menu and that detail isn't on it.

Edited by Cacodoomonic

Share this post


Link to post
  • 0
2 minutes ago, Cacodoomonic said:

For example, the single wav file in the game will be randomly shifted from half pitch to normal pitch? 

I don't know the details of what else you're doing, but yes that should work.

Share this post


Link to post
  • 0
1 hour ago, plums said:

I don't know the details of what else you're doing, but yes that should work.

Works perfectly, thank you so much.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...