The Elders' House of Pain

Public Forum => Counter-Strike---> Help => Topic started by: fraggle 79 on December 20, 2006, 07:08:51 PM

Title: How do i create a a script to play sounds
Post by: fraggle 79 on December 20, 2006, 07:08:51 PM
How do i create a a script to play .wav's in the game ?  :?
I searched around but what I found seemed to get way too complicated than it should be I think.

Always nice to humiliate someone with a nice "Boom HeadShot !".
Title: Re: How do i create a a script to play sounds
Post by: wonder. on December 20, 2006, 07:32:30 PM
too bad u always get killed before you could play that.
Title: Re: How do i create a a script to play sounds
Post by: He_Hate_Me on December 21, 2006, 12:05:10 AM
 :iamwithstupid:  :flamed:
Title: Re: How do i create a a script to play sounds
Post by: HongKongPhooey on December 21, 2006, 07:49:04 AM
There might be a way to do it but you will be the only one that will hear it.  You will not be able to force other players to hear your sound unless you spam it in the mic.
Title: Re: How do i create a a script to play sounds
Post by: WidowMaker on December 21, 2006, 10:39:54 AM
WOW hongs been paying attention!!! As he said You could do it but it won't help any. Even if you get the script right you will be the only one to hear it. In order for everyone to hear it the sound file would have to be on the server. then it could be done.

For a small fee I could do this for you and make you look cool. LOL

Widow
Title: Re: How do i create a a script to play sounds
Post by: fraggle 79 on December 21, 2006, 06:18:31 PM
How small a fee ?  I hav sum coins in my pokit.  :wink:
Title: Re: How do i create a a script to play sounds
Post by: {VT} Larry the Cucumber on July 11, 2007, 03:12:26 PM
There is a fairly simple way to do it.. i did allot of research as well. you have to use a little program to make it happen. but you just bind a key and play the wav and it makes it so everyone can hear.
Title: Re: How do i create a a script to play sounds
Post by: MR|337 on July 12, 2007, 09:17:40 AM
This script allows you to play sound in CS... however, in order to let it play you have to do following things --1. convert the sound to .wav file. 2.change the .wav property to 8.000 kHz, 8 bytes, mono. 3. rename the file to "voice_inpute.wav" 4. put it inside your Cstrike folder  5. Then you are done.

**Put those lines inside your autoexec.cfg or whatever you have**
//MUSIC TOGGLE SCRIPT
alias extoggle exon
alias exon "voice_inputfromfile 1; voice_loopback 1; +voicerecord; alias extoggle exoff"
alias exoff "-voicerecord; voice_inputfromfile 0; voice_loopback 0; alias extoggle exon"

bind "q" "extoggle"