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)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-23-2004, 06:48 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

As this is the first mod I've posted, I'm wondering what the consensus on this code is, Good, Bad or just plain Ugly?

-I had to override GetHPRatio to get the correct mob HP calculation (line numbers are approximate):
Code:
zone/mob.h, line 445
	virtual inline float		GetHPRatio() { return max_hp == 0 ? 0 : ((float)cur_hp/max_hp*100); }
-->
	virtual inline float		GetHPRatio() { return max_hp == 0 ? 0 : ((float)cur_hp/max_hp*100); }
	virtual inline float		GetHPRatio(float damage) { return max_hp == 0 ? 0 : ((float)(cur_hp-damage)/max_hp*100); }


zone/attack.cpp, line 1770
	if ( flee_state == fleeStateNotFleeing  && !IsRooted() && GetHPRatio() <= 21){		
-->
	if ( flee_state == fleeStateNotFleeing  && !IsRooted() && GetHPRatio(damage) < 15){
-Mobs fleeing when HP<20 sucks, changed to 15.
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 12:22 AM.


 

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