removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<Solution name="Environmental_Effects">
<Project name="Environmental_Effects" path="Environmental_Effects\Environmental_Effects.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,6 @@
<Project name="Environmental_Effects" guid="D71A3882-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D71A3962-6C00-1014-B904-200204C60A89">
<Script name="Environmental_Effects_1.lsl" guid="D71A5318-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,51 @@
// :CATEGORY:Environment
// :NAME:Environmental_Effects
// :AUTHOR:Anonymous
// :CREATED:2010-01-10 05:20:56.000
// :EDITED:2013-09-18 15:38:52
// :ID:286
// :NUM:384
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Environmental Effects.lsl
// :CODE:
1
list daySounds = ["",""];
list nightSounds = ["",""];
list nightAmbient = ["Cricket"];
default {
state_entry() {
llStopSound();
llSetTimerEvent(2.0);
}
timer() {
vector time = llGetSunDirection();
list myList;
float density = 0.9;
if (time.z > 0.0) {
myList = llListRandomize(daySounds, 1);
}
else {
myList = llListRandomize(nightSounds, 1);
density = 0.98;
// Ambient nighttime sound
if (llFrand(1.0) > 0.85) {
llStopSound();
} else {
llLoopSound(llList2String(nightAmbient, 0), 1.0);
}
}
if (llFrand(1.0) > density) {
llTriggerSound(llList2String(myList, 0), 1.0);
}
}
}
// END //