Project 1999

Go Back   Project 1999 > Class Discussions > Tanks

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #20  
Old 04-12-2019, 01:44 PM
Dillusional Dillusional is offline
Kobold


Join Date: Jun 2018
Posts: 113
Default

Quote:
Originally Posted by baakss [You must be logged in to view images. Log in or Register.]
Unless they changed it from EQEmu, there should be no difference between 99% haste and 100% haste ever.

Haste rounds down to the nearest whole number because of integer math.
I don't believe this to be the case.

I just looked at the emu source and it seems to work like this....

attackSpeedInMillisecond = (originalDelayInMilliseconds / hasteMod)

speed and delay are both integers but hasteMod was a floating point (number with a decimal point)


if you have 99% haste, your hasteMod value would be 1.99 if you have 100% haste, your haste mod would be 2.0

So let's say you have a 35 delay weapon with 100% haste

3500 / 2 = 1750 ....so you will attack once every 1.75 seconds

and let's say you have 99% haste

3500 / 1.99 = 1758.79.... rounded down to 1758 ....

you are taking 8 fewer milliseconds between swings with 100% haste versus 99% haste on a 35 delay weapon. The server will round down to the nearest millisecond because of the Integer math but you'll still have an 8 millisecond difference. I'm pretty sure the attack timer can handle 8 milliseconds of precision and there will be a tangible difference.
Last edited by Dillusional; 04-12-2019 at 02:00 PM..
 


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:07 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.