Battlefield 3 Official Ranked game servers now available!

i3D.net Game Forums   i3D.net Support (email & live chat)
Amsterdam +31 (0)10 8900070
USA 1-800-482-6910 (toll free)
Frankfurt +49 69 257378709

Go Back   i3D.net Game Forums > i3D.net Community > Counter Strike Source & Zombie gameservers > Feature requests, bugs and new maps > CS Source: Work in Progress
Downloads
300 GB of games and patches
Downloads

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-5-2009, 19:12   #1 (permalink)
General
 
Diesel's Avatar
 
Join Date: 19 October 08
Location: Belgium
Posts: 5,188
Downloads: 7
Uploads: 0
Diesel 50Diesel 50

Default Sounds in SDK

Hello

Sry if its in the wrong sub-forum


I'm really stuck now.
I want to put my own sound in my map.
But not let it play it to the end.

So I got a list of questions :

1 : How do I add my own sound?
2 : How I let it play and stop after 10 seconds?
3 : How I let it play on other people computers?
( Or how that u download it with the map ? )

I googled but not found anything what is correct for me.

I know how to play standard sounds.

Can you please help me.
Read more on: : i3D.net Game Forums /cs-source-work-progress/58882-sounds-sdk.html
Diesel
__________________
I'm Diesel!
Diesel is offline   Reply With Quote
Sponsored Links
Old 11-5-2009, 19:50   #2 (permalink)
General
 
Join Date: 06 May 08
Posts: 8,191
Downloads: 44
Uploads: 0
Eastsider 50
Default

Quote:
Originally Posted by Diesel View Post
Hello

Sry if its in the wrong sub-forum


I'm really stuck now.
I want to put my own sound in my map.
But not let it play it to the end.

So I got a list of questions :

1 : How do I add my own sound?
2 : How I let it play and stop after 10 seconds?
3 : How I let it play on other people computers?
( Or how that u download it with the map ? )

I googled but not found anything what is correct for me.

I know how to play standard sounds.

Can you please help me.
Diesel
1) Saving the sound to the right place
Go to your cstrike/sounds/ folder and than create a new folder. (Called my sounds for example)
Copy your MP3 file into your folder called cstrike/sounds/my sounds.

Implementing it into the level
Put a ambient_generic into your map, then click on sounds name then browse and then search for your sound.
If you found the one you want click OK. If you want that the sounds play in your whole map go to FLAGS and click on play everywhere.
Now give the sound a name (diesel for example)

2) How to stop/play the sound after 10 seconds
Create a trigger brush, make it trigger_once / multiple depends on if it can be played more than once in one round.
Then go to outputs: Ontouch > triggername > playsound > Delay in seconds. If you keep 0.00 it will play immediately.
Want to stop the sound? Go to outputs again of the same trigger. Then ontouch > triggername > stopsound > Delay in seconds ( in this case 10)

3) Getting it to work on other people's PCs
First of all you will need PAKRAT. Once you've download that extract it to your destkop.
Now click on pakrat.jar, now search your BSP file of your map. Once you did that click on ADD and find your custom sound again. Then click yes to all.
Now you got the sound file in the map, you go to file and click on SAVE BSP, just overwrite your BSP. This should work!
Eastsider is offline   Reply With Quote

i3D.net is now on Facebook!
Old 11-5-2009, 19:52   #3 (permalink)
General
 
Diesel's Avatar
 
Join Date: 19 October 08
Location: Belgium
Posts: 5,188
Downloads: 7
Uploads: 0
Diesel 50Diesel 50
Default

K thanks eastsider.

Last question : I want it to make it work when I enter a zone
And the sounds must stops after 10 secs when it started.
Read more on: : i3D.net Game Forums http://forum.i3d.net/showthread.php?t=58882

How I do that?

Nvm
__________________
I'm Diesel!
Diesel is offline   Reply With Quote
Old 11-5-2009, 19:54   #4 (permalink)
Friend of i3d!
 
Dead_Owned_You's Avatar
 
Join Date: 12 December 07
Location: Koninkrijk der Nederlanden, Noordwijk ZH
Posts: 6,250
Downloads: 52
Uploads: 0
Dead_Owned_You 50Dead_Owned_You 50
Send a message via MSN to Dead_Owned_You Send a message via Skype™ to Dead_Owned_You
Default

Make a trigger with what east said in it
__________________
Intel© Core™2 Quad Q6600 @ 3,01Ghz ( 334 FSB * 9.0 @ 1,336 Vcore )
ASUS HD7770-2GD5 ( 1020 Mhz Clock / 4500Mhz Memory / 128bit)
1x Adata 128GB (550MB/s read 500MB/s write )
Dead_Owned_You is offline   Reply With Quote
Old 11-5-2009, 19:56   #5 (permalink)
General
 
Join Date: 06 May 08
Posts: 8,191
Downloads: 44
Uploads: 0
Eastsider 50
Default

