Minimum and maximum weapon attack rate

Topics related to Second Age
User avatar
son
UOSA Donor!!
UOSA Donor!!
Posts: 3329
Joined: Sun Nov 16, 2008 8:15 pm
Location: I put an r in it http://my.uosecondage.com/Status/Player/67484

Minimum and maximum weapon attack rate

Post by son »

I understand that weapons have a minimum and maximum rate of fire regardless of stamina. Can it be clarified where this idea came from?

From memory, I recall drinking a gagil potion during t2a because the swing rate with a kryss was faster, and such is not the case now.
Image
rdash wrote:BLACKFOOT STAY AWAY FROM MY FRIENDS OR MEET A BLADE OF VANQUISH AND ADDITIONAL TACTICS

User avatar
Kabal
UOSA Donor!!
UOSA Donor!!
Posts: 2671
Joined: Sat Apr 11, 2009 7:08 pm
Location: South of Skara Brae

Re: Minimum and maximum weapon attack rate

Post by Kabal »

wtf is a gagil potion
Derrick wrote: . . .get real please.
"F**k that Morpheus, I'm takin' em both!" -Kabal
*pm me with questions about lasers*

Jester
Posts: 66
Joined: Fri May 01, 2009 3:00 pm

Re: Minimum and maximum weapon attack rate

Post by Jester »

I'm assuming that gagil pot = Greater Agility Potion

Mikel123
UOSA Subscriber!
UOSA Subscriber!
Posts: 4607
Joined: Wed Jun 24, 2009 7:44 pm

Re: Minimum and maximum weapon attack rate

Post by Mikel123 »

I believe it's in the demo code.

User avatar
Batlin
wobble llama
wobble llama
Posts: 512
Joined: Fri Dec 19, 2008 4:32 am
Location: Ultima Universe

Re: Minimum and maximum weapon attack rate

Post by Batlin »

I believe it's in the demo code.
In terms of the demo, the slowest swing you can do is 40 ticks or 10 seconds (this is an explicit if-condition inside the code). The maximum weapon attack rate is not limited by the demo code.
+ORC: If you give a man a crack he'll be hungry again tomorrow, but if you teach him how to crack, he'll never be hungry again.
chumbucket: I don't collect pixels.

Never trust the client. It's in the hands of the enemy : UO Demo internals @ JoinUO

Mikel123
UOSA Subscriber!
UOSA Subscriber!
Posts: 4607
Joined: Wed Jun 24, 2009 7:44 pm

Re: Minimum and maximum weapon attack rate

Post by Mikel123 »

Hmmm, I stand corrected.

I spent a while talking to Derrick about this, and I'm certain he found the 5-second code *somewhere*, I.E. he didn't write it himself (this was unfortunately over IRC I think, so I have no logs of it). I think he was as surprised as me to learn of the 5-second cap. Certainly 10 seconds would make more sense, and coincide with my memory, that it was a crapload of a long time in between shots back in the day. I think if there was a 5-second cap, archers would have talked about this somewhere.


Could it be a relic of RunUO?

Panthor the Hated
UOSA Donor!!
UOSA Donor!!
Posts: 3341
Joined: Mon Sep 14, 2009 6:12 am
Location: Palestine
Contact:

Re: Minimum and maximum weapon attack rate

Post by Panthor the Hated »

Oh snap is the demo WRONG!?

Mikel123
UOSA Subscriber!
UOSA Subscriber!
Posts: 4607
Joined: Wed Jun 24, 2009 7:44 pm

Re: Minimum and maximum weapon attack rate

Post by Mikel123 »

This would more be an oh-snap case of "it was X in the demo, and no patch notes exist saying it's changed, so it's X in T2A"

Panthor the Hated
UOSA Donor!!
UOSA Donor!!
Posts: 3341
Joined: Mon Sep 14, 2009 6:12 am
Location: Palestine
Contact:

Re: Minimum and maximum weapon attack rate

Post by Panthor the Hated »

Except theres no good reason to believe the demo is accurate to any time frame, cuz it's a demo.

User avatar
son
UOSA Donor!!
UOSA Donor!!
Posts: 3329
Joined: Sun Nov 16, 2008 8:15 pm
Location: I put an r in it http://my.uosecondage.com/Status/Player/67484

Re: Minimum and maximum weapon attack rate

Post by son »

To clarify, yes gagil greater agil, and I had 100 dex on my stupid dexer in era.
Image
rdash wrote:BLACKFOOT STAY AWAY FROM MY FRIENDS OR MEET A BLADE OF VANQUISH AND ADDITIONAL TACTICS

Kaivan
UOSA Donor!!
UOSA Donor!!
Posts: 2923
Joined: Wed Aug 13, 2008 11:07 pm

Re: Minimum and maximum weapon attack rate

Post by Kaivan »

The minimum fire rate isn't a hard coded minimum fire rate but is one that exists due to the fact that you must pass through each intermediate state before reaching the state where you actually swing. To use an example, for anyone who understands the code posted over on the JoinUO forums, suppose that you fired in 2 ticks (which is technically possible but never achievable through normal means), you would need to take 0.25 seconds to pass from state 0 to state 1, 0.25 seconds to pass from state 1 to state 2, and 0.25 seconds to pass from state 2 to state 3. This enforces a minimum delay of 0.75 seconds to fire your weapon simply because of the requirement to pass through each swing state.
UOSA Historian and former staff member: August 11, 2008 - June 19, 2016

Useful links for researching T2A Mechanics

Stratics - UO Latest Updates - Newsgroup 1 - Noctalis - UO98.org

User avatar
MatronDeWinter
UOSA Donor!!
UOSA Donor!!
Posts: 7249
Joined: Wed Mar 04, 2009 3:35 am
Location: 你的錢包

Re: Minimum and maximum weapon attack rate

Post by MatronDeWinter »

Is there no max then?

Mikel123
UOSA Subscriber!
UOSA Subscriber!
Posts: 4607
Joined: Wed Jun 24, 2009 7:44 pm

Re: Minimum and maximum weapon attack rate

Post by Mikel123 »

Sounds like Batlin is saying there is a max of 10 seconds on the demo code. Derrick will weigh in when he sees this I'm sure... he mentioned to me he saw 5 seconds (20 ticks) somewhere in our code, though how it got there I have no idea.

Kaivan
UOSA Donor!!
UOSA Donor!!
Posts: 2923
Joined: Wed Aug 13, 2008 11:07 pm

Re: Minimum and maximum weapon attack rate

Post by Kaivan »

It was a 5 second maximum in code, which was an oversight from the original implementation of the state-based code and the maximum delay will be adjusted to its proper 10 second cap. Thus, we'll see proper delays for archery, and losing stamina on a tank mage will have a significant effect on the swing speed of a halberd.
UOSA Historian and former staff member: August 11, 2008 - June 19, 2016

Useful links for researching T2A Mechanics

Stratics - UO Latest Updates - Newsgroup 1 - Noctalis - UO98.org

User avatar
MatronDeWinter
UOSA Donor!!
UOSA Donor!!
Posts: 7249
Joined: Wed Mar 04, 2009 3:35 am
Location: 你的錢包

Re: Minimum and maximum weapon attack rate

Post by MatronDeWinter »

Kaivan wrote:It was a 5 second maximum in code, which was an oversight from the original implementation of the state-based code and the maximum delay will be adjusted to its proper 10 second cap. Thus, we'll see proper delays for archery, and losing stamina on a tank mage will have a significant effect on the swing speed of a halberd.
Thanks! This should put an end to the 100 int tournament archer.

Post Reply