diff options
author | Dahlia Trimble | 2008-10-15 04:55:13 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-10-15 04:55:13 +0000 |
commit | 227fd4eb11db76c7a2da5fdaffd00fc766f38c8c (patch) | |
tree | 9f34c2e4d3c56c0f55dd703511168473dd01a2be /OpenSim/Region/Environment/Scenes | |
parent | Thanks to M. Igarashi and nlin for a patch that implements llGetCameraRot(). (diff) | |
download | opensim-SC_OLD-227fd4eb11db76c7a2da5fdaffd00fc766f38c8c.zip opensim-SC_OLD-227fd4eb11db76c7a2da5fdaffd00fc766f38c8c.tar.gz opensim-SC_OLD-227fd4eb11db76c7a2da5fdaffd00fc766f38c8c.tar.bz2 opensim-SC_OLD-227fd4eb11db76c7a2da5fdaffd00fc766f38c8c.tar.xz |
Thanks to T. Sado and nlin for a patch that partially implements llGetAgentInfo (AGENT_FLYING, AGENT_ALWAYS_RUN, AGENT_AWAY, AGENT_MOUSELOOK, AGENT_TYPING).
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 6f5372a..0fe2bdb 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -297,6 +297,41 @@ namespace OpenSim.Region.Environment.Scenes | |||
297 | set { m_allowMovement = value; } | 297 | set { m_allowMovement = value; } |
298 | } | 298 | } |
299 | 299 | ||
300 | public bool SetAlwaysRun | ||
301 | { | ||
302 | get | ||
303 | { | ||
304 | if (PhysicsActor != null) | ||
305 | { | ||
306 | return PhysicsActor.SetAlwaysRun; | ||
307 | } | ||
308 | else | ||
309 | { | ||
310 | return m_setAlwaysRun; | ||
311 | } | ||
312 | } | ||
313 | set | ||
314 | { | ||
315 | m_setAlwaysRun = value; | ||
316 | if (PhysicsActor != null) | ||
317 | { | ||
318 | PhysicsActor.SetAlwaysRun = value; | ||
319 | } | ||
320 | } | ||
321 | } | ||
322 | |||
323 | public byte State | ||
324 | { | ||
325 | get { return m_state; } | ||
326 | set { m_state = value; } | ||
327 | } | ||
328 | |||
329 | public uint AgentControlFlags | ||
330 | { | ||
331 | get { return m_AgentControlFlags; } | ||
332 | set { m_AgentControlFlags = value; } | ||
333 | } | ||
334 | |||
300 | /// <summary> | 335 | /// <summary> |
301 | /// This works out to be the ClientView object associated with this avatar, or it's client connection manager | 336 | /// This works out to be the ClientView object associated with this avatar, or it's client connection manager |
302 | /// </summary> | 337 | /// </summary> |
@@ -942,9 +977,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
942 | // In the future, these values might need to go global. | 977 | // In the future, these values might need to go global. |
943 | // Here's where you get them. | 978 | // Here's where you get them. |
944 | 979 | ||
945 | // m_AgentControlFlags = flags; | 980 | m_AgentControlFlags = flags; |
946 | // m_headrotation = agentData.AgentData.HeadRotation; | 981 | m_headrotation = agentData.HeadRotation; |
947 | // m_state = agentData.AgentData.State; | 982 | m_state = agentData.State; |
948 | 983 | ||
949 | if (m_allowMovement) | 984 | if (m_allowMovement) |
950 | { | 985 | { |