From b0c6baaeb05c5f15c951d3128419fac82b399911 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 3 Feb 2008 04:13:46 +0000 Subject: * Adding the PhysicsCamperBot load testing app to the SVN in it's own folder. You'll have to build it separately to take advantage of it. *read the Readme file*. The bots created by this application roam around amusingly to simulate load. * Be smart, Don't use this on a public grid, lest you get banned permanently. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 39 ++++++++++++++++++---- 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 75ccf1a..659a1f5 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -1088,17 +1088,33 @@ namespace OpenSim.Region.Environment.Scenes (m_movementflag & (uint) AgentManager.ControlFlags.AGENT_CONTROL_UP_POS) != 0) { // Client is moving, and colliding and pressing the page up button but isn't flying - SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); + try + { + SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); + } + catch (KeyNotFoundException) + { } } else if (m_setAlwaysRun) { // We are running - SetMovementAnimation(Animations.AnimsLLUUID["RUN"], 1); + try + { + SetMovementAnimation(Animations.AnimsLLUUID["RUN"], 1); + } + catch (KeyNotFoundException) + { } } else { // We're moving, but we're not doing anything else.. so play the stand animation - SetMovementAnimation(Animations.AnimsLLUUID["WALK"], 1); + try + { + SetMovementAnimation(Animations.AnimsLLUUID["WALK"], 1); + } + catch (KeyNotFoundException) + { } + } } else @@ -1130,7 +1146,13 @@ namespace OpenSim.Region.Environment.Scenes else { // We're not moving.. and we're not doing anything.. so play the stand animation - SetMovementAnimation(Animations.AnimsLLUUID["STAND"], 1); + try + { + + SetMovementAnimation(Animations.AnimsLLUUID["STAND"], 1); + } + catch (KeyNotFoundException) + { } } } } @@ -1181,8 +1203,13 @@ namespace OpenSim.Region.Environment.Scenes direc.z *= 3; //System.Console.WriteLine("Jump"); // PreJump and jump happen too quickly. Many times prejump gets ignored. - SetMovementAnimation(Animations.AnimsLLUUID["PREJUMP"], 1); - SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); + try + { + SetMovementAnimation(Animations.AnimsLLUUID["PREJUMP"], 1); + SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); + } + catch (KeyNotFoundException) + { } } } } -- cgit v1.1