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 / Sound appears all over the game.

Author
Message
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 18th Sep 2006 07:36
Hi People,
I am sorry but I have posted similar problem before without receiving any solution so am trying again.

Why does decal sounds like fire, steam, etc appear all over the game? Is there any way to make those sounds heard when you are near that decal?

Thanks in advance

Prince
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 18th Sep 2006 17:11 Edited at: 18th Sep 2006 17:12
You need to have a 3D sound command in script for the sound to fade out at distance much as in real life. The command is listed in the manual and you can check an eitities script file to see if a correct 3D sound command is indicated. It should be the default.

Alternatively you could activate and deactivate or remove the entity from a game relative to player proximity.

First option might be the easiest for you.



"I am and forever will be your friend"
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 18th Sep 2006 21:15
Thanks Uman. I tried something. I couldnt understand the 3dsound command and how to use it but tried to customize the decal.fpi script and repeatsound.fpi. Here is the snippet. Can you or someone check it for me please and tell me where I am going wrong?

Decal.fpi


Sound.fpi


Thanks
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 18th Sep 2006 22:45
You might also check the sound script you are using.
Repeatsound.fpi and repeatsound2.fpi loop whatever sound that is made until the end of the level instead of just playing it once.
Decals might also work differently if you change the appear AI script from repeatsound or repeatsound2 to one of the appear AI scripts.
As always,backup any files you plan on changing beforehand.
When I have made my own decals they appear whether I use the repeatsound scripts or the appear scripts but the stock ones might be a little more fussy.
You might check out the Particles tutorial in the Tutorial city thread in the models and media forum.
It will give you a beter idea of how decals work and what adjustments you might be able to make.

Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 19th Sep 2006 01:09
Thanks FredP. I read the tutorial and it mainly talks about creating your own. But how do I control the sound of decal?

I could make the decal appear when I get into certain distance, but cant make it disappear when I am beyond that distance.

Login to post a reply

Server time is: 2024-11-22 23:59:38
Your offset time is: 2024-11-22 23:59:38