From b53be022f26cb32c36070ffb028378d587e8762f Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 29 Oct 2014 00:29:11 +0000 Subject: 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(+) (limited to 'OpenSim/Tools') diff --git a/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs index 4a7237c..0d43781 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() -- cgit v1.1