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 / Make sound quiet as player gets far from source

Author
Message
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 28th Jan 2008 19:55
Ok. The subject is is a bit nerd I know.
Here is my more detailed question: i have an entity which has sound. In test game I can hear this sound in the whole level.

How can I configure this sound or write a script to soften the sound as the player get far away from the source of the sound?
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 28th Jan 2008 20:14
change the command SOUND to 3DSOUND.....

If it uses LOOPSOUND then I can't help you mate...sorry.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th Jan 2008 08:48
Incorrect, coffee grunt.

3DSound is not a command in FPSC:

plrsound=X
sound=X

Those are the two that you are talking about.

"plrsound" will play a sound that will be heard from anywhere (Because it's on top of the player no matter what)

"sound" will play a 3 dimensional sound, which shoul dget quieter the further away you are.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 29th Jan 2008 10:29
Thanks But bad news to me that this is not woring with loopsound.

I think I will solve it with soundzone. Not the best, but better then hear the sound in the whole level.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th Jan 2008 11:34
loopsound will basically loop a "plrsound" type sound.

So loopsound just loops something that you will always hear and will never fade away.

I was attempting to make a "loop3dsound" scripting command way back when, but it just wouldn't work.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 29th Jan 2008 13:51
Quote: "3DSound is not a command in FPSC:"


Sorry Plystire but it is. "3DSOUND=X plays a 3D sound specified by the X filename. Use $0 for soundest"



Was going to take a break... But I missed FPSC!
CultBraiN
16
Years of Service
User Offline
Joined: 6th Jan 2008
Location: Korea
Posted: 29th Jan 2008 16:40
SOUNDSCALE command will help you. I guess.
SOUNDSCALE=X changes the 3D sound scale by percentage X

The bird struggles out of the egg....
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Jan 2008 10:08 Edited at: 30th Jan 2008 15:18
Sorry, nickydude, but it isn't:



As you can see from this snippet in the source code, ACT(ion)SOUND is looking for the text "plrsound", and the ACT(ion)3DSOUND is looking for the text "sound".

This is from the V1.07 source code.

Use it wisely.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 30th Jan 2008 12:38
Hmm. I will try out. this scoundscale and 3dsound.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 31st Jan 2008 00:55
Quote: "Sorry, nickydude, but it isn't:"


Then there's another script command that isn't implemented. I stand corrected.

Was going to take a break... But I missed FPSC!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 31st Jan 2008 08:44
It's implemented, it's just under a different name is all.


The one and only,
~PlystirE~

Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 31st Jan 2008 18:40
Quote: "Then there's another script command that isn't implemented. I stand corrected."
I'll ask for a 3D sound command!

[img]
[/img] Check out the Elite OPS Terrorstike thread in the showcase.
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 31st Jan 2008 22:23
Me too.
Slayer_2
18
Years of Service
User Offline
Joined: 18th Sep 2006
Location: Anywhere I feel like
Posted: 1st Feb 2008 03:33
Lee's asking me to collect commands so I'll make sure it's in the list.

[img][/img]
Go to Elite OPS Terrorstike in the Showcase.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Feb 2008 08:29
Everyone STOP right there!

Did you not just read what I said?

It IS a command already, it's just not CALLED "3dsound", it's called "sound" and SOUND isn't called "sound" it's called "plrsound".

If you ask Lee for anything, simply ask him to rename them... but I warn you that a lot of scripts will stop working.


The one and only,
~PlystirE~

dumpus
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Canada, eh?
Posted: 8th Mar 2008 07:10
I believe I have it figured out:

Create a dynamic object, and place it where you want the sound to come from. Set the main script to 'repeatsound.fpi', and at the bottom where is says 'Sound0', find the location of the sound file you want to loop. The sound should now loop, and fade out as you move farther away.

*This post will self-destruct in 10 seconds.*
Bad Monkey
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location:
Posted: 14th Mar 2008 17:21
I came across the same problem with my levels. The sound would fade away but not disappear completely. I ended up just using sound zones and it seemed to work just fine.

Buy some new FPSCreator Ready Characters at:
http://www.freewebs.com/fpscharacters/
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 14th Mar 2008 17:29
Plystire,

Thanks very much for the clarification on the two sound commands.

Quote: "Everyone STOP right there!

Did you not just read what I said?

It IS a command already, it's just not CALLED "3dsound", it's called "sound" and SOUND isn't called "sound" it's called "plrsound"."


...pretty clear.

It would do more harm than good to have the commands renamed. Too many scripts would cease to work, without manually edits.

We don't want more hassles. We want FPSC to become easier to use...

ARE YOU A LONE WOLF? CLICK BELOW TO JOIN THE PACK.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 14th Mar 2008 20:20
Indeed, Seth. I think what would be more appropriate is for them to redo the manual. At least, the scripting portion, to make it correct. (Remove commands that don't work correctly, rephrase descriptions to be correct, etc.)


The one and only,
~PlystirE~

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 15th Mar 2008 18:00
I think a manual just on the scripting language and what it can do (with lots of examples) would stop many a person saying "how cr*p the software is" because they aren't using it to it's full potential, because they don't know about scripting.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 15th Mar 2008 18:14
Quote: "I think a manual just on the scripting"


Yes! Yes, that would be the cat's pajamas.

Best.

CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 15th Mar 2008 18:28
I'm considering making an edited version of the current manual, to bring it back up to date......

How many of you would say this would be worth it?

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 15th Mar 2008 19:16
Just an update of the scripting portion, if done well, would be a major undertaking by someone who knows the code. The entire manual would be unnecessary IMO.

Best.

CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 15th Mar 2008 19:18
Well, I'm pretty sure I know the code well.....

I could ask Ply for help on anything I'm unsure of, He's seen the source code, so He'll be able to help me pretty well.....

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th Mar 2008 23:32
Yup, if you got a question, just email me.


For some reason, when I read your post I read this part as:

Quote: "He's seen the light,"


lmao, don't ask me why.


Also, when referencing me with a pronoun... please don't capitalise it like you did. Don't want anyone thinking I'm some sort of god.




The one and only,
~PlystirE~

CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 15th Mar 2008 23:34
.....

Ok, that was random....your godliness.....

Login to post a reply

Server time is: 2024-11-24 06:37:03
Your offset time is: 2024-11-24 06:37:03