Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / noiseheard

Author
Message
Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 5th Mar 2009 14:46
What is a broadcast noise? I see in some code the use of noiseheard=5 and in some code the use of noiseheard=300. What are those? Different noises? Is there a list of ID codes for different noises? What is the code for footsteps and for gunfire?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Mar 2009 20:41
When you play a sound via the "sound" command, it will create a "broadcasted" sound, which is technically hearable all over the level. If an entity is close enough to where the sound originated from then the "noiseheard" condition will be true. Remember that any physics created sounds are also broadcasted, as are footsteps and firing a weapon.

The parameter seems to have no effect whatsoever on this command.

The way it works is if the broadcasted sound's strength, multiplied by 10, is greater than the vector distance from the entity to the sounds origination.... then the sound can be heard by that entity and will trigger the "noiseheard" command.


Hope that all made sense.


The one and only,


Brian In Korea
15
Years of Service
User Offline
Joined: 1st Mar 2009
Location:
Posted: 5th Mar 2009 22:28
Interesting.

So for the condition :Noiseheard = 5 what is the 5 referring to?

It seems like :Noiseheard is either true or false 1 or 0. It would never equal 5.

Login to post a reply

Server time is: 2024-11-24 20:35:45
Your offset time is: 2024-11-24 20:35:45