aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-05-12minor fix on sensorrepeatUbitUmarov1-4/+10
2017-01-07Correct casing on isGod and isViewerUIGodMelanie Thielker1-1/+1
2017-01-07replace godlevel compares by the new faster bool isViewerUIGodUbitUmarov1-1/+1
2017-01-06Restructure god level and permissionsMelanie Thielker1-1/+1
Create a class GodController which controls all aspects of god level, viewer modes and user levels at ScenePresence level.
2017-01-05Massive tab and trailing space cleanupMelanie Thielker2-8/+8
2015-03-23Taking a reference to the value collection is not thread safe. Change thisMelanie Thielker1-3/+3
to create a shallow copy instead and then iterate it's values to avoid the "out of sync" error.
2014-08-10 make sensors detect sitting avatars also by the distance to the root primUbitUmarov1-1/+10
of the object as sl does (as sl avatar needs to be in the arc)
2013-11-15refactor: replace verbose checks with String.IsNullOrEmpty where applicable.Justin Clark-Casey (justincc)1-2/+2
Thanks to Kira for this patch from http://opensimulator.org/mantis/view.php?id=6845
2013-07-09If a sensor is in an attachment, avoid throwing an exception if the attachee ↵Justin Clark-Casey (justincc)1-0/+10
is removed from the scene before we try to retrieve them.
2013-05-26Allow Linden trees to preserve their type when taken into inventory and ↵Melanie1-1/+3
rezzed again. Allow Linden trees to be sensed by LLSensor as PASSIVE objects.
2013-03-14Fix sensors, llGetRootRotation(), llGet*Param() and other functions to use ↵Justin Clark-Casey (justincc)1-2/+2
the world rotation if the avatar to which they are attached is sitting
2013-01-10Add "show script timers" command to show script timers. For debug purposes.Justin Clark-Casey (justincc)2-32/+38
Also, "show sensors" changes to "show script sensors".
2013-01-10Add "show sensors" command to show script sensor information for debug purposes.Justin Clark-Casey (justincc)1-32/+62
2012-11-15Revert "Merge master into teravuswork", it should have been avination, not ↵teravus1-6/+7
master. This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
2012-08-18constructor means not having to manually refer to individual propertiesSignpostMarv1-2/+2
2012-08-18refactoring for Vector3 operator & constructor tweaksSignpostMarv1-5/+4
2012-08-01Look up the NPC module when the SensorRepeat class is created, rather than ↵Justin Clark-Casey (justincc)1-5/+6
on every single sensor sweep.
2012-07-31Resolve a deadlock between INPCModule and SensorRepeat by replacing the ↵Justin Clark-Casey (justincc)1-35/+43
SensorRepeat list with a new list on add/removes rather than locking it for the duration of the sensor sweep. A deadlock was observed today where NPC removal on a script thread would lock the NPC list and then try to lock the sensor list via scripted attachment removal. Concurrently, the sensor sweep thread would lock the sensor list and then try to lock the NPC list to check NPC status. This commit resolves the deadlock by replacing the sensor list on update rather than locking it for the duration of the sweep.
2012-07-25Remove support for the OS_NPC constant. That one seems to be overly paranoidMelanie1-3/+2
to have and confuses the issue.
2012-07-20As per opensim-dev mailing list conversation, introduce OS_NPC constant for ↵Justin Clark-Casey (justincc)1-2/+3
use with llSensor() This same constant will later be used with llGetDetectedType(). This constant has a different name from NPC to avoid possible conflict with future LSL changes. This constant has a different value to try and avoid unnecessary conflict with future constants that may use the same value. Using the 'NPC' constant with llSensor() will remain valid but is deprecated.
2012-07-11Add regression TestDetachScriptedAttachmentToInventory()Justin Clark-Casey (justincc)1-2/+6
This currently only does a relatively crude check for a ScriptState node in the serialized xml
2012-04-27minor: style adjustments in SensorRepeat, mainly related to patch from stoehrJustin Clark-Casey (justincc)1-3/+4
2012-04-27Fixing wrong position of llSensor, SensePoint wasnt following the rotation ↵Stefan_Boom1-8/+22
of the root prim.
2012-03-06Add sensor, dataserver requests, timer and listener counts to "xengine ↵Justin Clark-Casey (justincc)4-11/+44
status" command. This is for diagnostic purposes.
2012-03-02Move SenseRepeaters.Count check inside the SenseRepeatListLock.Justin Clark-Casey (justincc)1-4/+4
No methods in the List class are thread safe in the MS specification/documentation
2012-03-02lock SenseRepeatListLock when added a new sensor during script reconstitution.Justin Clark-Casey (justincc)1-1/+3
This is already being done in the other place where a sensor is added. Adding a sensor whilst another thread is iterating over the sensor list can cause a concurrency exception.
2012-02-16Fix some logic mistakes where firstly osNpcCreate() without options was ↵Justin Clark-Casey (justincc)1-1/+16
creating npcs sensed as agents and secondly the OS_NPC_SENSE_AS_AGENT option was having the opposite effect. Hopefully makes progress on addressing http://opensimulator.org/mantis/view.php?id=5872
2012-02-10Fix an npc delete race condition with LSL sensors where an initial presence ↵Justin Clark-Casey (justincc)1-9/+20
check could succeed but then the npc removed before the subequent npc check. The resulting null would cause an exception. We now check for null before looking at SenseAsAgent. Hopefully fixes http://opensimulator.org/mantis/view.php?id=5872
2012-01-28Add OS_NPC_SENSE_AS_AGENT option to osNpcCreate().Justin Clark-Casey (justincc)1-2/+7
This allows NPCs to be sensed as agents by LSL sensors rather than as a specific NPC type (which is currently an OpenSimulator-only extension). Wiki doc on this and other recent NPC functions will follow soon
2012-01-12Allow all NPCs to show up on sensors as all osNpc* script methods now check ↵Justin Clark-Casey (justincc)1-6/+9
for ownership permission before executing. As per #opensim-dev irc discussion.
2012-01-06Add osNpcCreateOwned to create an owned NPC. Those can be sensed only by the ↵Melanie1-1/+19
owner, can be destroyed only by the owner and only the owner can save their appearance. Added "NPC" as a flag to llSensor to sense NPCs and exclude them from "AGENT" results.
2012-01-06Add osNpcCreateOwned to create an owned NPC. Those can be sensed only by the ↵Melanie1-2/+17
owner, can be destroyed only by the owner and only the owner can save their appearance. Added "NPC" as a flag to llSensor to sense NPCs and exclude them from "AGENT" results.
2011-12-17Fix hit testing link sets properly. Fix raycasting for LSL.Melanie1-0/+5
2011-11-26When removing an LSL sensor for a script (e.g. through llResetScript() or ↵Justin Clark-Casey (justincc)1-1/+1
state change), don't also remove sensors for other scripts in the same prim. Hopefully fixes http://opensimulator.org/mantis/view.php?id=4448 and http://opensimulator.org/mantis/view.php?id=4452
2011-11-03Rename ForEachAvatar back to ForEachScenePresence. The other changesDan Lake1-2/+2
from previous commit which sort out which iterator is used are left intact. A discussion is needed as to what constitutes an avatar vs a ScenePresence.
2011-11-03Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls toDan Lake1-2/+2
the 3 iteration functions so more of them are using the correct iteration for the action they are performing. The 3 iterators that seem to fit all actions within OpenSim at this time are: ForEachAvatar: Perform an action on all avatars (root presences) ForEachClient: Perform an action on all clients (root or child clients) ForEachRootClient: Perform an action on all clients that have an avatar There are still a dozen places or so calling the old ForEachScenePresence that will take a little more refactoring to eliminate.
2011-08-27refactor: move SOP.IsAttachment and AttachmentPoint up into SOG to avoid ↵Justin Clark-Casey (justincc)1-4/+4
pointless duplication of identical values
2011-08-26refactor: simplify SOP.AttachedAvatar into SOG.AttachedAvatarJustin Clark-Casey (justincc)1-2/+2
This does a tiny bit to reduce code complexity, memory requirement and the cpu time of pointlessly setting this field to the same value in every SOP
2011-06-03If an llSensor() is in an attachment, make the detection cone face in the ↵Justin Clark-Casey (justincc)1-1/+10
direction of the avatar, not the relative rotation of the attachment towards the avatar. This is effectively a copy/paste from 459323a, which should be refactored sometime. This seems the obvious problem from field reports but I have not tested the fix myself. Feedback welcome.
2011-04-08Add support for the new display name related functions in LSL. This does notMelanie1-4/+22
implement the display names functionality as such, but it allows scripts that are display name aware to function as if the display name were implemented and set to the avatar name.
2011-04-08Add support for the new display name related functions in LSL. This does notMelanie1-4/+22
implement the display names functionality as such, but it allows scripts that are display name aware to function as if the display name were implemented and set to the avatar name.
2010-12-12Correct Sensor axis for unattached daughter prims.Kitto Flora1-1/+2
2010-09-12Formatting cleanup.Jeff Ames1-2/+2
2010-09-10First pass at cleaning up thread safety in EntityManager and SceneGraphJohn Hurliman1-1/+1
2010-05-10Return agents when angle is PIMelanie1-0/+4
Fixes Mantis #4703
2010-05-04Fix full circle sensorsMelanie Thielker1-0/+5
2010-05-03Fix sensor cone for sensing avatarsMelanie Thielker1-1/+12
2010-04-21Make the detection cone in attachments face in the direction of the avatar,Melanie1-0/+9
not the relative rotation of the attachment towards the avatar.
2010-03-19Renamed TryGetAvatar to TryGetScenePresence on SceneManager, SceneBase, ↵Dan Lake1-1/+1
Scene and SceneGraph. This was the only change in this patch to keep it isolated from other recent changes to the same set of files.
2010-03-19Cleaned up access to scenepresences in scenegraph. GetScenePresences and ↵Dan Lake1-57/+36
GetAvatars have been removed to consolidate locking and iteration within SceneGraph. All callers which used these to then iterate over presences have been refactored to instead pass their delegates to Scene.ForEachScenePresence(Action<ScenePresence>).