Scripts / Atmospheric Sound Script

Author
Message
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 24th Nov 2015 11:38
Here is a quick script I created to demonstrate how you can trigger a looping sound and control the volume of the sound based on proximity to the player, which is ideal for incident sounds such as generators, steam, fire loops and other 'occurrences' in your game level. I have also made a video to accompany this script which will be uploaded shortly to our YouTube channel.
PC SPECS: Windows 7 Ultimate 64-bit, Intel Core i7 920 (PASSMARK:5008), NVIDIA Geforce 9600 GT GPU (PASSMARK:752) , 6GB RAM

Attachments

Login to view attachments
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 24th Nov 2015 11:42
Thanks Lee

I will give it a try
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 24th Nov 2015 12:39
Thank You
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Nov 2015 12:53
Thank you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

HarryWever
3D Media Maker
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: below Sea level
Posted: 24th Nov 2015 15:09
cool thanks...
Harry
PM
Ratall
16
Years of Service
User Offline
Joined: 29th Jun 2008
Location: Not Here
Posted: 24th Nov 2015 18:49 Edited at: 24th Nov 2015 21:15
Lee
Sorry but I thought the SetSoundVolume() was a master volume control (effecting all sounds) and that the 3d Sound system automatically adjusted the volume depending on the distance and direction the entity producing the sound is from the player .
Have I miss understood the purpose of the 3d sound system?

apologies just watched your vid nice demo. Still a little confused re: SetSoundVolume() Twitch 22 indicated it was a global volume but ogg you set playing with the trigger zone seemed to stay at the same volume even when the steaming barrel hiss went down in volume?
R.
CPU:i7-4720HQ Mem: 16G
Graphic: GTX 980M 8G and intel HD4600
OS: Windows10
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 24th Nov 2015 19:12
nice one Lee, Thanks.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
SounDesign
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 4th Mar 2015
Location:
Posted: 25th Nov 2015 17:43
Awesome! Thanks!!!!
PM
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 27th Nov 2015 16:01
Thank you Lee!
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 29th Nov 2015 12:49
This script seems to work great except the stopsound(e) is not stopping the entity sound.

Just edited Lee's script and it now seems to work better on my PC.

Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th Nov 2015 17:11
does your version work?
i think it's just because Lee missed the number as
Quote: "function StopSound(e,v)"
requires the slot number of the sound
his script should read

life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 29th Nov 2015 18:02
Mine appears to work ok, but I will add that extra bit in, thanks smallg
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.

Login to post a reply

Server time is: 2024-12-22 06:45:29
Your offset time is: 2024-12-22 06:45:29