PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
uh yeah... weapons rant

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 293
Location: Myrtle Beach, South Carolina

PostPosted: Wed Nov 21, 2007 4:49 am    Post subject: uh yeah... weapons rant Reply with quote

POL096-2006-06-02 RC3 Vestal Virgin

I set CFG option for a weapon:
Speed 50
Delay 10000

My test characters dexterity is 100.

I put in a little code into my attackhook to tell me how much time(in MS) there was in between attack swings.

The results were;
10000(Give or take 10-30 MS)

Now I was praying that setting Delay to 10000 would give me results like..
4000

Assuming that Speed is (Speed * 10) = -5000MS
Also that Dexterity is (Dex * 10) = -1000MS
So -6000 + 10000 = 4000MS

Right? No, wrong! lol. It was 10000MS in between swings.

So... Could someone tell me how Delay, Speed and Dexterity effects the MS delay in swings. And what is the default Delay(when not set in CFG) because it's not 0.

All I know is that the higher Speed and Dexterity the less time in MS there is in between swings.

I really hope I'm having a dumb moment... lol. And I apologize if I am.

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Wed Nov 21, 2007 5:42 am    Post subject: Reply with quote

Myrathi explained the 'time to next swing' to me a few years back, and I quote:

EffectiveDex = (BaseDex + TempDexMod + InstrinsicDex) / 10
spd_div = (EffectiveDex + 100) * weaponspeed
clock_to_next_swing = (15,000,000 / spd_div) msecs

Test-case:
--> Char with 50 dex and a speed 35 weapon

BaseDex = 500
TempDexMod = 0
IntrinsicDex = 0

EffectiveDex = 500 / 10 = 50
spd_div = (50 + 100) * 35 = 150 * 35 = 5250
clock_to_next_swing = (15000000 / 5250) = 2857 ms = 2.857 seconds

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 293
Location: Myrtle Beach, South Carolina

PostPosted: Wed Nov 21, 2007 1:17 pm    Post subject: Reply with quote

I <3 you!

Very Happy

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Wed Nov 21, 2007 11:43 pm    Post subject: Reply with quote

Good luck with that because for some reason it didn't let me balance weapons.

What I was looking for was a way to calculate the average damage per second, so I could rate each different weapon accordingly. That way I could grade each weapon for skill but still take into account that a dagger was faster than a spear.

However, for some reason it doesn't quite work out. I suspect we also need to factor in the animation of the swing.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Thu Nov 22, 2007 2:19 am    Post subject: Reply with quote

Being able to calculate damage per second (DPS) would be nice. I hadn't ever considered that as a way to rate weapons until the advent of WoW. though I have only dabbled with WoW my son told me that DPS is the primary ways players of WoW rate weapons. So, yeah if there's some weay to do that or atleast calculate swing/missle delays accurately for DPS calculation.

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 293
Location: Myrtle Beach, South Carolina

PostPosted: Thu Nov 22, 2007 2:19 am    Post subject: Reply with quote

When I set Delay to 10000 and set a little prop on the char swinging to tell how much time there was in between each swing, it only varied by 10-30MS.

And I'm guessing that only delay_mod for 097 core effects that. So we could still do that, we'd just have to add Delay to all of our weapon entires and figure out a good way to update the delay_mod on a character so that Speed and dex still effects swinging speed.

Or devs could add in some short of exported function that returns MS it needs to wait before swinging again(I would really, really, really love that.) =)

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty