April 25 2024 07:25:26
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 3

· Members Online: 0

· Total Members: 1,129
· Newest Member: areen
Teamspeak 3
Last Seen Users
· Intruder04:42:57
· areen08:29:31
· The ACE19:04:56
· GONZO 1 day
· Bonnfreddy 1 day
· hackepter 1 day
· Sully 3 days
· WEZ 3 days
· Homi 1 week
· Terminator 1 week
· Silent Bob 1 week
· Highl@nder 3 weeks
· Jardacz 3 weeks
· desintegrator 3 weeks
· gus 3 weeks

View Thread: Ambient sound for the entire map?
Vietcong.Info » Vietcong General Discussion » Maps & Mapping
Who is here? 1 Guest
Current Rating: (Total: 0 ratings)  
 Print Thread
Ambient sound for the entire map?
Curandero
Can anyone tell me or link to something explaining how to use an ambient sound on the whole map? No event but ever present sound?
 
Silent Bob
sound.c from SDK

Download source  Code

//SIMPLE SOUND SCRIPT

#include <inc\sc_global.h>

int ScriptMain(s_SC_SOUND_info *info){

   switch(info->message){

      case SC_SOUND_MESSAGE_INIT:

   SC_SND_SetHearableRatio(0.95f);      //set hearable ratio
   SC_SND_Ambient_Play(1005);      //play some ambient

         break;

   }// switch(info->message)

    return 1;


}// int ScriptMain(s_SC_SOUND_info *info)




the bold number refers to x_sounds_160.txt
 
www.vietcong.info
apfelbaum
in the xsound file the sound 1005 is defined under the heading "group_switch". does it mean something?
Edited by apfelbaum on 01-12-2011 18:03
 
Intruder
Use the sound(s) ID from the "3d ambient sounds" list only... The map's name in which they have been used are in that list either.
And don't forget to add soundswitches in your map if you use an ambient sound! Wink


Intruder
Edited by Intruder on 01-12-2011 18:46
 
Curandero
Thanks guys, will try it. Is the list or txt file inside the SDK?
 
Intruder
Have a look here... Wink



Intruder
 
Curandero
Thanks! Much appreciated. APPLAUSE

One observation now is when I F8 the scene in the editor the sound is there. As soon as I press F9 the sound seems to be either gone or very faint? Tried finalizing and almost same there: At start screen the sound is loud and after choosing class and weapon it's faint again (didn't check it properly yet).

Just a wild guess... is the SetHearableRatio value a kind of volume? Or a ratio between event and ambient sound thing?
 
Intruder
It's probably because you already have a soundswitch "somewhere" on your map that enters into "action"! lol
The soundswitch is set to a lower percentage, like 50% I guess? It's what should happen if you respawn inside of a hut for example!
Two possibilities... Or your soundswitch is acting on the whole ambient sound level (the whole map); or a soundswitch is close your respawning points and acts on them....

Curandero, I insist on my "notes" in my "how to", to understand your problem! Wink

Intruder wrote:

Notes:
- Don't forget to add soundswitches to your map if you use an ambient sound!
- You can test the result of an ambient sound + soundswitches in my VC_Storm_II map, "in and out" (use the Discovery mode!)...


If it's still not working, go "disable" your "default" sound.c file in the "dev folder" (...Vietcong\dev\compiler\default) by renaming it, like sound_original.c



Intruder
Edited by Intruder on 02-12-2011 21:03
 
Curandero
I Don't have any soundswitches in yet. Also I made the original sound.c identical to my project-sound.c. No change. Maybe it's my audio-options but then again I hear it loud on start screen while faint when spawned. Will soon test further.
 
Kermit
Try adding at least one soundswitch somewhere..
 
Curandero
Copy that. Will do so. Reporting back when attending to it again. Still in the process of populating scene with masses of vegetation. VC
 
Intruder
Curandero wrote:

I Don't have any soundswitches in yet... No change... but then again I hear it loud on start screen while faint when spawned...

Hmmm... It should work however...
Try this (like Kermit wrote); put a soundwitch at around 15-20 meters "high", in the middle of your map (1 should be enough) or "better", at your respawning points area and set it with:

Env1:
Inner obstruction:0.00 (not working)
Inner oclusion:0.00 (not working)
EAX id:0 (better to leave it at zero)
Env.sound volume:100.00
Uncheck Wet floor and Interior boxes

Env2:
Inner obstruction:0.00 (not working)
Inner oclusion:0.00 (not working)
EAX id:0 (better to leave it at zero)
Env.sound volume:100.00
Uncheck Wet floor and Interior boxes

Eax radius:1.00

(Un)check Entire sphere interpolation box (test with both)


IF it's still not working correctly, "place" all your respawning points "inside" the same soundwitch (move it to the ground level and set the Eax radius wide enough), OR place each respawning point inside a soundwitch (with the same settings above); it will depedning of your map "configuration"...



Intruder
Edited by Intruder on 03-12-2011 21:14
  x 1
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Upgrading your sound in Vietcong Vietcong Tech Talk 3 12-02-2023 19:13
How to fix the sound problem with Windows 7 OS Vietcong Tech Talk 5 30-04-2016 06:22
To lower the volume of sound when flag is stolen General Discussion 7 18-09-2015 05:47
own sound into map? Maps & Mapping 4 16-08-2015 22:15
Ambient sound problem Maps & Mapping 3 31-10-2014 02:40
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.36 seconds - 70 Queries 4,917,497 unique visits