footstep ![code/datums/elements/footstep.dm 2](git.png)
Footstep element. Plays footsteps at parents location when it is appropriate.
Vars | |
e_range | e_range stands for extra range - aka how far the sound can be heard. This is added to the base value and ignored if there isn't a base value. |
---|---|
footstep_sounds | This can be a list OR a soundfile OR null. Determines whatever sound gets played. |
footstep_type | footstep_type is a define which determines what kind of sounds should get chosen. |
sound_vary | Whether or not to add variation to the sounds played |
steps_for_living | A list containing living mobs and the number of steps they have taken since the last time their footsteps were played. |
volume | volume determines the extra volume of the footstep. This is multiplied by the base volume, should there be one. |
Procs | |
play_simplestep_machine | Prepares a footstep for machine walking |
prepare_step | Prepares a footstep for living mobs. Determines if it should get played. Returns the turf it should get played on. Note that it is always a /turf/open |
Var Details
e_range ![code/datums/elements/footstep.dm 10](git.png)
e_range stands for extra range - aka how far the sound can be heard. This is added to the base value and ignored if there isn't a base value.
footstep_sounds ![code/datums/elements/footstep.dm 14](git.png)
This can be a list OR a soundfile OR null. Determines whatever sound gets played.
footstep_type ![code/datums/elements/footstep.dm 12](git.png)
footstep_type is a define which determines what kind of sounds should get chosen.
sound_vary ![code/datums/elements/footstep.dm 16](git.png)
Whether or not to add variation to the sounds played
steps_for_living ![code/datums/elements/footstep.dm 6](git.png)
A list containing living mobs and the number of steps they have taken since the last time their footsteps were played.
volume ![code/datums/elements/footstep.dm 8](git.png)
volume determines the extra volume of the footstep. This is multiplied by the base volume, should there be one.
Proc Details
play_simplestep_machine
Prepares a footstep for machine walking
prepare_step
Prepares a footstep for living mobs. Determines if it should get played. Returns the turf it should get played on. Note that it is always a /turf/open