Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Problem
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#1
Small Problem

For a certain level in my story, I want my character to spawn next to a trashed room. However, I don't want the player to hear the sound of all the chairs/glass dropping and breaking. I could extend the level so that the character spawns farther away, but I don't really want to add unnecessary parts to the level. Is there any good way to mask this sound?

08-05-2011, 06:38 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Small Problem

void FadeGlobalSoundVolume(float afDestVolume, float afTime);

Influences the global sound volume, that means everything you can hear.

afDestVolume - desired volume
afTime - time in seconds until volume reaches desired volume

http://wiki.frictionalgames.com/hpl2/amn..._functions

set it to 0, then with a timer set it to 1 again.

(This post was last modified: 08-05-2011, 06:47 PM by Tanshaydar.)
08-05-2011, 06:46 PM
Website Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#3
RE: Small Problem

Another small problem (I figured I should keep these all in one thread instead of making a new thread for each one):

I want to play a noise (Specifically the "notice" noise from the enemy in Justine (ptest). However, when I use this sound file it defaults to the brute "notice" noise. Is there any way to specify?

The script I have is:
PlaySoundAtEntity("MonsterSummon","notice.snt","table_nice_wood01_1",0,false);

Also, is there a way to make a sound played in this fashion louder, so that I can still hear it through walls etc?

(This post was last modified: 08-05-2011, 11:29 PM by Homicide13.)
08-05-2011, 11:26 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: Small Problem

You can specify the path I think, like that: suitor/notice.snt

08-05-2011, 11:46 PM
Website Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#5
RE: Small Problem

(08-05-2011, 11:46 PM)Tanshaydar Wrote: You can specify the path I think, like that: suitor/notice.snt

Ah that worked, thanks.
What about the volume though? I want the sounds to come from a certain direction but right now they're too far away to hear. I'm pretty sure this is possible just within the scripting but I can't find the right script for it...

08-06-2011, 12:01 AM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#6
RE: Small Problem

You could just copy the .snt into your custom stories folder, name it something different, and set the volume in the snt file using notepad.
08-06-2011, 12:25 AM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#7
RE: Small Problem

Ah well it doesn't matter now, I solved the problem by moving the camera to face the direction I want it to be coming from and playing the noises where the player is located.

Thanks for the help though.

08-06-2011, 02:42 AM
Find




Users browsing this thread: 1 Guest(s)