From 064897be852b84869b4aa8c46686ee3e769158e3 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Wed, 29 Oct 2014 00:29:11 +0000 Subject: [PATCH] On pCampbot, if we add the none (n) behaviour then make it actually stop any bots in motion. Previously, adding this behaviour after physics (p) would leave the bot to drift off for ever in its last movement direction. --- OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs index 4a7237c590..0d4378194f 100644 --- a/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs +++ b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs @@ -46,7 +46,10 @@ namespace pCampBot public override void Action() { + Bot.Client.Self.Jump(false); + Bot.Client.Self.Movement.Stop = true; m_interruptEvent.WaitOne(); + Bot.Client.Self.Movement.Stop = false; } public override void Interrupt()