Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AleziaKurdis authored Nov 13, 2023
1 parent 98d39fd commit ab13ab1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
Binary file added CEON/gotgPortalAssets/breach.mp3
Binary file not shown.
9 changes: 2 additions & 7 deletions CEON/gotgPortalAssets/portalMaterialFX.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@
hue = hue - 1;
}
var lightMatColor = hslToRgb(hue, 1, 0.61);
bloomFactor = bloomFactor + ((Math.random() * 4) - 2);
if (bloomFactor < 1) {
bloomFactor = 1;
}
if (bloomFactor > 6) {
bloomFactor = 6;
}
bloomFactor = Math.random() * 6) + 1;

var materialContent = {
"materialVersion": 1,
"materials": [
Expand Down
36 changes: 36 additions & 0 deletions CEON/gotgPortalAssets/soundFX.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// soundFX.js
//
// Created by Alezia Kurdis,November 10th, 2023.
// Copyright 2023, Overte e.V.
//
// Space portal opening bearch sound.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
(function(){

var ROOT = Script.resolvePath('').split("soundFX.js")[0];
var BREACH_SOUND = ROOT + "breach.mp3";
var breachSound;

this.preload = function(entityID) {
breachSound = SoundCache.getSound(BREACH_SOUND);
}

this.enterEntity = function(entityID) {
var injector = Audio.playSound(breachSound, {
"position": MyAvatar.position,
"loop": false,
"localOnly": true,
"volume": 1
});
};

this.leaveEntity = function(entityID) {
//do nothing.
};


})

0 comments on commit ab13ab1

Please sign in to comment.