Modular First Person Player 1.0.2.7
Loading...
Searching...
No Matches
MFPP.FootstepAsset Class Reference

Classes

class  Data
 

Public Member Functions

Data GetData (string name)
 Gets the corresponding footstep Data with the specified name.
 
Data GetData (Material material)
 Gets the corresponding footstep Data for the specified Material.
 
Data GetData (Texture texture)
 Gets the corresponding footstep Data for the specified Texture.
 
Data GetData (RaycastHit hit)
 Gets the corresponding footstep Data for the specified RaycastHit.
 

Properties

string DefaultFootstepsName [get, set]
 The default footsteps name that we select from the Footsteps list.
 
Data DefaultFootsteps [get]
 The default footsteps to use and also fallback to in the case that no matching footsteps were found.
 
List< DataFootsteps [get, set]
 The list of footstep data.
 
float WalkTimer [get, set]
 The walking timer interval. 1 = 1 second between footsteps, 0.5 = 0.5 seconds between footsteps and so on. Lower is faster.
 
float CrouchTimerMultiplier [get, set]
 Interval multiplier for the walking timer when crouching. Higher than 1 slows it down (e.g 1.4 = 1.4x interval length), lower and it speeds it up.
 
float SprintTimerMultiplier [get, set]
 Interval multiplier for the walking timer when sprinting. Higher than 1 slows it down, lower and it speeds it up (e.g 0.6 = 0.6x interval length).
 
float CrouchVolume [get, set]
 Footstep volume when crouching.
 
float WalkVolume [get, set]
 Footstep volume when walking.
 
float SprintVolume [get, set]
 Footstep volume when sprinting.
 
float LandingMinimumVelocity [get, set]
 The minimum landing velocity.
 
float LandingMaximumVelocity [get, set]
 The maximum landing velocity.
 
float LandingVolumeMultiplier [get, set]
 The final volume multiplier of the landing sounds.
 

Member Function Documentation

◆ GetData() [1/4]

Data MFPP.FootstepAsset.GetData ( Material material)

Gets the corresponding footstep Data for the specified Material.

Parameters
materialThe material.
Returns
The corresponding footstep Data for the specified Material.

◆ GetData() [2/4]

Data MFPP.FootstepAsset.GetData ( RaycastHit hit)

Gets the corresponding footstep Data for the specified RaycastHit.

Parameters
hit
Returns
The corresponding footstep Data for the specified RaycastHit.

◆ GetData() [3/4]

Data MFPP.FootstepAsset.GetData ( string name)

Gets the corresponding footstep Data with the specified name.

Parameters
nameThe name.
Returns
The corresponding footstep Data with the specified name.

◆ GetData() [4/4]

Data MFPP.FootstepAsset.GetData ( Texture texture)

Gets the corresponding footstep Data for the specified Texture.

Parameters
textureThe material.
Returns
The corresponding footstep Data for the specified Texture.

The documentation for this class was generated from the following file: