soundscape play sound only once?

Ambient sounds, game effects and music creation.

soundscape play sound only once?

Postby Xyphos on Thu Jan 16, 2014 3:48 pm

I've been mapping for a while now so I'm familiar with Hammer, but I'm new to the sounds portion of mapping so my previous maps have been for the most part, silent.

what I want to do is play a global-range non-looped sound in a multiplayer map that can only be heard by the person triggering that sound from different locations.

I've seen the online documentation for env_soundscape_triggerable and it seems to be what I need, but the documentation doesn't say how to make the sound play only once (NOT LOOPED)
Xyphos
Dumpling
Dumpling
 
Joined: Thu Jan 16, 2014 3:39 pm

Re: soundscape play sound only once?

Postby Dives on Fri Jan 17, 2014 2:48 am

You can do that by using a point_clientcommand to command "playgamesound directory\soundname.wav". For it to work, the player has to be the one to initiate the event, such as walking through a trigger or hitting a button.
User avatar
Dives
May Contain Skills
May Contain Skills
 
Joined: Sat Feb 28, 2009 9:54 pm
Location: Moorpark, CA

Re: soundscape play sound only once?

Postby Xyphos on Fri Jan 17, 2014 5:07 am

Dives wrote:You can do that by using a point_clientcommand to command "playgamesound directory\soundname.wav". For it to work, the player has to be the one to initiate the event, such as walking through a trigger or hitting a button.



THANKYOU!

your solution didn't work, but you did point me in the right direction!

point_clientCommand
name cmd_bell
OnUser1 !self Command PlayGameSound MySoundScript.Sound

trigger_multiple
OnStartTouching cmd_bell FireUser1



maps/<map name>_level_sounds.txt
Code: Select all
MySoundScript.Sound
{
  channel     CHAN_AUTO
  volume      VOL_NORM
  pitch       PITCH_NORM
  soundlevel  SNDLVL_GUNFIRE
  wave        "ambient/levels/canals/windchime2.wav"
}




this method, although a bit complex, did work!
now my mall shop doors rings the chime every time someone walks through the door :D
Xyphos
Dumpling
Dumpling
 
Joined: Thu Jan 16, 2014 3:39 pm

Return to Audio

Who is online

Users browsing this forum: No registered users

cron