Footsteps

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Footsteps

Post by metal_head »

OK,I'm sure that I'm posting this in thewrong forum,but I don't know where to post such question.
I searched in the manual,but couldn't find anything and in the forums I didn't find a topic for that,so I'll have to ask.
Is it possible to make this: when the player steps on wood for example the footeps sound changes to wooden footsteps :D that when the player steps on metal the footsteps sound changes to metal footsteps.I have no idea how to do it...I was thinking of asigning different sound to different textures,but no Idea if that's possible,or if there is something about the question in the manual,please tell me where to search for it and sorry if it's in the manual!
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Footsteps

Post by Danimita92 »

There is a command (or was it a variable?) that tells you the texture under the player's feet. You can do it so depending on what texture, it'll play a different sound.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: Footsteps

Post by steven8 »

The environment.ini is where these sounds are called out:

;
; Environment.ini
;
; defines player movement sounds when in different environments
;

[Default]
footsteps\footstep.wav


[Water]
footsteps\w1.wav
footsteps\w2.wav
footsteps\w3.wav

[Lava]

[ToxicGas]

[ZeroG]

[Frozen]

[Sludge]

[SlowMotion]

[FastMotion]

[Ladders]
footsteps\m1.wav
footsteps\m2.wav

[Unclimbable]

[UserSurface1]

I assume usersurface is where you'd put gravel, etc. I'm not how you would call them when needed. PlayerSetup.ini has this section:

;
; player action sounds
;

[Sounds]
; maximum of 5 sounds per action
die = die1.wav
injury = injury1.wav
land = injury.wav
Steve Dilworth - Resisting change since 1965!
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Footsteps

Post by metal_head »

Thanks I was thinking about envirroment.ini ,but I'm not sure how to use it too :D! And about a scriptcommand,I'll search in the manual for that,and if there is,I will be great,because I'll just have to make a scripted list with the sounds and put it on each level,right?That will be an easy script,and I think I can handle something like it!
User avatar
Sorington
Posts: 77
Joined: Tue Jun 17, 2008 3:42 pm
Contact:

Re: Footsteps

Post by Sorington »

oh I didn't know that! :D
Greetings, Sorington
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Footsteps

Post by metal_head »

well,has somebody ever made this in his game?
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: Footsteps

Post by steven8 »

Okay, flag your brush you want to be the different surface as Usersurface1 in rfeditpro, then put that sound under usersurface1 in environment.ini. I think that'll do it. Haven't tried it myself, but it came to me as being our possible solution. You'd just need different brushes to walk on for the different surface.
Steve Dilworth - Resisting change since 1965!
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Footsteps

Post by metal_head »

it doesn't work...damn :D I was sure that would have solved the problem! Thanks for the help steven8,but we'll have to find another way.Hey,I havent tried making the brush empty and than moving in it.The waterr...the ladders they are all empty and play the sound,but then it gets a little complicated,because I'll hav to add one more empty brush to brushes I want to change the footsteps sound.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: Footsteps

Post by steven8 »

:| Crap. I thought sure that would work. I haven't actually tried it, but I'll see if I can get some time today.
Steve Dilworth - Resisting change since 1965!
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: Footsteps

Post by steven8 »

Okay. It doesn't work under Usersurface1, for some reason, but you don't have to use that. I made an empty invisible brush and checked the Toxicgas box of the brush, copied the diskfire1.wav file into the footsteps folder, then put this in the environment.ini file:

[ToxicGas]
footsteps\diskfire1.wav

When I walk across that area, it makes the diskfire sound until I'm off that brush. It doesn't hurt me, because I've just labeled the surface, toxicgas. Give it a try!
Steve Dilworth - Resisting change since 1965!
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Footsteps

Post by metal_head »

I was wondering if the source can be hacked and add more checkboxes to the brush options.Let's say add one Metal add Wood etc. and make them behave just like the toxic gas.That way we'll have more options for sounds not only one.But I was thinking about that script which asigns sound to a texture...is it possible to do it? It will be much more easier than adding brushes.If there are commands for this...
BTW I think in entidad there's this thing I asked for (different brushes-different sounds) but entidad is different from RF and don't know..maybe RF doesn't have such option.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: Footsteps

Post by steven8 »

Well. I assumed that's what Usersurface was for. :?
Steve Dilworth - Resisting change since 1965!
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Footsteps

Post by metal_head »

But it's not working...Hmmm..let's think,I'm sure Jay or QoD can help.
Post Reply