| 340 |
} |
} |
| 341 |
|
|
| 342 |
// Scenepresence related |
// Scenepresence related |
| 343 |
|
// These are now in RexClientView, although most of them are not working properly yet. |
| 344 |
|
|
| 345 |
public string SPGetFullName(string vPresenceId) |
public string SPGetFullName(string vPresenceId) |
| 346 |
{ |
{ |
| 347 |
UUID TempId = new UUID(vPresenceId); |
UUID TempId = new UUID(vPresenceId); |
| 529 |
} |
} |
| 530 |
} |
} |
| 531 |
|
|
| 532 |
|
public float SPGetVertMovementModifier(string vPresenceId) |
| 533 |
|
{ |
| 534 |
|
UUID TempId = new UUID(vPresenceId); |
| 535 |
|
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 536 |
|
if (temppre != null) |
| 537 |
|
{ |
| 538 |
|
if (temppre.ControllingClient is RexNetwork.RexClientView) |
| 539 |
|
{ |
| 540 |
|
RexNetwork.RexClientView rexclient = (RexNetwork.RexClientView)temppre.ControllingClient; |
| 541 |
|
return rexclient.RexVertMovementSpeedMod; |
| 542 |
|
} |
| 543 |
|
} |
| 544 |
|
return 0.0f; |
| 545 |
|
} |
| 546 |
|
|
| 547 |
|
public void SPSetVertMovementModifier(string vPresenceId, float vSpeedModifier) |
| 548 |
|
{ |
| 549 |
|
|
| 550 |
|
UUID TempId = new UUID(vPresenceId); |
| 551 |
|
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 552 |
|
if (temppre != null) |
| 553 |
|
if (temppre.ControllingClient is RexNetwork.RexClientView) |
| 554 |
|
{ |
| 555 |
|
RexNetwork.RexClientView rexclient = (RexNetwork.RexClientView)temppre.ControllingClient; |
| 556 |
|
rexclient.RexVertMovementSpeedMod = vSpeedModifier; |
| 557 |
|
} |
| 558 |
|
} |
| 559 |
|
|
| 560 |
|
|
| 561 |
|
public bool SPGetSitDisabled(string vPresenceId) |
| 562 |
|
{ |
| 563 |
|
|
| 564 |
|
UUID TempId = new UUID(vPresenceId); |
| 565 |
|
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 566 |
|
if (temppre != null) |
| 567 |
|
{ |
| 568 |
|
if (temppre.ControllingClient is RexNetwork.RexClientView) |
| 569 |
|
{ |
| 570 |
|
RexNetwork.RexClientView rexclient = (RexNetwork.RexClientView)temppre.ControllingClient; |
| 571 |
|
return rexclient.RexSitDisabled; |
| 572 |
|
} |
| 573 |
|
} |
| 574 |
|
return false; |
| 575 |
|
} |
| 576 |
|
|
| 577 |
|
public void SPSetSitDisabled(string vPresenceId, bool vbValue) |
| 578 |
|
{ |
| 579 |
|
|
| 580 |
|
UUID TempId = new UUID(vPresenceId); |
| 581 |
|
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 582 |
|
if (temppre != null) |
| 583 |
|
{ |
| 584 |
|
if (temppre.ControllingClient is RexNetwork.RexClientView) |
| 585 |
|
{ |
| 586 |
|
RexNetwork.RexClientView rexclient = (RexNetwork.RexClientView)temppre.ControllingClient; |
| 587 |
|
rexclient.RexSitDisabled = vbValue; |
| 588 |
|
} |
| 589 |
|
} |
| 590 |
|
} |
| 591 |
|
|
| 592 |
|
|
| 593 |
// Rexbot related |
// Rexbot related |
| 594 |
public void BotWalkTo(string vPresenceId, LSL_Types.Vector3 vDest) |
public void BotWalkTo(string vPresenceId, LSL_Types.Vector3 vDest) |
| 595 |
{ |
{ |
| 624 |
} |
} |
| 625 |
} |
} |
| 626 |
|
|
| 627 |
// deprecated. prefer BotPauseAutoMove() or BotStopAutoMove() |
/// <summary> |
| 628 |
public void BotEnableAutoMove(string vPresenceId, bool vEnable) |
/// deprecated. prefer BotPauseAutoMove() or BotStopAutoMove() |
| 629 |
|
/// </summary> |
| 630 |
|
[Obsolete("use BotPauseAutoMove() or BotStopAutoMove()")] |
| 631 |
|
public void BotEnableAutoMove(string botId, bool vEnable) |
| 632 |
{ |
{ |
| 633 |
UUID TempId = new UUID(vPresenceId); |
UUID TempId = new UUID(botId); |
| 634 |
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 635 |
if (temppre != null && temppre.ControllingClient is IRexBot) |
if (temppre != null && temppre.ControllingClient is IRexBot) |
| 636 |
{ |
{ |
| 638 |
} |
} |
| 639 |
} |
} |
| 640 |
|
|
| 641 |
// Temporarily pause bot auto movement. bot will still warp to destination if it is deemed stuck |
/// <summary> |
| 642 |
public void BotPauseAutoMove(string vPresenceId, bool vEnable) |
/// Temporarily pause bot auto movement. bot will still warp to destination if it is deemed stuck |
| 643 |
|
/// </summary> |
| 644 |
|
/// <param name="botId">UUID of the bots ScenePresence</param> |
| 645 |
|
/// <param name="vEnable"></param> |
| 646 |
|
public void BotPauseAutoMove(string botId, bool vEnable) |
| 647 |
{ |
{ |
| 648 |
UUID TempId = new UUID(vPresenceId); |
UUID TempId = new UUID(botId); |
| 649 |
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 650 |
if (temppre != null && temppre.ControllingClient is IRexBot) |
if (temppre != null && temppre.ControllingClient is IRexBot) |
| 651 |
{ |
{ |
| 653 |
} |
} |
| 654 |
} |
} |
| 655 |
|
|
| 656 |
// Stop/start bot auto movement. Bot will not warp to destination after it has been stopped, no logic |
/// <summary> |
| 657 |
// for checking if bot is stuck |
/// Stop/start bot auto movement. Bot will not warp to destination after it has been stopped, |
| 658 |
public void BotStopAutoMove(string vPresenceId, bool vEnable) |
/// no logic for checking if bot is stuck |
| 659 |
|
/// </summary> |
| 660 |
|
/// <param name="botId">UUID of the bots ScenePresence</param> |
| 661 |
|
/// <param name="vEnable"></param> |
| 662 |
|
public void BotStopAutoMove(string botId, bool vEnable) |
| 663 |
{ |
{ |
| 664 |
UUID TempId = new UUID(vPresenceId); |
UUID TempId = new UUID(botId); |
| 665 |
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
ScenePresence temppre = myScriptEngine.World.GetScenePresence(TempId); |
| 666 |
if (temppre != null && temppre.ControllingClient is IRexBot) |
if (temppre != null && temppre.ControllingClient is IRexBot) |
| 667 |
{ |
{ |
| 670 |
} |
} |
| 671 |
|
|
| 672 |
|
|
| 673 |
|
#region Functions not supported at the moment. |
|
|
|
|
|
|
|
|
|
|
// Functions not supported at the moment. |
|
| 674 |
/* |
/* |
| 675 |
public bool GetFreezed(string vId) |
public bool GetFreezed(string vId) |
| 676 |
{ |
{ |
| 762 |
} |
} |
| 763 |
} |
} |
| 764 |
*/ |
*/ |
| 765 |
|
#endregion |
| 766 |
|
|
| 767 |
public float TimeOfDay //is double in LL interface, but float inside opensim estate info |
public float TimeOfDay //is double in LL interface, but float inside opensim estate info |
| 768 |
{ |
{ |