Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
64 lines
2.3 KiB
JavaScript
64 lines
2.3 KiB
JavaScript
var hasSpawned = false;
|
|
|
|
var steam;
|
|
|
|
var spawnSteam = function (){
|
|
|
|
var spawnPoint = {x:999,y:102,z:985.5};
|
|
|
|
|
|
|
|
steam = Entities.addEntity({ type: "ParticleEffect",
|
|
position: spawnPoint,
|
|
maxParticles:1000,
|
|
lifespan:17,
|
|
emitRate:1,
|
|
emitSpeed:1,
|
|
speedSpread:0,
|
|
emitOrientation:{x:0,y:1,z:0,w:0},
|
|
emitDimensions:{x:0,y:0,z:0},
|
|
emitRadiusStart:1,
|
|
polarStart:0,
|
|
polarFinish:1,
|
|
azimuthStart:0,
|
|
azimuthFinish:0,
|
|
emitAcceleration:{x:0,y:0.1,z:0.1},
|
|
accelerationSpread:{x:0,y:0,z:0},
|
|
particleRadius:0.546,
|
|
radiusSpread:0,
|
|
radiusStart:9,
|
|
radiusFinish:0.9,
|
|
colorSpread:{},
|
|
colorStart:{},
|
|
colorFinish:{},
|
|
alpha:0.1,
|
|
alphaSpread:0,
|
|
alphaStart:0,
|
|
alphaFinish:0,
|
|
textures:"https://hifi-public.s3.amazonaws.com/alan/Particles/Particle-Sprite-Smoke-1.png"
|
|
});
|
|
|
|
}
|
|
|
|
function ShutDown() {
|
|
Entities.deleteEntity(steam);
|
|
}
|
|
|
|
function Update() {
|
|
//print ("shnur");
|
|
if (!Entities.serversExist() || !Entities.canRez()) {
|
|
return;
|
|
}
|
|
|
|
if (hasSpawned === false) {
|
|
hasSpawned = true;
|
|
spawnSteam()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Script.scriptEnding.connect(ShutDown);
|
|
Script.update.connect(Update);
|
|
|
|
|