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.
ghosts
Justin Clark-Casey (justincc) 2014-10-29 00:29:11 +00:00
parent 4275342515
commit 064897be85
1 changed files with 3 additions and 0 deletions

View File

@ -46,7 +46,10 @@ namespace pCampBot
public override void Action() public override void Action()
{ {
Bot.Client.Self.Jump(false);
Bot.Client.Self.Movement.Stop = true;
m_interruptEvent.WaitOne(); m_interruptEvent.WaitOne();
Bot.Client.Self.Movement.Stop = false;
} }
public override void Interrupt() public override void Interrupt()