Noise and audio¶
Every gesture has a loudness for the zombies, and those within range come to look. What the player hears is separate: sound cues with one shared falloff, footsteps, music and volume buses. The sounds are a starter set, all cut from public-domain recordings (CC0).
In the game¶
Noise¶
Each gesture has a tag, such as Noise.Step.Walk or Noise.Gunshot.Shotgun, and a loudness. Every
zombie within its own hearing range times that loudness goes to look. Each zombie
rolls its own hearing range, so the same noise reaches one zombie and misses the next.
| Gesture | Loudness |
|---|---|
| walking | 0.4 |
| sprinting | 1.0 |
| a step while crouched | the step's loudness x 0.4 |
| a swing (and a stomp) | 0.8 |
| a shove | 0.35 |
| a door or a window | 0.45 |
| reinforcing a barricade | 0.9 |
| placing a built piece | 0.9 |
| hammering | 0.9 |
| sawing | 0.6 |
| welding | 0.7 |
| dismantling | 0.8 |
| demolishing | 2.5 |
| moving furniture | 0.4 |
| a pistol shot | 3 |
| a shotgun blast | 9 |
Other systems have rows of their own: climbing, forcing a lock, a zombie striking an obstacle, a house alarm, a running generator and a vehicle engine. On the large map, the hordes hear loud noises too.
The Stealth skill makes footsteps up to 60 % quieter for the zombies.
Action sounds¶
A timed action plays the sound its data names. Some sounds loop for as long as the action runs and stop with it: sawing, hammering, the screwdriver, welding, and the handling sound of crafting, repairing and removing a barricade. The others play once: demolishing, picking up or setting down furniture, turning the page of a book.
How far a sound carries¶
You hear from where your survivor stands, with the camera's orientation. Every cue is played through one shared attenuation. Within 600 uu of the survivor a cue plays at full volume. Past that it loses 10 dB every 600 uu, down to -60 dB at 4200 uu, and a cue farther than 4200 uu is not played at all. The weather loops and the thunder are played in 2D, so the shared attenuation does not apply to them.
In co-op, a sound that comes with a change of state, such as a door opening or an action in progress, plays when that state reaches each machine, and never for a player who joins after the change.
Footsteps¶
A survivor or a zombie plays one step each stride on the ground: every 60 uu walking, and every 95 uu past 300 uu/s. The physical material under the feet picks the sound among seven (concrete, stone, wood, grass, carpet, metal, mud), and a default plays on any other. Each surface has one sound, varied only by its pitch, within 8 % from one step to the next. A zombie's steps play at a volume of 0.7, and no step plays farther than 2,500 uu from the local player.
The steps are a sound only. What the zombies hear of a player's steps is the noise above, unchanged.
Music¶
Each player's machine chooses its own music bed. The tension bed plays while a living zombie is within 1,500 uu of the player's survivor, and the night bed or the day bed otherwise, from the sun. A new bed fades in over 3 s while the old one fades out. The beds loop and play in 2D, on the music bus.
Audio buses¶
Every shipped sound is on a volume bus.
- The game's sounds are on the effects bus, so lowering it lowers every gunshot, swing, step and door at once.
- The six weather sounds are on the ambience bus. They ship silent, so the bus has nothing to play until you plug them in.
- The five menu sounds are on the UI bus.
- The three music beds are on the music bus.
The AUDIO page of the options sets one volume per bus, kept in the player's local profile and applied when a game or the main menu starts. Every volume is at 1.0 by default.
The assets¶
The noise table is Content/ZombieSurvival/DataAssets/Noise/Childs/DA_NoiseSettings_Default. The
audio settings are DataAssets/Audio/Childs/DA_AudioSettings_Default. The shared attenuation is
Audios/SA_Default.
Five sound classes are in Audios/Mix/: SCL_Master and, under it, SCL_Effects, SCL_UI,
SCL_Ambience and SCL_Music. One mix, SMX_Main, carries them.
| Asset | Property | Default | What it does |
|---|---|---|---|
DA_NoiseSettings_Default |
one row per Noise.* tag |
the table above | loudness, a multiplier of each zombie's hearing range |
DA_NoiseSettings_Default |
Noise.Fence.Climb, Noise.Openable.Force, Noise.Zombie.HitObstacle, Noise.Alarm.House, Noise.Generator.Run, Noise.Vehicle.* |
per row | the rows of climbing, forcing a lock, a zombie striking an obstacle, a house alarm, a running generator and a vehicle engine |
BP_Survivor |
CrouchNoiseMultiplier |
0.4 | multiplies the loudness of a step while crouched |
DA_Weapon_* |
ShotNoise |
a Noise.Gunshot.* row |
the noise of a shot |
DA_Action_* |
Sound, bLoopSound |
per action | the sound of a timed action, looped while bLoopSound is ticked, played once otherwise |
DA_AudioSettings_Default |
DefaultAttenuation |
SA_Default |
the falloff of every cue |
SA_Default |
falloff | full to 600 uu, -10 dB per 600 uu, silent past 4200 uu | how far a cue is heard |
DA_AudioSettings_Default |
BusVolumes |
1.0 each | default volume of each bus |
DA_AudioSettings_Default |
BusClasses, BusMix |
the SCL_* classes, SMX_Main |
the class behind each bus and the mix |
DA_AudioSettings_Default |
FootstepSounds, FootstepDefault |
seven ground sounds, a default | the step sound by physical material |
DA_AudioSettings_Default |
FootstepStride, FootstepStrideRun, FootstepRunSpeed |
60 uu, 95 uu, 300 uu/s | the distance between two steps, walking and running, and the speed where running starts |
DA_AudioSettings_Default |
FootstepPitchVariance |
0.08 | the pitch of a step is drawn within 1 ± this value |
DA_AudioSettings_Default |
FootstepMaxDistance, ZombieFootstepVolume |
2,500 uu, 0.7 | how far steps play, and how loud a zombie's are |
AC_Footsteps, on BP_Survivor and BP_Zombie |
bZombieSteps |
ticked on BP_Zombie |
plays the steps at the zombie volume |
DA_AudioSettings_Default |
MusicDay, MusicNight, MusicTension |
three loops, each with its own Volume on the sound wave (0.45, 0.35 and 0.7) |
the music beds; an empty field is silence in that state |
DA_AudioSettings_Default |
MusicCheckSeconds, MusicTensionRadius, MusicFadeSeconds |
2 s, 1,500 uu, 3 s | how often the bed is chosen, the tension radius, the crossfade |
Change it¶
- To rebalance what zombies hear, change a loudness in
DA_NoiseSettings_Default. A gunshot and a hammer follow the same rule. - To add a noise, declare a
Noise.*tag, add a row toDA_NoiseSettings_Default, and emit it where the gesture happens. That last step is a graph call:BP_Survivor.EmitNoise, orBP_ZSGameMode.EmitWorldNoisefor a noise nobody makes. - To swap a sound, set the field that names it. Sounds lists the fields. An empty field leaves the action silent and raises no error.
- To change the steps or the music, edit
DA_AudioSettings_Default. Set theVolumeof your own tracks on the sound wave, as the three shipped beds do, because the music bus stays at 1.0. - To change the range of every sound, edit
SA_Default. A cue's own attenuation settings are ignored. - To put your own sound on a bus, give it the class of that bus (
SCL_Effects,SCL_UI,SCL_Ambience,SCL_Music). A sound left without a sound class plays at full volume, outside every bus.