Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

Custom MP3's for voices #503

Closed gmanc2 closed 9 years ago

gmanc2 commented 9 years ago

Yeah, this should be added.

Chessnut commented 9 years ago

You can add it yourself? Look at how the other voices are added.

gmanc2 commented 9 years ago

Yes there added from the hl2_sound_misc_dir.vpk I can't call them from anything else from what I've seen.

Chessnut commented 9 years ago

What?

On Fri, Jun 12, 2015 at 8:48 PM, gmanc2 notifications@github.com wrote:

Yes there added from the hl2_sound_misc_dir.vpk I can't call them from anything else from what I've seen.

— Reply to this email directly or view it on GitHub https://github.com/Chessnut/NutScript/issues/503#issuecomment-111667025.

gmanc2 commented 9 years ago

The sound directory you're using is the C:\Program Files (x86)\Steam\SteamApps\common\Half-Life 2\hl2\hl2_sound_misc_dir.vpk correct?

... How are you calling the sound files?

Chessnut commented 9 years ago

What do you mean by calling the sound files?

gmanc2 commented 9 years ago

nut.voice.Register("combine", "JURISDICTION", "Stabilization-jurisdiction.", "npc/metropolice/vo/stabilizationjurisdiction.wav")

This is under the marked as the function nut.voice.Register Which I assume is using the hl2_sound_misc_dir.vpk to call the voices. correct?

Chessnut commented 9 years ago

Yes, it's uses a HL2 sound file.

On Fri, Jun 12, 2015 at 8:51 PM, gmanc2 notifications@github.com wrote:

nut.voice.Register("combine", "JURISDICTION", "Stabilization-jurisdiction.", "npc/metropolice/vo/stabilizationjurisdiction.wav")

This is under the marked as the function nut.voice.Register Which I assume is using the hl2_sound_misc_dir.vpk to call the voices. correct?

— Reply to this email directly or view it on GitHub https://github.com/Chessnut/NutScript/issues/503#issuecomment-111667228.

gmanc2 commented 9 years ago

So, how would I add a costom sound?

Chessnut commented 9 years ago

Use your own sound path instead of a HL2 one?

On Fri, Jun 12, 2015 at 8:53 PM, gmanc2 notifications@github.com wrote:

So, how would I add a costom sound?

— Reply to this email directly or view it on GitHub https://github.com/Chessnut/NutScript/issues/503#issuecomment-111667275.

gmanc2 commented 9 years ago

Where is the sound path defined? Its not defined in that file?

Chessnut commented 9 years ago

Where you put the sound file.

On Fri, Jun 12, 2015 at 8:54 PM, gmanc2 notifications@github.com wrote:

Where is the sound path defined? Its not defined in that file?

— Reply to this email directly or view it on GitHub https://github.com/Chessnut/NutScript/issues/503#issuecomment-111667301.

Chessnut commented 9 years ago

nut.voice.Register("combine", "JURISDICTION", "Stabilization-jurisdiction.", "npc/metropolice/vo/stabilizationjurisdiction.wav")

Here, the sound like DOES NOT have to be from HL2. It can be from anywhere.

So you can replace "npc/metropolice/vo/stabilizationjurisdiction.wav" with "myserver/coolsound.mp3" if you wanted.

gmanc2 commented 9 years ago

hl2rp\gamemode\schema\voices\death-Roman_K-1190383229.mp3

That is where I put my custom mp3.

Chessnut commented 9 years ago

It needs to be under the sound folder just like every other sound file.

gmanc2 commented 9 years ago

Thank you very much... Also if it is not a huge hassle could you add me on steam I have few more questions and hope you can awnser... Much appricated.