Some footstep tweaks (#9355)

* Lower footstep volume slightly

* more tweaks
This commit is contained in:
Kara
2022-07-02 12:48:38 -07:00
committed by GitHub
parent 1fce028d79
commit 12d4828d65
9 changed files with 19 additions and 19 deletions

View File

@@ -36,8 +36,8 @@ namespace Content.Shared.Movement.Systems
private const float StepSoundMoveDistanceWalking = 1.5f; private const float StepSoundMoveDistanceWalking = 1.5f;
private const float FootstepVariation = 0f; private const float FootstepVariation = 0f;
private const float FootstepVolume = 6f; private const float FootstepVolume = 3f;
private const float FootstepWalkingVolumeModifier = 0.2f; private const float FootstepWalkingAddedVolumeMultiplier = 0f;
/// <summary> /// <summary>
/// <see cref="CCVars.MinimumFrictionSpeed"/> /// <see cref="CCVars.MinimumFrictionSpeed"/>
@@ -278,7 +278,7 @@ namespace Content.Shared.Movement.Systems
if (!weightless && TryGetSound(mover, mobMover, xform, out var variation, out var sound)) if (!weightless && TryGetSound(mover, mobMover, xform, out var variation, out var sound))
{ {
var soundModifier = mover.Sprinting ? 1.0f : FootstepWalkingVolumeModifier; var soundModifier = mover.Sprinting ? 1.0f : FootstepWalkingAddedVolumeMultiplier;
SoundSystem.Play(sound, SoundSystem.Play(sound,
GetSoundPlayers(mover.Owner), GetSoundPlayers(mover.Owner),
mover.Owner, AudioHelpers.WithVariation(variation).WithVolume(FootstepVolume * soundModifier)); mover.Owner, AudioHelpers.WithVariation(variation).WithVolume(FootstepVolume * soundModifier));

View File

@@ -135,7 +135,7 @@
is_subfloor: false is_subfloor: false
can_crowbar: true can_crowbar: true
footstep_sounds: footstep_sounds:
collection: footstep_floor collection: footstep_plating
friction: 0.30 friction: 0.30
item_drop: FloorTileItemDirty item_drop: FloorTileItemDirty
thermalConductivity: 0.04 thermalConductivity: 0.04
@@ -156,6 +156,21 @@
thermalConductivity: 0.04 thermalConductivity: 0.04
heatCapacity: 10000 heatCapacity: 10000
- type: tile
id: FloorMetalDiamond
name: diamond plate floor
texture: "metaldiamond"
base_turfs:
- plating
is_subfloor: false
can_crowbar: true
footstep_sounds:
collection: footstep_hull
friction: 0.30
item_drop: FloorTileItemMetalDiamond
thermalConductivity: 0.04
heatCapacity: 10000
- type: tile - type: tile
id: floor_rock_vault id: floor_rock_vault
name: rock floor name: rock floor
@@ -572,21 +587,6 @@
thermalConductivity: 0.04 thermalConductivity: 0.04
heatCapacity: 10000 heatCapacity: 10000
- type: tile
id: FloorMetalDiamond
name: diamond plate floor
texture: "metaldiamond"
base_turfs:
- plating
is_subfloor: false
can_crowbar: true
footstep_sounds:
collection: footstep_tile
friction: 0.30
item_drop: FloorTileItemMetalDiamond
thermalConductivity: 0.04
heatCapacity: 10000
# Circuits # Circuits
- type: tile - type: tile
id: floor_green_circuit id: floor_green_circuit