diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-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 | { |