aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Commands/Movement/StandCommand.cs
diff options
context:
space:
mode:
authorgareth2007-05-14 03:13:47 +0000
committergareth2007-05-14 03:13:47 +0000
commit64a98c736848de6099254f23483058668273c1a5 (patch)
treea8f2624277e48814531750db0ec07a8d64c1f740 /ExportBot/Commands/Movement/StandCommand.cs
parentAdded skeleton for grid management agent (diff)
downloadopensim-SC_OLD-64a98c736848de6099254f23483058668273c1a5.zip
opensim-SC_OLD-64a98c736848de6099254f23483058668273c1a5.tar.gz
opensim-SC_OLD-64a98c736848de6099254f23483058668273c1a5.tar.bz2
opensim-SC_OLD-64a98c736848de6099254f23483058668273c1a5.tar.xz
Finished off adding the new management API to gridserver
Updated VersionInfo.cs finally Updated prebuild and rebuilt nant build files Completed Management agent basics
Diffstat (limited to '')
-rw-r--r--ExportBot/Commands/Movement/StandCommand.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/ExportBot/Commands/Movement/StandCommand.cs b/ExportBot/Commands/Movement/StandCommand.cs
deleted file mode 100644
index 8a00552..0000000
--- a/ExportBot/Commands/Movement/StandCommand.cs
+++ /dev/null
@@ -1,47 +0,0 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using libsecondlife;
5using libsecondlife.Packets;
6
7namespace libsecondlife.TestClient
8{
9 public class StandCommand: Command
10 {
11 public StandCommand(TestClient testClient)
12 {
13 Name = "stand";
14 Description = "Stand";
15 }
16
17 public override string Execute(string[] args, LLUUID fromAgentID)
18 {
19 Client.Self.Status.StandUp = true;
20 stand(Client);
21 return "Standing up.";
22 }
23
24 void stand(SecondLife client)
25 {
26 SendAgentUpdate(client, (uint)MainAvatar.ControlFlags.AGENT_CONTROL_STAND_UP);
27 }
28
29 const float DRAW_DISTANCE = 96.0f;
30 void SendAgentUpdate(SecondLife client, uint ControlID)
31 {
32 AgentUpdatePacket p = new AgentUpdatePacket();
33 p.AgentData.Far = DRAW_DISTANCE;
34 //LLVector3 myPos = client.Self.Position;
35 p.AgentData.CameraCenter = new LLVector3(0, 0, 0);
36 p.AgentData.CameraAtAxis = new LLVector3(0, 0, 0);
37 p.AgentData.CameraLeftAxis = new LLVector3(0, 0, 0);
38 p.AgentData.CameraUpAxis = new LLVector3(0, 0, 0);
39 p.AgentData.HeadRotation = new LLQuaternion(0, 0, 0, 1); ;
40 p.AgentData.BodyRotation = new LLQuaternion(0, 0, 0, 1); ;
41 p.AgentData.AgentID = client.Network.AgentID;
42 p.AgentData.SessionID = client.Network.SessionID;
43 p.AgentData.ControlFlags = ControlID;
44 client.Network.SendPacket(p);
45 }
46 }
47}