/datum/component/footstep
Footstep component. 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. |
steps | How many steps the parent has taken since the last time a footstep was played. |
volume | volume determines the extra volume of the footstep. This is multiplied by the base volume, should there be one. |
Procs | |
prepare_step | Prepares a footstep. 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
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.
steps
How many steps the parent has taken since the last time a footstep was played.
volume
volume determines the extra volume of the footstep. This is multiplied by the base volume, should there be one.
Proc Details
prepare_step
Prepares a footstep. Determines if it should get played. Returns the turf it should get played on. Note that it is always a /turf/open