Skip to content

Commit

Permalink
Bench sound additions and adjustments
Browse files Browse the repository at this point in the history
Adjusted all bench sound sound distance values 
Added missing sound code for:
- Vehicle bench
- Engine bench
- Propeller bench
- Wheel bench
  • Loading branch information
SnailPerson authored and DonBruce64 committed Jun 10, 2024
1 parent be2beba commit d220760
Show file tree
Hide file tree
Showing 10 changed files with 406 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -64,7 +64,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -85,7 +85,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 6.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -53,7 +53,7 @@
"looping": true,
"minDistance": 0.0,
"minDistanceVolume": 0.5,
"maxDistance": 15.0,
"maxDistance": 6.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -75,7 +75,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -90,7 +90,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 6.0,
"maxDistanceVolume": 0.0
}
],
Expand Down
103 changes: 96 additions & 7 deletions mccore/src/main/resources/assets/mts/jsondefs/decors/enginebench.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,99 @@
{
"general": {
"name": "Engine Bench",
"materials": [],
"width": 1.0,
"height": 1.0,
"depth": 1.0,
"itemTypes": ["part"], "partTypes": ["engine_"]
"decor": {
"type": "generic",
"width": 1.0,
"height": 1.0,
"depth": 1.0,
"crafting": {
"itemTypes": [
"part"
],
"partTypes": [
"engine_"
]
}
},
"definitions": [
{
"subName": "",
"name": "Engine Bench",
"extraMaterialLists": [
[]
]
}
],
"rendering": {
"lightObjects": [],
"sounds": [
{
"name": "mts:bench/enginebench_open0",
"soundVariations": [
"mts:bench/enginebench_open0",
"mts:bench/enginebench_open1",
"mts:bench/enginebench_open2"
],
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_interacting",
"clampMin": 1.0,
"clampMax": 1.0
}
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
"name": "mts:bench/enginebench_craft0",
"soundVariations": [
"mts:bench/enginebench_craft0",
"mts:bench/enginebench_craft1",
"mts:bench/enginebench_craft2"
],
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_crafteditem",
"clampMin": 1.0,
"clampMax": 1.0
}
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 13.0,
"maxDistanceVolume": 0.0
},
{
"name": "mts:bench/enginebench_close0",
"soundVariations": [
"mts:bench/enginebench_close0",
"mts:bench/enginebench_close1",
"mts:bench/enginebench_close2"
],
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_interacting",
"clampMin": 0.0,
"clampMax": 0.0
}
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
}
],
"modelType": "obj"
},
"general": {
"name": "Engine Bench",
"materialLists": [
[]
],
"radarWidth": 0.0,
"radarRange": 0.0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"looping": true,
"minDistance": 0.0,
"minDistanceVolume": 0.5,
"maxDistance": 15.0,
"maxDistance": 18.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -77,7 +77,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 13.0,
"maxDistanceVolume": 0.0
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -59,7 +59,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -79,7 +79,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 6.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -53,7 +53,7 @@
"looping": true,
"minDistance": 0.0,
"minDistanceVolume": 0.5,
"maxDistance": 15.0,
"maxDistance": 6.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -68,7 +68,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 10.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -83,7 +83,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 6.0,
"maxDistanceVolume": 0.0
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,107 @@
{
"general": {
"name": "Propeller Bench",
"materials": [],
"width": 1.0,
"height": 1.0,
"depth": 1.0,
"itemTypes": ["part"],
"partTypes": ["propeller"]
"decor": {
"type": "generic",
"width": 1.0,
"height": 1.0,
"depth": 1.0,
"crafting": {
"itemTypes": [
"part"
],
"partTypes": [
"propeller"
]
}
},
"definitions": [
{
"subName": "",
"name": "Propeller Bench",
"extraMaterialLists": [
[]
]
}
],
"rendering": {
"lightObjects": [],
"sounds": [
{
"name": "mts:bench/propellerbench_start",
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_interacting",
"clampMin": 1.0,
"clampMax": 1.0
}
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistanceVolume": 0.0
},
{
"name": "mts:bench/propellerbench_loop",
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_interacting",
"forwardsDelay": 15,
"reverseDelay": 15,
"clampMin": 1.0,
"clampMax": 1.0
}
],
"looping": true,
"minDistance": 0.0,
"minDistanceVolume": 0.8,
"maxDistance": 20.0,
"maxDistanceVolume": 0.0
},
{
"name": "mts:bench/propellerbench_craft0",
"soundVariations": [
"mts:bench/propellerbench_craft0",
"mts:bench/propellerbench_craft1",
"mts:bench/propellerbench_craft2"
],
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_crafteditem",
"clampMin": 1.0,
"clampMax": 1.0
}
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 20.0,
"maxDistanceVolume": 0.0
},
{
"name": "mts:bench/propellerbench_stop",
"activeAnimations": [
{
"animationType": "visibility",
"variable": "player_interacting",
"clampMin": 0.0,
"clampMax": 0.0
}
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistanceVolume": 0.0
}
],
"modelType": "obj"
},
"general": {
"name": "Propeller Bench",
"materialLists": [
[]
],
"radarWidth": 0.0,
"radarRange": 0.0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"looping": true,
"minDistance": 0.0,
"minDistanceVolume": 0.5,
"maxDistance": 15.0,
"maxDistance": 20.0,
"maxDistanceVolume": 0.0
},
{
Expand All @@ -78,7 +78,7 @@
],
"minDistance": 0.0,
"minDistanceVolume": 1.0,
"maxDistance": 15.0,
"maxDistance": 20.0,
"maxDistanceVolume": 0.0
},
{
Expand Down
Loading

0 comments on commit d220760

Please sign in to comment.