aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add osNpcPlayAnimation and osNpcStopAnimation which respect ownership as wellMelanie2012-01-061-0/+44
|
* Add osNpcCreateOwned to create an owned NPC. Those can be sensed only by the ↵Melanie2012-01-061-4/+21
| | | | 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.
* Add ThreatLevel.NoAccess to OSSL. This allows to enable OSSL without enablingMelanie2012-01-061-1/+4
| | | | | any methods, even those without threat, automatically. It is for use with setups wanting to allow only specific methods to specific users.
* Mantis 5816: osParseJSON Decoding Problemsnebadon2011-12-111-191/+65
| | | | | | | osParseJSON uses hand-crafted decoding that has two issues * does not seem to handle top-level JSON lists * does not seem to handle unicode text thanks otakup0pe!
* Rename ForEachAvatar back to ForEachScenePresence. The other changesDan Lake2011-11-031-3/+3
| | | | | | 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.
* Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls toDan Lake2011-11-031-3/+3
| | | | | | | | | | | | | | 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.
* Remove completely unused SOG.Rotation parameterJustin Clark-Casey (justincc)2011-10-291-1/+1
| | | | We always use SOP.Rotation instead
* Continuation of previous checkin. Found more places where ↵Dan Lake2011-10-271-15/+9
| | | | ForEachScenePresence can be changed to ForEachRootScenePresence.
* Added optional owner classes to existing OSSL agent PermissionsMichelle Argus2011-10-261-6/+61
| | | | | | PARCEL_GROUP, PARCEL_OWNER, ESTATE_MANAGER and REGION_OWNER can be combined with the existing agent uuid option to limit ossl functions to agents and owner classes. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* Renamed and rearranged AvatarFactoryModule to eliminate redundant lookups of ↵Dan Lake2011-10-191-1/+1
| | | | scene presence by client ID.
* Implement osNpcStand(<npc-id>)Justin Clark-Casey (justincc)2011-10-171-0/+11
| | | | Allows you to stand an NPC that has sat.
* Implement osNpcSit(). This is still in development so don't trust itJustin Clark-Casey (justincc)2011-10-171-0/+11
| | | | | | | | | Format is osNpcSit(<npc-uuid>, <target-uuid>, OS_NPC_SIT_IMMEDIATE) e.g. osNpcSit(npc, llGetKey(), OS_NPC_SIT_IMMEDIATE); At the moment, sit only succeeds if the part has a sit target set. NPC immediately sits on the target even if miles away - they do not walk up to it. This method is in development - it may change so please don't trust it yet. Standing will follow shortly since that's kind of important once you're sitting :)
* osSetParcelDetails - PARCEL_DETAILS_CLAIMDATEPixel Tomsen2011-10-111-21/+28
| | | | | | | this new flag set parcels claim date value 0 for this flag set current unixstamp http://opensimulator.org/mantis/view.php?id=5725
* Convert getLastReportedSimFPS() and getLastReportedSimStats() into more ↵Justin Clark-Casey (justincc)2011-10-101-1/+1
| | | | idiomatic LastReportedSimFPS and LastReportedSimStats on SimStatsReporter
* refactor: have lsl and ossl interrogate scene.StatsReporter directly rather ↵Justin Clark-Casey (justincc)2011-10-101-1/+1
| | | | | | than going through scene I know this goes against the law of demeter but I don't think it's that useful here and I'd rather get rid of nasty little wrapper methods
* When invoking any of the OSSL teleport functions, do it on a separate thread ↵Justin Clark-Casey (justincc)2011-09-071-6/+13
| | | | | | | rather than the script thread. This is to prevent the aborting of attachment script threads on teleport from aborting the one actually doing the teleport. This allows OSSL teleport functions to work when invoked on scripts in attachments (and huds, I assume)
* Eliminate pointless checks of SOG.RootPart != nullJustin Clark-Casey (justincc)2011-09-011-2/+1
| | | | It's never possible for SOG to have no RootPart, except in the first few picosends of the big bang when it's pulled from region persistence or deserialized
* Remove pointless cluttering SOP.ParentGroup != null checks.Justin Clark-Casey (justincc)2011-09-011-7/+3
| | | | | The only times when ParentGroup might be null is during regression tests (which might not be a valid thing) and when scene objects are being constructed from the database. At all other times it's not possible for a SOP not to have a SOG parent.
* tidy up some OSSL NPC parameter namesJustin Clark-Casey (justincc)2011-08-121-21/+21
|
* rename position parameter in osNpcMoveToTarget to targetJustin Clark-Casey (justincc)2011-08-121-2/+2
|
* rename osNpcStopMoveTo() to osNpcStopMoveToTarget()Justin Clark-Casey (justincc)2011-08-121-1/+1
|
* Allow the osNpcCreate() function to accept a notecard name or asset for ↵Justin Clark-Casey (justincc)2011-08-121-4/+24
| | | | initial appearance
* implement osNpcGetPos()Justin Clark-Casey (justincc)2011-08-111-0/+21
|
* implement osNpcGetRot() and osNpcSetRot()Justin Clark-Casey (justincc)2011-08-111-4/+53
| | | | Rotation works if done around the z axis. Anything else leads to random results.
* Implement osAgentSaveAppearance() to save the appearance of an avatar in the ↵Justin Clark-Casey (justincc)2011-08-111-4/+31
| | | | | | region to a notecard This is separate from osOwnerSaveAppearance() so that owner saves can be allowed without allowing arbitrary avatar saves
* add regression test for osNpcCreate when cloning an in-region avatarJustin Clark-Casey (justincc)2011-08-111-1/+5
|
* only accept npc UUIDs to osNpc* functions, not names (except for create)Justin Clark-Casey (justincc)2011-08-111-15/+11
|
* Get NPCs to revert to the correct 'resting' animation (e.g. stand or hover) ↵Justin Clark-Casey (justincc)2011-08-111-1/+1
| | | | | | after finishing their movement. This also fixes judder after an avatar has finished "go here"/autopilot movement in a viewer. This meant reseting the SP.AgentControlFlags since the Animator uses these to determine the correct default animation.
* Add a OS_NPC_LAND_AT_TARGET option to osMoveToTarget()Justin Clark-Casey (justincc)2011-08-101-3/+8
| | | | | | | Default for this function is now not to automatically land. This allows better control by scripts when an avatar is going to be landing on a prim rather than the ground. Stopping the avatar involves faking a collision, to avoid the pid controller making it overshoot. A better approach would be to gradually slow the avatar as we near the target
* fly and no fly constants for osNpcMoveToTarget()Justin Clark-Casey (justincc)2011-08-101-1/+1
|
* early code to allow scripts to force npcs not to fly when moving to targetJustin Clark-Casey (justincc)2011-08-101-1/+13
| | | | | this is to allow walking on prims. it will be up to the script writer to be sure that there is a continuous path. currently implemented in osNpcMoveToTarget(), but none of this is final.
* implement osNpcStopMoveTo() to cancel any current move targetJustin Clark-Casey (justincc)2011-08-101-0/+9
|
* Add osOwnerSaveAppearance() to help with setting up NPC appearances. Not ↵Justin Clark-Casey (justincc)2011-08-091-10/+41
| | | | | | yet ready for user use. Adds regression test.
* Implement first draft functions for saving and loading NPC appearance from ↵Justin Clark-Casey (justincc)2011-08-091-13/+91
| | | | | | | | | | storage. This works by serializing and deserializing NPC AvatarAppearance to a notecard in the prim inventory and making the required baked textures permanent. By using notecards, we avoid lots of awkward, technical and user-unfriendly issues concerning retaining asset references and creating a new asset type. Notecards also allow different appearances to be swapped and manipulated easily. This also allows stored NPC appearances to work transparently with OARs/IARs since the UUID scan will pick up and store the necessary references from the notecard text. This works in my basic test but is not at all ready for user use or bug reporting yet.
* factor out common notecard caching code from 3 methods.Justin Clark-Casey (justincc)2011-08-091-93/+74
|
* refactor: split out generic parts of osMakeNotecard() into a separate. Add ↵Justin Clark-Casey (justincc)2011-08-081-58/+99
| | | | method doc. Other minor tidies.
* rename NPC.Autopilot to NPC.MoveToTarget internally. Add method doc to ↵Justin Clark-Casey (justincc)2011-08-031-1/+1
| | | | INPCModule
* Fix osMatchString() so that it reports all instance of pattern matches, not ↵Justin Clark-Casey (justincc)2011-07-091-3/+3
| | | | | | | just the first one. This is a slight adaptation of the patch in http://opensimulator.org/mantis/view.php?id=4568 which doesn't apply directly since the underlying code was changed by earlier makopoppo patches. Thanks makopoppo!
* Instance-types-in-list fix for LSL/OSSL functions. This will fix ↵Makopoppo2011-07-091-6/+7
| | | | | | | | | | | | | | | | | | llListFindList() which always returns -1 when you compare with the list from those functions. *llCSV2List *llGetAnimationList *llGetLinkPrimitiveParams *llGetObjectDetails *llGetParcelDetails *llGetParcelPrimOwners *llGetPrimitiveParams *GetLinkPrimitiveParamsEx *osGetAgents *osMatchString *osGetLinkPrimitiveParams *osGetPrimitiveParams *osGetAvatarList
* Create a very basic initial test which just creates an 'npc' and tests that ↵Justin Clark-Casey (justincc)2011-07-021-1/+0
| | | | the scene presence exists
* [PATCH 2/2] [FIX] osGetPrimitiveParams() and osSetPrimitiveParams()Makopoppo2011-06-281-0/+2
| | | | | | crashes throwing System.NullReferenceException Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* [PATCH] osSetSpeed() will accept float numberMakopoppo2011-06-281-2/+2
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* [PATCH] Get osGetWindParam() and osSetWindParam() accessibleMakopoppo2011-06-281-3/+3
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* [PATCH 1/2] Fixed the function names of some OSSL functions shown asMakopoppo2011-06-281-3/+3
| | | | | | threat-level check error message Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* Add support for new naming syntax of linked regions to osTeleportAgent and ↵Marck2011-02-171-15/+2
| | | | osTeleportOwner.
* Make osTeleportOwner work in foreign regions by relaxing the restrictions on ↵Marck2011-02-171-9/+14
| | | | teleporting an agent.
* minor: add comment explaining that GetRegionsByName needs to stay in ↵Justin Clark-Casey (justincc)2011-02-121-0/+2
| | | | TeleportAgent for its side effects.
* For now, reinstate the call to World.GridService.GetRegionsByName() ↵Justin Clark-Casey (justincc)2011-02-051-1/+3
| | | | | | commented out in 933f47e Even though we don't use the results, just getting the regions may have side effects in making hypergrid links available for the later World.RequestTeleportLocation()
* Comment out unused call to GridService in TeleportAgent()Justin Clark-Casey (justincc)2011-01-281-1/+1
|
* Fix osTeleportAgent and osTeleportOwner for the case that GridService is ↵Marck2010-12-201-11/+5
| | | | used with a storage provider other than NullRegionData.