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-02-2007, 07:08 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default Archery bug somewhat fixed...

Bug: In PvP archery does 1-3 dmg a hit and you are unable to attack ppl 5 lvls above or below yours.

What I figured out: In special_attacks.cpp on line 611 if you change
MaxDmg *= 3/4;
to
MaxDmg *= 4/4;

it fixes the problem except you still can't attack ppl +/- 5 lvls. Kinda a backwards fix but i figured it might clue someone that knows what they're doing in to the problem.

Also, the problem with the animation, how you shoot, then do a throw animation after i "fixed" by taking out:
SendItemAnimation(target, AmmoItem);
on line 558
of course, this takes out the animation of the arrow going to the target but i'm guessing it gives a clue to what the real problem is.

Hope this helps.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #2  
Old 07-03-2007, 06:10 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

The problem is max damage is a integer and they are trying to do mathematical calculations using a float. Need to do something like:

MaxDmg = (int) (float)MaxDmg * 0.75f;

Looking over the special attacks code theres a lot of this same problem...
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #3  
Old 07-03-2007, 08:13 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

Think that would fix the +/- 5 lvls problem too?
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #4  
Old 07-03-2007, 09:38 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

Not that alone, majority of the math operations aren't type-casted properly in the special_attacks.cpp.
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
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 06:13 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3