Jump to content
Sign in to follow this  
Zylfrax791

Footsteps

Recommended Posts

Where exactly is the function defining how footsteps sound depending on the surface material? Is that within the blueprint of the landscape material itself and if so has anyone successfully added that to a new landscape material? I really like the sounds on Mestia when you walk on the cliffs.

Share this post


Link to post
Share on other sites

it's part of the Physics Material, IIRC. also i found the surface the PhysMats were put on had to have the Generate Overlap Events tick-box activated (either way - matters not which) to "refresh" the PhysMats on the surface, otherwise things like squibs and footfalls would not work.

- also, you have selected/set physical attributes for the mats and mesh, yes? - ie: "this surface is Dirt"

 

apart from using the same Mat from Mestia, you could maybe backtrack and locate the sound attached to the physics properties of the Mat - of course i just guessed all that and can't check it till after work at earliest.

 

anyone please correct me if i'm wrong :)

 

 

Share this post


Link to post
Share on other sites

I bielive it's in BP_Soldier.

I think I came across some functions inside, that raycasting the ground and returning its properties...

 

Let me start my SDK to double check...

Yep there is a "play footstep" function that do all the necessary logic...

 

LlIMeYU.png

 

If you want to add new material to existing library you don't have to change anything in blueprints.

No one doing games like this. Everything should be modular, so no one ever sets anything hard in the code. Well at least while there is a way to do it.

 

Look on physmats like a collection of different properties. Functionally they do not do anything, it's just a list. Around which you can build game logic depending on the functionality and game mechanics you're implement.

 

You can find them over there:

sy3NifL.png

 

And here is a guide for you on how to create and edit them. 

Basically you can just duplicate an existing one and change it on your taste and then plug it in phys mat slot in your material. Easy as that.

Edited by FishMan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×