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 / Breathing while running

Author
Message
HELP ME!!!!!!!!!!!
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location:
Posted: 3rd May 2010 07:44
How can I make a breathing sound while sprinting?

bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 3rd May 2010 21:07
Record/find a suitable sound, and add it in as an action in your running script... You should consider downloading FPI Edit Pad, you'll be able to find the correct commands there.

HELP ME!!!!!!!!!!!
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location:
Posted: 5th May 2010 11:25
FPI Edit Pad doesn't work for me.

bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 5th May 2010 18:51
What does it say?

Team Vent
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location:
Posted: 6th May 2010 05:44
Sounds cool!

If you get it working, post a snippet so I can test it out.
Sven
14
Years of Service
User Offline
Joined: 3rd Feb 2010
Location:
Posted: 7th May 2010 11:55
yeah, me to!

cheers from holland!
HELP ME!!!!!!!!!!!
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location:
Posted: 7th May 2010 13:31
My FPS Creator crashed during test game.

Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 7th May 2010 19:30
If you're using Project Blue (or Project Green I think) the script below should work:

desc = Sprint Script by Marc Steene

:state=0:etimerstart,state=1
:state=1,plrusingrun=1:state=2
:state=2,etimergreater=YOURSOUNDLENGTH:sound=$0,etimerstart

:plrusingrun=0:state=0

Set that in a trigger zone with your breathing sound in the Sound0 field. You also need to set the YOURSOUNDLENGTH to the sound length in milliseconds (e.g. 1000 = 1 second).

Please note - I haven't tested the script and wrote it without a guide in front of me so no guarantee it will work


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
LauchieC
14
Years of Service
User Offline
Joined: 7th May 2010
Location:
Posted: 8th May 2010 01:30
Hi I'm new to this forum, where do I put that script?

Team Vent
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location:
Posted: 10th May 2010 17:06
Marc Steene, how about one for us without Mods?
Team Vent
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location:
Posted: 15th May 2010 07:54
It can't be that difficult, can it?

One simply makes a dynamic light that plays the sound effect when the button is pressed, right?

I don't know scripting yet, but it doesn't seem that far fetched.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 15th May 2010 14:37
Quote: "Marc Steene, how about one for us without Mods? "


If you're not using a mod, you'll have to add in scancodekeychecks to see when the player is running instead of plrusingrun. Also, you'd have to use the timer instead of etimer.


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21

Login to post a reply

Server time is: 2024-11-25 00:16:09
Your offset time is: 2024-11-25 00:16:09