Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/element/footstep_override

When attached, the footstep sound played by the footstep element will be replaced by this one's

Vars

barefootstepThe sound played for movables with barefoot step sound type.
clawfootstepThe sound played for movables with claw step sound type.
footstepThe sound played for movables with shoed step sound type.
heavyfootstepThe sound played for movables with heavy step sound type.
occupied_turfsA list of turfs occupied by the movables this element is attached to. Needed so it stops listening the turf's signals ONLY when it has no movable with the element.
priorityThe priority this element has in relation to other elements of the same type attached to other movables on the same turf.

Procs

occupy_turfAdds the movable to the list of movables with the element occupying the turf. If the turf was not on the list of occupied turfs before, a signal will be registered to it.
prepare_stepsChanges the sound types to be played if the element priority is higher than the one in the steps list.
vacate_turfRemoves the movable from the list of movables with the element occupying the turf. If the turf is no longer occupied, it'll be removed from the list, and the signal unregistered from it

Var Details

barefootstep

The sound played for movables with barefoot step sound type.

clawfootstep

The sound played for movables with claw step sound type.

footstep

The sound played for movables with shoed step sound type.

heavyfootstep

The sound played for movables with heavy step sound type.

occupied_turfs

A list of turfs occupied by the movables this element is attached to. Needed so it stops listening the turf's signals ONLY when it has no movable with the element.

priority

The priority this element has in relation to other elements of the same type attached to other movables on the same turf.

Proc Details

occupy_turf

Adds the movable to the list of movables with the element occupying the turf. If the turf was not on the list of occupied turfs before, a signal will be registered to it.

prepare_steps

Changes the sound types to be played if the element priority is higher than the one in the steps list.

vacate_turf

Removes the movable from the list of movables with the element occupying the turf. If the turf is no longer occupied, it'll be removed from the list, and the signal unregistered from it