Files

1 line
6.1 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/component/footstep - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/component/footstep.html#var">Var Details</a> - <a href="datum/component/footstep.html#proc">Proc Details</a></header><main><h1>footstep <aside>/<a href="datum.html">datum</a>/<a href="datum/component.html">component</a>/<a href="datum/component/footstep.html">footstep</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L2"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 2"></a></h1><p>Footstep component. Plays footsteps at parents location when it is appropriate.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/component/footstep.html#var/e_range">e_range</a></th><td>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.</td></tr><tr><th><a href="datum/component/footstep.html#var/footstep_sounds">footstep_sounds</a></th><td>This can be a list OR a soundfile OR null. Determines whatever sound gets played.</td></tr><tr><th><a href="datum/component/footstep.html#var/footstep_type">footstep_type</a></th><td>footstep_type is a define which determines what kind of sounds should get chosen.</td></tr><tr><th><a href="datum/component/footstep.html#var/sound_vary">sound_vary</a></th><td>Whether or not to add variation to the sounds played</td></tr><tr><th><a href="datum/component/footstep.html#var/steps">steps</a></th><td>How many steps the parent has taken since the last time a footstep was played.</td></tr><tr><th><a href="datum/component/footstep.html#var/volume">volume</a></th><td>volume determines the extra volume of the footstep. This is multiplied by the base volume, should there be one.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/component/footstep.html#proc/play_simplestep_machine">play_simplestep_machine</a></th><td>Prepares a footstep for machine walking</td></tr><tr><th><a href="datum/component/footstep.html#proc/prepare_step">prepare_step</a></th><td>Prepares a footstep. Determines if it should get played. Returns the turf it should get played on. Note that it is always a /turf/simulated/floor (eventually /turf/open)</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/e_range"><aside class="declaration">var </aside>e_range <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L8"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 8"></a></h3><p>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.</p><h3 id="var/footstep_sounds"><aside class="declaration">var </aside>footstep_sounds <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L12"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 12"></a></h3><p>This can be a list OR a soundfile OR null. Determines whatever sound gets played.</p><h3 id="var/footstep_type"><aside class="declaration">var </aside>footstep_type <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L10"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 10"></a></h3><p>footstep_type is a define which determines what kind of sounds should get chosen.</p><h3 id="var/sound_vary"><aside class="declaration">var </aside>sound_vary <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L14"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 14"></a></h3><p>Whether or not to add variation to the sounds played</p><h3 id="var/steps"><aside class="declaration">var </aside>steps <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 4"></a></h3><p>How many steps the parent has taken since the last time a footstep was played.</p><h3 id="var/volume"><aside class="declaration">var </aside>volume <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L6"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 6"></a></h3><p>volume determines the extra volume of the footstep. This is multiplied by the base volume, should there be one.</p><h2 id="proc">Proc Details</h2><h3 id="proc/play_simplestep_machine"><aside class="declaration">proc </aside>play_simplestep_machine<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L133"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 133"></a></aside></h3><p>Prepares a footstep for machine walking</p><h3 id="proc/prepare_step"><aside class="declaration">proc </aside>prepare_step<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/components/footstep.dm#L50"><img src="git.png" width="16" height="16" title="code/datums/components/footstep.dm 50"></a></aside></h3><p>Prepares a footstep. Determines if it should get played. Returns the turf it should get played on. Note that it is always a /turf/simulated/floor (eventually /turf/open)</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7">c8dfcda</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>