**CONFIRMED**AGAIN** , Add new function, osSetOwnerSpeed(float speed), threat level moderate
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>0.9.1.0-post-fixes
parent
ed0e2623b9
commit
6d9de17d77
|
@ -3656,6 +3656,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
avatar.SpeedModifier = (float)SpeedModifier;
|
avatar.SpeedModifier = (float)SpeedModifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void osSetOwnerSpeed(LSL_Float SpeedModifier)
|
||||||
|
{
|
||||||
|
CheckThreatLevel(ThreatLevel.Moderate, "osSetOwnerSpeed");
|
||||||
|
if(SpeedModifier > 4)SpeedModifier = 4;
|
||||||
|
ScenePresence avatar = World.GetScenePresence(m_host.OwnerID);
|
||||||
|
|
||||||
|
if (avatar != null)
|
||||||
|
avatar.SpeedModifier = (float)SpeedModifier;
|
||||||
|
}
|
||||||
|
|
||||||
public void osKickAvatar(string FirstName, string SurName, string alert)
|
public void osKickAvatar(string FirstName, string SurName, string alert)
|
||||||
{
|
{
|
||||||
CheckThreatLevel(ThreatLevel.Severe, "osKickAvatar");
|
CheckThreatLevel(ThreatLevel.Severe, "osKickAvatar");
|
||||||
|
|
|
@ -383,6 +383,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||||
int osGetSimulatorMemoryKB();
|
int osGetSimulatorMemoryKB();
|
||||||
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);
|
||||||
|
void osSetOwnerSpeed(LSL_Float SpeedModifier);
|
||||||
LSL_Float osGetHealth(string avatar);
|
LSL_Float osGetHealth(string avatar);
|
||||||
void osCauseHealing(string avatar, double healing);
|
void osCauseHealing(string avatar, double healing);
|
||||||
void osSetHealth(string avatar, double health);
|
void osSetHealth(string avatar, double health);
|
||||||
|
|
|
@ -986,6 +986,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
m_OSSL_Functions.osSetSpeed(UUID, SpeedModifier);
|
m_OSSL_Functions.osSetSpeed(UUID, SpeedModifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void osSetOwnerSpeed(LSL_Float SpeedModifier)
|
||||||
|
{
|
||||||
|
m_OSSL_Functions.osSetOwnerSpeed(SpeedModifier);
|
||||||
|
}
|
||||||
|
|
||||||
public LSL_Float osGetHealth(string avatar)
|
public LSL_Float osGetHealth(string avatar)
|
||||||
{
|
{
|
||||||
return m_OSSL_Functions.osGetHealth(avatar);
|
return m_OSSL_Functions.osGetHealth(avatar);
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
Allow_osGetSimulatorMemoryKB = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osGetSimulatorMemoryKB = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osMessageAttachments = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osMessageAttachments = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
Allow_osSetSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osSetSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
|
Allow_osSetOwnerSpeed = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
|
|
||||||
; ThreatLevel High
|
; ThreatLevel High
|
||||||
Allow_osCauseDamage = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
Allow_osCauseDamage = ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
|
||||||
|
|
Loading…
Reference in New Issue