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

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-26-2004, 02:29 AM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default facing its target when rooted

hello
i was trying to make the mobs to facing their target while they are rooted
I tried this int mobai.cpp in AI_Process

Code:
		else {
			// See if we can summon the mob to us
			if (!HateSummon()) {
// TODO: Check here for another person on hate list with close hate value
				if (AIautocastspell_timer->Check()) {
#if MobAI_DEBUG_Spells >= 25
					cout << "Engaged (pursing) autocast check triggered: " << this->GetName() << endl;
#endif
					AICastSpell(target, 90, SpellType_Root | SpellType_Nuke | SpellType_Lifetap | SpellType_Snare);
				}
				else if (AImovement_timer->Check()) {
					if( !IsRooted())
						CalculateNewPosition(target->GetX(), target->GetY(), target->GetZ(), GetRunspeed());
					else {
						FaceTarget(target,true);
						if ( IsMoving() ) {
							SetRunAnimSpeed(0);
							SetMoving(false);
							moved=false;
						} 
					}

				}
			}
		}
it works well when the monster is not moving and you root him
but if the monster is moving before you root him
when rooted he continues to perform its running animation
I don't understand why ? anyone can help plz ?
__________________
Sandy
Reply With Quote
 


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 06:19 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3