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="SitCameraSetter">
<Project name="SitCameraSetter" path="SitCameraSetter\SitCameraSetter.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,151 @@
// :CATEGORY:Camera
// :NAME:SitCameraSetter
// :AUTHOR:Heb Dexler
// :CREATED:2010-08-14 04:30:45.143
// :EDITED:2013-09-18 15:39:03
// :ID:774
// :NUM:1062
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// When you sit on an object your camera is set to a default view. If you want to change this and look elsewhere, zoomed in close in or even a couple of sims away, you can use this to do it.
//
// You just sit on the prim with this script in it and move your camera into position. One click and its done.
//
// You can leave the script in place or use the cam offsets from your chat window in your own.
//
// All sorts of uses from telescopes to microscopes.
// Hope you have fun with it!
// :CODE:
//~^~^~^~^~^~^~^ SitCameraSetter v3 by Heb Dexler, SL August 2010 ~^~^~^~^~^~^~^~
// Setup camera offsets for seated avatars using your current camera position.
// Script licence IfYouWinTheLottoGiveUsAfewQuidWare. Please keep open source.
//1. Put this in a prim and sit. (Sets a default sit target if there isnt one already)
//2. Move your camera to a viewpoint you like
//3. Press the button or chat '/517 setcam'
//4. Press 'ESC' key once or twice to reset your camera If you dont see it on first sit.
// Has worked viewing 2 sims away. Give it a try!
//~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
// listen chanel- change this if you like
integer dialogChannel = 517;
integer menuTimeOut = 300;
// dialog vars - leave this
integer setup = FALSE;
integer listenId;
key sitterId;
// position vars
rotation startRot;
vector startPos;
vector eyeOffPos;
vector camOffPos;
// set the camera offsets
setCamOffsets(){
llSetCameraEyeOffset(eyeOffPos);
llSetCameraAtOffset(camOffPos);
if (!setup){
llOwnerSay("Please sit to set a camera position.");
}
}
// Default state - set cam offsets or run setup
default{
on_rez(integer r){
setCamOffsets();
}
state_entry(){
setCamOffsets();
}
run_time_permissions(integer perm){
if(perm & PERMISSION_TRACK_CAMERA){
state camsetup;
}
}
changed(integer change){
//convoluted way of getting sitter==owner test without an llAvatarOnSitTarget
integer numAv = llGetNumberOfPrims()-llGetObjectPrimCount(llGetKey());
// set a default sittarget if none
if(numAv > 0 && llAvatarOnSitTarget() == NULL_KEY){
llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
llOwnerSay("There was no sittarget. A default has been set");
}
if (change & CHANGED_LINK){
if (numAv == 1){
integer lnkNumAv = llGetObjectPrimCount(llGetKey())+1;
sitterId = llGetLinkKey(lnkNumAv);
// check sitter is owner and change state

View File

@@ -0,0 +1,6 @@
<Project name="SitCameraSetter" guid="D8575CB1-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D8575DAB-6C00-1014-B904-200204C60A89">
<Script name="SitCameraSetter_1.lsl" guid="D8578EAC-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>