Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2006, 05:53 PM
unicorn97211
Sarnak
 
Join Date: May 2006
Posts: 37
Default Ghosting Mob Fix

Currently if a mob is running at you and you feign death (or mem wipe some other way) while the mob is in motion, the mob continues to run on the client until his random wait time is up to go home. You'll notice your targeting ring stays where it should but the mob ghosts on by you as if you were going link dead. This will fix this problem so that when you feign death and the mob is in motion , the mob will stop dead in it's tracks and not ghost by. This should also fix this problem for when people die before a mob chasing them can reach them.

Here is the diff

Code:
--- E:\EQEmu815\zone\MobAI.cpp	Tue Jul 04 09:33:18 2006
+++ C:\EQEmuSP\Source\0.7.0\zone\MobAI.cpp	Thu Jul 06 23:11:25 2006
@@ -1043,6 +1046,13 @@
 		pLastFightingDelayMoving += minLastFightingDelayMoving;
 	else
 		pLastFightingDelayMoving += (rand() % (maxLastFightingDelayMoving-minLastFightingDelayMoving)) + minLastFightingDelayMoving;
+	// EverHood - So mobs don't keep running as a ghost until AIwalking_timer fires
+	// if they were moving prior to losing all hate
+	if(IsMoving()){
+		SetRunAnimSpeed(0);
+		SendPosition();
+		SetMoving(false);
+	}
 }
 
 void Mob::AI_Event_SpellCastFinished(bool iCastSucceeded, int8 slot) {
Reply With Quote
  #2  
Old 07-08-2006, 06:41 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

looks good, putting it in.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:46 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3