aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-08-12rename position parameter in osNpcMoveToTarget to targetJustin Clark-Casey (justincc)1-2/+2
2011-08-12rename osNpcStopMoveTo() to osNpcStopMoveToTarget()Justin Clark-Casey (justincc)1-1/+1
2011-08-12Allow the osNpcCreate() function to accept a notecard name or asset for ↵Justin Clark-Casey (justincc)1-4/+24
initial appearance
2011-08-11implement osNpcGetPos()Justin Clark-Casey (justincc)1-0/+21
2011-08-11implement osNpcGetRot() and osNpcSetRot()Justin Clark-Casey (justincc)1-4/+53
Rotation works if done around the z axis. Anything else leads to random results.
2011-08-11Implement osAgentSaveAppearance() to save the appearance of an avatar in the ↵Justin Clark-Casey (justincc)1-4/+31
region to a notecard This is separate from osOwnerSaveAppearance() so that owner saves can be allowed without allowing arbitrary avatar saves
2011-08-11add regression test for osNpcCreate when cloning an in-region avatarJustin Clark-Casey (justincc)1-1/+5
2011-08-11only accept npc UUIDs to osNpc* functions, not names (except for create)Justin Clark-Casey (justincc)1-15/+11
2011-08-11Get NPCs to revert to the correct 'resting' animation (e.g. stand or hover) ↵Justin Clark-Casey (justincc)1-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.
2011-08-10Add a OS_NPC_LAND_AT_TARGET option to osMoveToTarget()Justin Clark-Casey (justincc)1-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
2011-08-10fly and no fly constants for osNpcMoveToTarget()Justin Clark-Casey (justincc)1-1/+1
2011-08-10early code to allow scripts to force npcs not to fly when moving to targetJustin Clark-Casey (justincc)1-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.
2011-08-10implement osNpcStopMoveTo() to cancel any current move targetJustin Clark-Casey (justincc)1-0/+9
2011-08-09Add osOwnerSaveAppearance() to help with setting up NPC appearances. Not ↵Justin Clark-Casey (justincc)1-10/+41
yet ready for user use. Adds regression test.
2011-08-09Implement first draft functions for saving and loading NPC appearance from ↵Justin Clark-Casey (justincc)1-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.
2011-08-09factor out common notecard caching code from 3 methods.Justin Clark-Casey (justincc)1-93/+74
2011-08-08refactor: split out generic parts of osMakeNotecard() into a separate. Add ↵Justin Clark-Casey (justincc)1-58/+99
method doc. Other minor tidies.
2011-08-03rename NPC.Autopilot to NPC.MoveToTarget internally. Add method doc to ↵Justin Clark-Casey (justincc)1-1/+1
INPCModule
2011-07-09Fix osMatchString() so that it reports all instance of pattern matches, not ↵Justin Clark-Casey (justincc)1-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!
2011-07-09Instance-types-in-list fix for LSL/OSSL functions. This will fix ↵Makopoppo1-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
2011-07-02Create a very basic initial test which just creates an 'npc' and tests that ↵Justin Clark-Casey (justincc)1-1/+0
the scene presence exists
2011-06-28[PATCH 2/2] [FIX] osGetPrimitiveParams() and osSetPrimitiveParams()Makopoppo1-0/+2
crashes throwing System.NullReferenceException Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-06-28[PATCH] osSetSpeed() will accept float numberMakopoppo1-2/+2
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-06-28[PATCH] Get osGetWindParam() and osSetWindParam() accessibleMakopoppo1-3/+3
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-06-28[PATCH 1/2] Fixed the function names of some OSSL functions shown asMakopoppo1-3/+3
threat-level check error message Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-02-17Add support for new naming syntax of linked regions to osTeleportAgent and ↵Marck1-15/+2
osTeleportOwner.
2011-02-17Make osTeleportOwner work in foreign regions by relaxing the restrictions on ↵Marck1-9/+14
teleporting an agent.
2011-02-12minor: add comment explaining that GetRegionsByName needs to stay in ↵Justin Clark-Casey (justincc)1-0/+2
TeleportAgent for its side effects.
2011-02-05For now, reinstate the call to World.GridService.GetRegionsByName() ↵Justin Clark-Casey (justincc)1-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()
2011-01-28Comment out unused call to GridService in TeleportAgent()Justin Clark-Casey (justincc)1-1/+1
2010-12-20Fix osTeleportAgent and osTeleportOwner for the case that GridService is ↵Marck1-11/+5
used with a storage provider other than NullRegionData.
2010-12-13Revamp the viewer -> banlist packet processing so fix a number of bugs.Melanie1-1/+1
Remove the too coarse CanEditParcel method in favor of a CanEditParcelProperties method that takes a GroupPowers argument to specify what action is to be taken. Also, make the method to set parcel data much more granular. Permissions in a deeded setting should now work.
2010-12-11More OSSL function name normalization, this time for osParcelSetDetails.Marck1-3/+15
2010-12-10Normalization of OSSL function names.Marck1-9/+62
Added the following replacement functions for compliance to the OSSL standards stated on the wiki: osGetTerrainHeight osSetTerrainHeight osGetSunParam osSetSunParam osSetPenColor The functions that do not comply to the standard give a warning when used but work normally otherwise. The graphics primitive drawing command "PenColor" has also been added as well as dynamic texture parameter "bgcolor" as an alternative to "bgcolour". The following two functions have been renamed because they are not enabled yet aynway: osWindParamSet => osSetWindParam osWindParamGet => osGetWindParam
2010-11-25Change all restarting to use the restart module. Remove hardcoded behaviorMelanie1-3/+22
2010-11-17Add osUnixTimeToTimestamp()Justin Clark-Casey (justincc)1-1/+17
This allows an input unix time to be converted to an llGetTimeStamp() format. Thanks Thomax.
2010-11-16Fix osTeleportAgent for hypergrid destinations.Marck1-1/+5
Signed-off-by: Melanie <melanie@t-data.com>
2010-11-16Add osTeleportOwner.Marck1-2/+30
This provides the same functionality as osTeleportAgent but without the griefing potential. Region owners need not be concerned about the use of this function because it only allows to do what is already possible with the world map. The intended use is with HUDs. For example, a list of (hypergrid) destinations could be made available for quick access. Signed-off-by: Melanie <melanie@t-data.com>
2010-10-17Adding osFunctions for light projectionBlueWall1-0/+42
Set the projection parameters in the host prim ... osSetProjectionParam(bool Enabled, key TextureMaskUUID, float FOV, float Focus, float Ambiance); Set the projection parameters in a target prim ... osSetProjectionParam(ikey target uuid, bool Enabled, key TextureMaskUUID, float FOV, float Focus, float Ambiance); Threat Level very high Signed-off-by: Melanie <melanie@t-data.com>
2010-09-12Formatting cleanup.Jeff Ames1-3/+3
2010-08-16Work on TeleportStart: renamed method from TeleportLocationStart to ↵Diva Canto1-2/+0
TeleportStart, and now sending this upon all teleports, not just some, and in the right place (EntityTransferModule).
2010-06-14osGetAvatarList: Use AbsolutePosition instead of the position of the physics ↵Tom Grimshaw1-6/+3
actor, or the avatar disappears when they sit down.
2010-06-11Clone cmGetAvatarList into osGetAvatarList for more generic use.Melanie Thielker1-0/+27
2010-06-02Add two new osFunctions:Melanie Thielker1-0/+16
list osGetPrimititveParams(key prim, list rules); osSetPrimitiveParams(key prim, list rules);
2010-05-30Changes osFunction permissions again. Allow_ with a list of UUIDs now againMelanie Thielker1-16/+51
refers to prim OWNERS. A new option set, Creators_, is added to allow selection by script creator. For existing installs, this means no functional change. The warning from my prior commit doesn't apply anymore.
2010-05-30Changes OSSL Api permissions for the case of UUID list. In 0.6.9, the UUIDsMelanie Thielker1-3/+18
would be the IDs of the prim owners in whose prims these functions would run. This changes it so the UUID is the SCRIPT CREATOR instead. Further, osfunctions limited by uuid will not run if the creator and owner differ and the owner has mod rights on the script. There is still a danger in passing moodifiable scripts to others, as they can insert a harmful function, then remove the mod rights to make it runnable. As before, care needs to be taken, but where it was modable prims that were the risk before, modable scripts are the weak spot now. In cases where prim owner == script creator == script owner, nothing will change.
2010-05-13Implements three new OSSL functions for parcel management: osParcelJoin ↵OpenSim Master1-0/+82
joins parcels in an area, osParcelSubdivide splits parcels in an area, osParcelSetDetails sets parcel name, description, owner and group owner. Join and Subdivide methods in LandChannel are exposed.
2010-03-19Cleaned up access to scenepresences in scenegraph. GetScenePresences and ↵Dan Lake1-9/+11
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>).
2010-02-22Changed asset CreatorID to a stringJohn Hurliman1-1/+1
2010-02-22* Adds CreatorID to asset metadata. This is just the plumbing to support ↵John Hurliman1-1/+1
CreatorID, it doesn't modify database backends or OAR files to support storing/loading it