Sound to key?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Sound to key?

Post by Devil_Dog »

How would I apply a sound to a key? I want to make it so when I press acertain key, as a player it makes a sound. Example: If I press "j" it makes the sound of dogs barking. I want this to happen from player side, like a taunt. I want the other players to here it, on both sides.

I would need to know where to find the sound also. I have DasEnde wich has dogs in it, and the MultiDog mod also, so I could probably get the sound from one of them?

I am running SH, and I have ScriptEdidtor (but haven't used it much).
Thanks for any help!
:twisted: Devil_Dog
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

sound

Post by tltrude »

I do not think that is posible, but I could be wrong.
Tom Trude,

Image
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Post by Devil_Dog »

20 veiws 1 reply...I think you might be right titrude! Thank you any way guys, would have been cool to bark at people.

:twisted: Devil_Dog
Computers hate me!!!!!
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You could make people bark by pressing the use key, but they would do so when they would be opening doors, using MGs etc. as well. ;)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Post by Devil_Dog »

I wanted to do it so I could bark at people in the game to intimidate them :roll: .

Would be player side (for me) to use as a taunt. I wasn't adding it to a map or anything like that.
Computers hate me!!!!!
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

Devil_Dog wrote:I wanted to do it so I could bark at people in the game to intimidate them :roll: .

Would be player side (for me) to use as a taunt. I wasn't adding it to a map or anything like that.
what about simply adding it as one of the melee/second attack/bash sounds ? and then changing the line in ubersound ? granted you would have to switch to pistol and then right click.
i'm not f****** angry, i'm from philadelphia .
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

unless you specifically make them download and install a file you cannot.

easily.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

i plum figured as much, a-yup.
i'm not f****** angry, i'm from philadelphia .
Image
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Post by Devil_Dog »

Thats why I figured to use the sound from one of the single player missions. That way most people would have it already.

How do I make it a "melee/second attack/bash sound" I browsed the tutorials, didn't see it. Sorry. not really good with this stuff, just starting out. Thanks for the help again.
Computers hate me!!!!!
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

Devil_Dog wrote:Thats why I figured to use the sound from one of the single player missions. That way most people would have it already.

How do I make it a "melee/second attack/bash sound" I browsed the tutorials, didn't see it. Sorry. not really good with this stuff, just starting out. Thanks for the help again.
pretty simple, other than skins, it's the easiest mod to do....


create three .wav files (three different sounds for bashing or whatever)
title them :

PistolHit1.wav
PistolHit2.wav
PistolHit3.wav


create folder sound.
create subdirectory inside sound and title it weapons.
create subdirectory inside weapons and title it foley.

place all the above into a .pk3 file.
put your custom sounds in the foley folder.
title it zzzz_whatever_bashsounds.
put into mohaa/main folder.

unless you change your ubersound script for the server, you'll only be able to customize three sounds. double check them because sometimes it gets funky and some .wav files don't seem to work (simply double click on the .wav file in the .pk3 to see if it plays). if , and i don't see why, you have any trouble doing this, email me the three .wav files you want to use and i'll throw it together for you.
i'm not f****** angry, i'm from philadelphia .
Image
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Post by Devil_Dog »

Cool thanks man. As to the "if you have trouble,don't see why", give me a chance to show you how computer inept I am...lol. Joke, sure I can get it from there, thanks again.

:twisted: Devil_Dog
Computers hate me!!!!!
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

see, i'm more than fishing for replies in off topic.
i'm not f****** angry, i'm from philadelphia .
Image
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Post by Devil_Dog »

HeHeHe...Works! I haven't found the dogs barking sound in MOH files yet, but the toilet flushing sound is a riot on the battle feild. who needs bullets when you can kill 'em all with humor. Thanks PKM!

And keep fishing in the off topic, thats my daily laugh fest.
Computers hate me!!!!!
Post Reply