Skip to content

Commit

Permalink
Adjust 3D sound and ensure it works everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
toberge committed May 31, 2024
1 parent 521af43 commit dfd1801
Show file tree
Hide file tree
Showing 37 changed files with 315 additions and 61 deletions.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/DDR/DDR1.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%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: DDR1
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: 51b872a091093b54f8243e64e01dbe31, type: 3}
semitoneRange:
min: 0
max: 0
continuousPitchBend: 0
volumeRange:
min: 0.9164927
max: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/DDR/DDR1.asset.meta

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

23 changes: 23 additions & 0 deletions Assets/Audio/Augments/DDR/DDR2.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%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: DDR2
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: 9f81417eff9ee344f8cc9c8dc9173b9d, type: 3}
semitoneRange:
min: 0
max: 0
continuousPitchBend: 0
volumeRange:
min: 0.95128745
max: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/DDR/DDR2.asset.meta

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

23 changes: 23 additions & 0 deletions Assets/Audio/Augments/DDR/DDR3.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%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: DDR3
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: 33dba0147eb1738459b866ba836efc57, type: 3}
semitoneRange:
min: 0
max: 0
continuousPitchBend: 0
volumeRange:
min: 0.95824635
max: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/DDR/DDR3.asset.meta

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

23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Revolver/BonkStrong.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%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: BonkStrong
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: df0d1dd1be611d6479e633a92c8f8a91, type: 3}
semitoneRange:
min: -1
max: 0
continuousPitchBend: 1
volumeRange:
min: 0.96033406
max: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/Revolver/BonkStrong.asset.meta

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

23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Revolver/BonkWeak.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%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: BonkWeak
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: 4abfc03670db1b1478a1286f3b46099d, type: 3}
semitoneRange:
min: -1
max: 0
continuousPitchBend: 1
volumeRange:
min: 0.96033406
max: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/Revolver/BonkWeak.asset.meta

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

File renamed without changes.
23 changes: 23 additions & 0 deletions Assets/Audio/Augments/Revolver/BulletsClinking.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%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: BulletsClinking
m_EditorClassIdentifier:
sounds:
- {fileID: 8300000, guid: 25d0c1347ce7114499a06bb027d4b96e, type: 3}
semitoneRange:
min: -1
max: 1
continuousPitchBend: 1
volumeRange:
min: 0.96033406
max: 1
8 changes: 8 additions & 0 deletions Assets/Audio/Augments/Revolver/BulletsClinking.asset.meta

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

9 changes: 0 additions & 9 deletions Assets/Prefabs/ArenaCamera.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ GameObject:
m_Component:
- component: {fileID: 4560627545820911483}
- component: {fileID: 4560627545820911482}
- component: {fileID: 4560627545820911485}
- component: {fileID: 4560627545820911480}
m_Layer: 0
m_Name: ArenaCamera
Expand Down Expand Up @@ -85,14 +84,6 @@ Camera:
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!81 &4560627545820911485
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4560627545820911484}
m_Enabled: 1
--- !u!114 &4560627545820911480
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down
12 changes: 10 additions & 2 deletions Assets/Prefabs/GunParts/BulletBarrel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0798da53ce119cf4cba859cb8e9ca69a, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
statModifiers:
- name: ProjectileDamage
addition: 20
Expand Down Expand Up @@ -677,7 +680,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 67e1c2fae3becca4d88288bfa7bb3395, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
projectileOutput: {fileID: 5765902433490691002}
actualPosition: {x: 0, y: 0, z: 0}
actualDirection: {x: 0, y: 0, z: 0}
projectileRotation: {x: 0, y: 0, z: 0, w: 1}
stats: {fileID: 0}
player: {fileID: 0}
Expand Down Expand Up @@ -721,8 +729,8 @@ AudioSource:
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
MinDistance: 30
MaxDistance: 1000
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
Expand Down
4 changes: 2 additions & 2 deletions Assets/Prefabs/GunParts/Bullets/CannonExplosion.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ AudioSource:
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
MinDistance: 30
MaxDistance: 1000
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
audibleVelocityThreshold: 20
initialFallVelocity: 50
gravity: 9.81
spherecastRadius: 1.46
spherecastMask:
serializedVersion: 2
Expand Down Expand Up @@ -103,8 +102,8 @@ AudioSource:
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
MinDistance: 20
MaxDistance: 1000
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2954352013874095910
MonoBehaviour:
Expand Down Expand Up @@ -227,8 +227,8 @@ AudioSource:
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
MinDistance: 30
MaxDistance: 1000
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
Expand Down
12 changes: 10 additions & 2 deletions Assets/Prefabs/GunParts/CannonBarrel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0798da53ce119cf4cba859cb8e9ca69a, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
statModifiers:
- name: ProjectileDamage
addition: 40
Expand Down Expand Up @@ -266,7 +269,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: de5ab80858d9d8a40b4f1524fac3b820, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
projectileOutput: {fileID: 0}
actualPosition: {x: 0, y: 0, z: 0}
actualDirection: {x: 0, y: 0, z: 0}
projectileRotation: {x: 0, y: 0, z: 0, w: 1}
stats: {fileID: 0}
player: {fileID: 0}
Expand Down Expand Up @@ -340,8 +348,8 @@ AudioSource:
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
MinDistance: 30
MaxDistance: 1000
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
Expand Down
15 changes: 13 additions & 2 deletions Assets/Prefabs/GunParts/CoilBarrel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0798da53ce119cf4cba859cb8e9ca69a, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
statModifiers:
- name: ProjectileDamage
addition: 25
Expand Down Expand Up @@ -422,7 +425,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 67e1c2fae3becca4d88288bfa7bb3395, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
projectileOutput: {fileID: 0}
actualPosition: {x: 0, y: 0, z: 0}
actualDirection: {x: 0, y: 0, z: 0}
projectileRotation: {x: 0, y: 0, z: 0, w: 1}
stats: {fileID: 0}
player: {fileID: 0}
Expand All @@ -445,6 +453,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a8a5ed8580116e36d976d061ef0db232, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
interval: 0.15
radius: 0.25
--- !u!114 &7327065496144923300
Expand Down Expand Up @@ -480,8 +491,8 @@ AudioSource:
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
MinDistance: 30
MaxDistance: 1000
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
Expand Down
Loading

0 comments on commit dfd1801

Please sign in to comment.