Sound object

Make suggestions for improving one of the best games on the net!
Post Reply
User avatar
Supertanker
Private First Class
Private First Class
Posts: 363
Joined: Sat Mar 19, 2005 9:56 pm

Sound object

Post by Supertanker » Sat Oct 15, 2005 7:54 pm

A sound object could be used in a map to play a sound when a player gets withen a certain radius of the object. It would be fairly easy to put in the map with something like

Code: Select all

sound
name sound1
file boom
position 0 0 50
radius 70
ambient 1
end
Ambient makes teh sound apear from everywhere at once, while no ambience makes it come from a specific point (the object)

Just an idea...

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Sat Oct 15, 2005 8:16 pm

if your "ambient" makes it come from "everywhere", why does it need a position?
ImageJeffM

User avatar
Supertanker
Private First Class
Private First Class
Posts: 363
Joined: Sat Mar 19, 2005 9:56 pm

Post by Supertanker » Sat Oct 15, 2005 8:28 pm

Everywhere INSIDE the radius, so if you want to have the ambient sound at one corner of the map you would need a radius.

Or, for a radius that goes everywhere in the map, you could do smething like Radius * or Radius GLOBAL

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Sun Oct 16, 2005 12:07 am

sounds like that is just the trigger.

Best would be to tie it to a trigger zone, that way it could be more then just round.

code it up, let me know when it's done :)
ImageJeffM

Post Reply