Quote:
Originally Posted by Dead_Owned_You View Post
Make a trigger with what east said in it
Told him the same on steam friends.
Eastsider is offline   Reply With Quote
Old 11-5-2009, 20:00   #6 (permalink)
Colonel
 
senne teddy's Avatar
 
Join Date: 04 October 08
Location: Belgium
Posts: 1,136
Downloads: 0
Uploads: 0
senne teddy 30
Default

Quote:
Originally Posted by Eastsider View Post
3) Getting it to work on other people's PCs
First of all you will need PAKRAT. Once you've download that extract it to your destkop.
Now click on pakrat.jar, now search your BSP file of your map. Once you did that click on ADD and find your custom sound again. Then click yes to all.
Now you got the sound file in the map, you go to file and click on SAVE BSP, just overwrite your BSP. This should work!
Well, normally all custom things (like textures and models) are in the bsp already, so wouldn't it be the same for sounds?
__________________

senne teddy is offline   Reply With Quote
Old 11-5-2009, 20:09   #7 (permalink)
General
 
Diesel's Avatar
 
Join Date: 19 October 08
Location: Belgium
Posts: 5,188
Downloads: 7
Uploads: 0
Diesel 50Diesel 50
Default

Then go to outputs: Ontouch > triggername > playsound > Delay in seconds. If you keep 0.00 it will play immediately.
Read more on: : i3D.net Game Forums http://forum.i3d.net/showthread.php?t=58882
Want to stop the sound? Go to outputs again of the same trigger. Then ontouch > triggername > stopsound > Delay in seconds ( in this case 10)

How can u press Stopsound and Playsound in the same trigger?
__________________
I'm Diesel!
Diesel is offline   Reply With Quote
Old 11-5-2009, 20:35   #8 (permalink)
General
 
Join Date: 06 May 08
Posts: 8,191
Downloads: 44
Uploads: 0
Eastsider 50
Default

Quote:
Originally Posted by senne teddy View Post
Well, normally all custom things (like textures and models) are in the bsp already, so wouldn't it be the same for sounds?
Yeah, you can also press scan, so it will scan your map for custom textures. Is easier imo!
Eastsider is offline   Reply With Quote
Old 12-5-2009, 13:42   #9 (permalink)
Colonel
 
makaroonivelli's Avatar
 
Join Date: 09 February 07
Location: Finland
Posts: 1,476
Downloads: 7
Uploads: 0
makaroonivelli 30
Send a message via MSN to makaroonivelli Send a message via Yahoo to makaroonivelli
Default

Quote:
Originally Posted by Eastsider View Post
Yeah, you can also press scan, so it will scan your map for custom textures. Is easier imo!
Scan doesnt rly work for me. I gotta find them by myself, allways.
__________________

makaroonivelli is offline   Reply With Quote
Old 12-5-2009, 17:04   #10 (permalink)
Busdriver ಠ_ಠ
 
Roy [NL]'s Avatar
 
Join Date: 01 June 08
Location: Netherlands - Drenthe
Posts: 6,879
Downloads: 21
Uploads: 0
Roy [NL] 50Roy [NL] 50
Default

I have also a question about the sounds, how can i make it looped like a radio wich repeats everytime it ends
Roy [NL] is offline   Reply With Quote
Old 12-5-2009, 17:29   #11 (permalink)
Colonel
 
makaroonivelli's Avatar
 
Join Date: 09 February 07
Location: Finland
Posts: 1,476
Downloads: 7
Uploads: 0
makaroonivelli 30
Send a message via MSN to makaroonivelli Send a message via Yahoo to makaroonivelli
Default

Quote:
Originally Posted by Roy [NL] View Post
I have also a question about the sounds, how can i make it looped like a radio wich repeats everytime it ends
Flags: Isnotlooped; unchecked
__________________

makaroonivelli is offline   Reply With Quote
Old 15-5-2009, 06:18   #12 (permalink)
General
 
Genesis's Avatar
 
Join Date: 01 August 07
Posts: 5,671
Downloads: 39
Uploads: 7
Genesis 50Genesis 50
Send a message via MSN to Genesis
Default

added to tut
__________________
i3d is the best
Genesis is offline   Reply With Quote
Old 15-5-2009, 14:06   #13 (permalink)
Busdriver ಠ_ಠ
 
Roy [NL]'s Avatar
 
Join Date: 01 June 08
Location: Netherlands - Drenthe
Posts: 6,879
Downloads: 21
Uploads: 0
Roy [NL] 50Roy [NL] 50
Default

Quote:
Originally Posted by makaroonivelli View Post
Flags: Isnotlooped; unchecked
I tried that on and also off but both they stop when the sound ends.

Also the fade in and fade out are not working -.-
Roy [NL] is offline   Reply With Quote
Old 15-5-2009, 14:50   #14 (permalink)
Colonel
 
makaroonivelli's Avatar
 
Join Date: 09 February 07
Location: Finland
Posts: 1,476
Downloads: 7
Uploads: 0
makaroonivelli 30
Send a message via MSN to makaroonivelli Send a message via Yahoo to makaroonivelli
Default

