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

3
Halfatar/Halfatar.sol Normal file
View File

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

View File

@@ -0,0 +1,12 @@
<Project name="Halfatar" guid="247a7a4c-3854-4542-bd3c-8a0421012680">
<Object name="Object" guid="62b798eb-4eea-40c4-8fac-9cec8b8a4566" active="true">
<Script name="OS controller.lsl" guid="0a5d0f4f-94c7-4ca6-8533-0d9bf1a42144">
</Script>
<Script name="eye ctrl.lsl" guid="548da7eb-577e-4701-99f5-9f25192a6fe6">
</Script>
<Script name="eyes.lsl" guid="e1d9e296-ac39-468c-b33c-c93b86c58f4a">
</Script>
<Script name="SL controller.lsl" guid="ee827edd-454d-4fb6-a2b6-febd8a172b73">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,102 @@
// :CATEGORY:Avatar
// :NAME:Halfatar
// :AUTHOR:Ferd Frederix
// :CREATED:2013-10-04 11:10:45
// :EDITED:2013-10-04 11:10:45
// :ID:999
// :NUM:1530
// :REV:1
// :WORLD:Second Life
// :DESCRIPTION:
// For a half-avatar such as my Zombie and skeleton.
// :CODE:
// script to play an animation while walking or running only.
// requires animation named "stranglehold"
// Use in half-avatars
// :Author: Ferd Frederix
string LastAnimName;
string newAnimationState;
string LastRunState; //SL or Opensim Animate State
key Owner;
StartAnimation()
{
if (LastRunState != newAnimationState)
{
if (newAnimationState == "Walking" || newAnimationState == "Running" || newAnimationState == "Turning Left" || newAnimationState == "Turning Right")
{
//llOwnerSay("changed");
llStopAnimation(LastAnimName);
LastRunState = newAnimationState;
LastAnimName = ("stranglehold");
llStartAnimation("stranglehold");
llSetTimerEvent(0);
} else {
if (LastAnimName == "stranglehold"){
llStopAnimation(LastAnimName);
}
LastRunState = newAnimationState;
}
}
}
Initialize(key id)
{
if (id == NULL_KEY) // detaching
{
llStopAnimation(LastAnimName);
}
else // attached, or reset while worn
{
llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);
Owner = id;
}
}
default
{
state_entry()
{
// script was reset while already attached
if (llGetAttached() != 0) {
Initialize(llGetOwner());
}
}
attach(key id) {
Initialize(id);
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION) {
llOwnerSay("Zombie-ride active");
}
}
changed(integer change) // Reset on region restart
{
if (change & CHANGED_ANIMATION)
{
newAnimationState = llGetAnimation(Owner);
// llOwnerSay((string) newAnimationState);
StartAnimation();
}
}
}

View File

@@ -0,0 +1,108 @@
// :CATEGORY:Avatar
// :NAME:Halfatar
// :AUTHOR:Ferd Frederix
// :CREATED:2013-10-04 11:12:06
// :EDITED:2013-10-04 11:12:06
// :ID:999
// :NUM:1533
// :REV:1
// :WORLD:Second Life
// :DESCRIPTION:
// Main Controller for animations - makes the rider grip the zombie or skeleton when moving
// :CODE:
// script to play an animation while walking or running only.
// requires animation named "stranglehold"
// Use in half-avatars
// :Author: Ferd Frederix
string LastAnimName;
string newAnimationState;
string LastRunState; //SL or Opensim Animate State
key Owner;
StartAnimation()
{
if (LastRunState != newAnimationState)
{
if (newAnimationState == "Walking" || newAnimationState == "Running" )
{
// llOwnerSay("changed");
LastRunState = newAnimationState;
LastAnimName = ("stranglehold");
llStartAnimation("Walk: Power");
llStartAnimation("stranglehold");
} else {
// llOwnerSay("delta");
if (LastAnimName == "stranglehold"){
// llOwnerSay("stop hold");
llStopAnimation("stranglehold");
llStopAnimation("Walk: Power");
}
LastRunState = newAnimationState;
}
}
}
Initialize(key id)
{
LastAnimName = "stranglehold";
if (id == NULL_KEY) // detaching
{
llStopAnimation(LastAnimName);
}
else // attached, or reset while worn
{
llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);
Owner = id;
}
}
default
{
state_entry()
{
// script was reset while already attached
if (llGetAttached() != 0) {
Initialize(llGetOwner());
}
}
attach(key id) {
Initialize(id);
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION) {
llOwnerSay("Zombie-ride active");
llSetTimerEvent(0.5);
}
}
timer()
{
newAnimationState = llGetAnimation(Owner);
StartAnimation();
}
}

View File

@@ -0,0 +1,30 @@
// :CATEGORY:Avatar
// :NAME:Halfatar
// :AUTHOR:Ferd Frederix
// :CREATED:2013-10-04 11:11:08
// :EDITED:2013-10-04 11:11:08
// :ID:999
// :NUM:1531
// :REV:1
// :WORLD:Second Life
// :DESCRIPTION:
// Makes the eyes wiggle randomly
// :CODE:
// script to control the eyes randomly
// requires the texture be in the eye
// Use in half-atars
// :Author: Ferd Frederix
default
{
state_entry()
{
llSetTimerEvent(1.0);
}
timer()
{
llMessageLinked(LINK_SET,2,(string) llFrand(.10),"");
llSetTimerEvent(llFrand(1.0));
}
}

View File

@@ -0,0 +1,29 @@
// :CATEGORY:Avatar
// :NAME:Halfatar
// :AUTHOR:Ferd Frederix
// :CREATED:2013-10-04 11:11:27
// :EDITED:2013-10-04 11:11:27
// :ID:999
// :NUM:1532
// :REV:1
// :WORLD:Second Life
// :DESCRIPTION:
// Individual eye script for random wiggles
// :CODE:
// script to control each eye
// Use in half-avatars
// :Author: Ferd Frederix
default
{
link_message( integer sender_num, integer num, string str, key id )
{
float x = (float) str;
float y = x;
if (llFrand(2) < 1)
y = -x;
llSetPrimitiveParams([PRIM_TEXTURE,ALL_SIDES,"bloodshot eye",<2,3,0>,<x,y,0>,0.0]);
}
}