Thread: Bot Dev server
View Single Post
  #7  
Old 01-16-2010, 08:53 AM
Frumph
Fire Beetle
 
Join Date: Jan 2010
Posts: 17
Default

Try this out, it's looking great on my server with just a jitter every 6 seconds:

Code:
@@ -1583,11 +1583,10 @@
 
 	if (tic_timer.Check()) {
 		//6 seconds, or whatever the rule is set to has passed, send this position to everyone to avoid ghosting
-		if(!IsMoving() && !IsEngaged())
-			SendPosUpdate();
-
+//		if(!IsMoving() && !IsEngaged())
+//			SendPosUpdate();
+		
 		SpellProcess();
-
 		BuffProcess();
 
 		if(curfp)
@@ -2068,7 +2067,7 @@
 
 			SetRunAnimSpeed(0);
 			
-			if(IsMoving()) {
+			if (IsMoving()) {
 				SetMoving(false);
 				moved = false;
 				SetHeading(0);
@@ -2395,9 +2394,7 @@
 		}
 
 		if(AImovement_timer->Check()) {
-			if(!IsMoving())
-				SendPosUpdate();
-
+			// if(!IsMoving()) SendPosUpdate();
 			// now the followID: that's what happening as the bots follow their leader.
 			if(GetFollowID()) {
 				Mob* follow = entity_list.GetMob(GetFollowID());
@@ -2419,9 +2416,11 @@
 					else {
 						SetHeading(follow->GetHeading());
 
-						if(moved) {	
+						if (moved) {	
 							SetMoving(false);
-							SendPosUpdate();
+							if (tic_timer.Check()) {
+								SendPosUpdate();
+							}
 						}
 					}
Reply With Quote