mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-05 21:00:13 +02:00
volume changes for crowd, bat avatar suppression fix
This commit is contained in:
parent
8c0592caba
commit
804db537bf
2 changed files with 8 additions and 2 deletions
|
@ -17,9 +17,12 @@ var extras = [
|
||||||
SoundCache.getSound("atp:44a83a788ccfd2924e35c902c34808b24dbd0309d000299ce01a355f91cf8115.wav") // clapping
|
SoundCache.getSound("atp:44a83a788ccfd2924e35c902c34808b24dbd0309d000299ce01a355f91cf8115.wav") // clapping
|
||||||
];
|
];
|
||||||
|
|
||||||
|
var CHATTER_VOLUME = 0.10
|
||||||
|
var EXTRA_VOLUME = 0.15
|
||||||
|
|
||||||
function playChatter() {
|
function playChatter() {
|
||||||
if (chatter.downloaded && !chatter.isPlaying) {
|
if (chatter.downloaded && !chatter.isPlaying) {
|
||||||
Audio.playSound(chatter, { loop: true, volume: 0.5 });
|
Audio.playSound(chatter, { loop: true, volume: CHATTER_VOLUME });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +35,7 @@ function playRandomExtras() {
|
||||||
// play a random extra sound about every 30s
|
// play a random extra sound about every 30s
|
||||||
currentInjector = Audio.playSound(
|
currentInjector = Audio.playSound(
|
||||||
extras[Math.floor(Math.random() * extras.length)],
|
extras[Math.floor(Math.random() * extras.length)],
|
||||||
{ volume: 0.33 }
|
{ volume: EXTRA_VOLUME }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
pitchingMachine.start();
|
pitchingMachine.start();
|
||||||
MyAvatar.shouldRenderLocally = false;
|
MyAvatar.shouldRenderLocally = false;
|
||||||
};
|
};
|
||||||
|
this.continueNearGrab = function() {
|
||||||
|
MyAvatar.shouldRenderLocally = false;
|
||||||
|
}
|
||||||
this.releaseGrab = function() {
|
this.releaseGrab = function() {
|
||||||
print("Stopped near grab!");
|
print("Stopped near grab!");
|
||||||
if (pitchingMachine) {
|
if (pitchingMachine) {
|
||||||
|
|
Loading…
Reference in a new issue