mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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
|
||||
];
|
||||
|
||||
var CHATTER_VOLUME = 0.10
|
||||
var EXTRA_VOLUME = 0.15
|
||||
|
||||
function playChatter() {
|
||||
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
|
||||
currentInjector = Audio.playSound(
|
||||
extras[Math.floor(Math.random() * extras.length)],
|
||||
{ volume: 0.33 }
|
||||
{ volume: EXTRA_VOLUME }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
pitchingMachine.start();
|
||||
MyAvatar.shouldRenderLocally = false;
|
||||
};
|
||||
this.continueNearGrab = function() {
|
||||
MyAvatar.shouldRenderLocally = false;
|
||||
}
|
||||
this.releaseGrab = function() {
|
||||
print("Stopped near grab!");
|
||||
if (pitchingMachine) {
|
||||
|
|
Loading…
Reference in a new issue