Footsteps.module
This package holds more than this page lists. See all of its files in its world.
README.md
Footsteps
Castle-town footsteps on soundstage: every walker soundstage tracks (players and NPCs) sounds like what it stands on, wood, tatami, stone, packed earth, paddy water, gravel or grass. Footsteps.install() (idempotent, called by Atmos when the TownAtmosphere component starts) adds three new soundstage surfaces made from this kit's recordings, sengokuTatami, sengokuEarth and sengokuPaddy (the sk_step_* clips, defined for every footwear), sets a surface resolver, makes packed earth the default and turns footsteps on for every player. The resolver reads the sengokuSurface attribute on the collider under the step (set by TownColliders and TownGround) and otherwise asks the town's ground, counting water above the ground as paddy water. Footsteps.surfaceAt(point, entityId) answers the soundstage surface for a point and townSurfaceAt the town's own name; Footsteps.counts() answers how many steps of each surface were heard (for tests) and uninstall() removes the resolver.