Merge branch 'master' into careminster
commit
7cdb564fdd
|
@ -1986,6 +1986,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// If child prims have invalid perms, fix them
|
// If child prims have invalid perms, fix them
|
||||||
grp.AdjustChildPrimPermissions();
|
grp.AdjustChildPrimPermissions();
|
||||||
|
|
||||||
|
// If child prims have invalid perms, fix them
|
||||||
|
grp.AdjustChildPrimPermissions();
|
||||||
|
|
||||||
if (remoteClient == null)
|
if (remoteClient == null)
|
||||||
{
|
{
|
||||||
// Autoreturn has a null client. Nothing else does. So
|
// Autoreturn has a null client. Nothing else does. So
|
||||||
|
|
|
@ -2944,6 +2944,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LSL_Float osGetHealth(string avatar)
|
||||||
|
{
|
||||||
|
CheckThreatLevel(ThreatLevel.None, "osGetHealth");
|
||||||
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
|
LSL_Float health = new LSL_Float(-1);
|
||||||
|
ScenePresence presence = World.GetScenePresence(new UUID(avatar));
|
||||||
|
if (presence != null) health = presence.Health;
|
||||||
|
return health;
|
||||||
|
}
|
||||||
|
|
||||||
public void osCauseDamage(string avatar, double damage)
|
public void osCauseDamage(string avatar, double damage)
|
||||||
{
|
{
|
||||||
CheckThreatLevel(ThreatLevel.High, "osCauseDamage");
|
CheckThreatLevel(ThreatLevel.High, "osCauseDamage");
|
||||||
|
|
|
@ -258,6 +258,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||||
int osGetSimulatorMemory();
|
int osGetSimulatorMemory();
|
||||||
void osKickAvatar(string FirstName,string SurName,string alert);
|
void osKickAvatar(string FirstName,string SurName,string alert);
|
||||||
void osSetSpeed(string UUID, LSL_Float SpeedModifier);
|
void osSetSpeed(string UUID, LSL_Float SpeedModifier);
|
||||||
|
LSL_Float osGetHealth(string avatar);
|
||||||
void osCauseHealing(string avatar, double healing);
|
void osCauseHealing(string avatar, double healing);
|
||||||
void osCauseDamage(string avatar, double damage);
|
void osCauseDamage(string avatar, double damage);
|
||||||
LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules);
|
LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules);
|
||||||
|
|
|
@ -866,6 +866,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
m_OSSL_Functions.osSetSpeed(UUID, SpeedModifier);
|
m_OSSL_Functions.osSetSpeed(UUID, SpeedModifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LSL_Float osGetHealth(string avatar)
|
||||||
|
{
|
||||||
|
return m_OSSL_Functions.osGetHealth(avatar);
|
||||||
|
}
|
||||||
|
|
||||||
public void osCauseDamage(string avatar, double damage)
|
public void osCauseDamage(string avatar, double damage)
|
||||||
{
|
{
|
||||||
m_OSSL_Functions.osCauseDamage(avatar, damage);
|
m_OSSL_Functions.osCauseDamage(avatar, damage);
|
||||||
|
|
Loading…
Reference in New Issue