Skip to content

Commit

Permalink
Add overheat sound for lawn mower
Browse files Browse the repository at this point in the history
  • Loading branch information
toberge committed Dec 27, 2024
1 parent 9efae50 commit 8b77c35
Show file tree
Hide file tree
Showing 14 changed files with 156 additions and 0 deletions.
Binary file added Assets/Audio/Augments/Mower/Train1.wav
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Mower/Train1.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Audio/Augments/Mower/Train2.wav
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Mower/Train2.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Audio/Augments/Mower/Train3.wav
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Mower/Train3.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Audio/Augments/Mower/Train4.wav
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Mower/Train4.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Audio/Augments/Mower/Train5.wav
Binary file not shown.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Mower/Train5.wav.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Assets/Audio/Augments/Mower/TrainFlute.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aa94d7cf98a253641a478b6ab78a05e3, type: 3}
m_Name: TrainFlute
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: 6cd47774f94072f87bb1f5361ca2eac6, type: 3}
- {fileID: 8300000, guid: fe34a4195aeaef62eab87edb1364200a, type: 3}
- {fileID: 8300000, guid: 5ec349364bd3cc0b8bc61f139f790738, type: 3}
- {fileID: 8300000, guid: 660e1c14774513095aa7b1a200fe3dd2, type: 3}
- {fileID: 8300000, guid: c08ff536cfa87d971bb1ae8838e43fa3, type: 3}
semitoneRange:
min: -1
max: 1
continuousPitchBend: 1
volumeRange:
min: 1
max: 1
is3D: 1
shouldPlayInSplitscreen: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/Mower/TrainFlute.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Assets/Prefabs/GunParts/LawnMowerBody.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ MonoBehaviour:
mowerScreenMaterialIndex: 1
mowerScreen: {fileID: 2100000, guid: ba0e56975e31013409abfe9b36e7aa35, type: 2}
plopSounds: {fileID: 11400000, guid: e3cc9c8a794f4f94bb6e134c61b5a645, type: 2}
overheatSounds: {fileID: 11400000, guid: e18e11f7c469d59daa405417f575a267, type: 2}
--- !u!95 &2789145164633129729
Animator:
serializedVersion: 5
Expand Down
3 changes: 3 additions & 0 deletions Assets/Scripts/Augment/AugmentImplementations/LawnMower.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public class LawnMower : GunBody
private AudioSource audioSource;
[SerializeField]
private AudioGroup plopSounds;
[SerializeField]
private AudioGroup overheatSounds;

public override void Start()
{
Expand Down Expand Up @@ -112,6 +114,7 @@ private void Fire(GunStats stats)
else
{
success = false;
overheatSounds.Play(audioSource);
failedExhaustParticles.Play();
}

Expand Down

0 comments on commit 8b77c35

Please sign in to comment.