Forum Mod Bakery Docs

Giving characters voices outside of mission dialogue (RESOLVED)

Posted in Support
Please login to contribute to the conversation.
Hey, what's up. I would ask on Discord, but my internet broke somehow, and Discord just so happened to be one of the only sites I cannot visit until Monday (someone's coming over to fix it on Monday)

That aside, how do I give custom characters voices when things happen? (e.g. getting hit by a car, hitting someone with a car, sprinting, falling in a death plane, etc.)

Here's a snippet of my dialog.spt.

create daSoundResourceData named d_hitp_jim_01
{
    AddFilename ( "jimmy/d_hitp_jim_01.rsd" 1.000000 )
    SetStreaming ( true )
}

I think it's worth mentioning that my voices are .ogg, and I tried using .ogg instead of .rsd as the file format in the dialog.spt file.
Alright, found it out: (I think) "jim" is already used by the game, so I renamed the dialogue code. I also capitalized the SoundResourceData name. And if this matters to anyone, I accidentally had the audio set to 22050 HZ rather than 24000 HZ.