Quote:
Originally Posted by Roy [NL] View Post
I tried that on and also off but both they stop when the sound ends.

Also the fade in and fade out are not working -.-
Your sound ain't looped then.
Find a sound with Loop in it's name.
__________________

makaroonivelli is offline   Reply With Quote
Old 15-5-2009, 15:25   #15 (permalink)
Busdriver ಠ_ಠ
 
Roy [NL]'s Avatar
 
Join Date: 01 June 08
Location: Netherlands - Drenthe
Posts: 6,879
Downloads: 21
Uploads: 0
Roy [NL] 50Roy [NL] 50
Default

Quote:
Originally Posted by makaroonivelli View Post
Your sound ain't looped then.
Find a sound with Loop in it's name.
The question was, how to make a custom sound looped ?
Answer is ? Add looped in name?
Roy [NL] is offline   Reply With Quote
Old 16-5-2009, 02:46   #16 (permalink)
Mapper/Tester
 
Join Date: 27 March 09
Posts: 548
Downloads: 6
Uploads: 0
GECLANPunisher 10
Default

Off the top of my head cant only .wavs be used?
GECLANPunisher is offline   Reply With Quote
Old 8-7-2009, 13:06   #17 (permalink)
Busdriver ಠ_ಠ
 
Roy [NL]'s Avatar
 
Join Date: 01 June 08
Location: Netherlands - Drenthe
Posts: 6,879
Downloads: 21
Uploads: 0
Roy [NL] 50Roy [NL] 50
Default

Finally i found the sound thread back

OK i have this sound, it is a custom sound.
The problem is, it isnt looped, when i go to flags and uncheck is NOT looped it still isnt looped.
Can anyone make this sound looped ?
Attached Files
File Type: rar Caralarm01.rar (33.5 KB, 3 views)
Roy [NL] is offline   Reply With Quote
Old 9-7-2009, 18:05   #18 (permalink)
Vex
Colonel
 
Vex's Avatar
 
Join Date: 30 December 06
Location: The Netherlands
Posts: 1,025
Downloads: 20
Uploads: 1
Vex 20
Default

The sounds must always be a .wav!
So download the free program Audacity, and paste the sound in there. If you want it to fade out, then edit the song a bit. When you're done, save it as "customsong.wav", for example, in your cstrike/sounds map.

Now we can open it in hammer, so make an ambient_generic, name it customsong and set the filtertype to raw, when selecting the song or sound you want to take.
Type customsong, and it'll be found in the list.
Select it, and check the flags tab of the ambient generic for any thing which has to be ticked or unticked.

Then, make a trigger or button, and add this output.
OnPressed/OnStartTouch customsong Play

If it's a big song, then just add:
OnPressed/OnStartTouch customsong Stop/Kill

Ok, it's done, but you'll still need to add it in Pakrat.
Read more on: : i3D.net Game Forums http://forum.i3d.net/showthread.php?t=58882
You can look the posts above, they'll tell you all.

I hope I told some things others didn't tell yet.
The main thing is that the sound must be a .wav, and eastsider said it can be a .mp3, which is wrong.


I think you get the point
__________________
Ivar
Vex is offline   Reply With Quote
Old 9-7-2009, 18:08   #19 (permalink)
i3d.net
 
basdej's Avatar
 
Join Date: 31 August 08
Location: Rhoon, Zuid-Holland
Posts: 1,915
Downloads: 21
Uploads: 0
Xfire: basdej
basdej 15
Default

Quote:
Originally Posted by !\/4R View Post

I hope I told some things others didn't tell yet.
The main thing is that the sound must be a .wav, and eastsider said it can be a .mp3, which is wrong.

wrong, Sounds can be mp3 if they are not looped.
For sounds with loop, use wav.
__________________
ingame name: OVERLORD [nl]
Intel Q6600 @ 2.40GHz (4 cores) 4096MB RAM, 1,5 TB hard drive, NVIDIA GeForce 8800 GTS
basdej is offline   Reply With Quote
Old 9-7-2009, 18:10   #20 (permalink)
Vex
Colonel
 
Vex's Avatar
 
Join Date: 30 December 06
Location: The Netherlands
Posts: 1,025
Downloads: 20
Uploads: 1
Vex 20
Default

Quote:
Originally Posted by Roy [NL] View Post
Finally i found the sound thread back

OK i have this sound, it is a custom sound.
The problem is, it isnt looped, when i go to flags and uncheck is NOT looped it still isnt looped.
Can anyone make this sound looped ?
You could try adding loop in the name, so:
caralarm_loop.wav

Or see this tutorial on looping:
FPSBANANA > Tutorials > CS:S > Mapping > Loop stubo
__________________
Ivar
Vex is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



New To Site? Need Help?

All times are GMT +2. The time now is 22:58.


©2011 INTERACTIVE 3D BV - Alle rechten voorbehouden
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264