wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > General Development
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-23-2011, 08:42 AM   #1
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default Attack Speed Balancing Issues

Yes balancing issues...
My question is about what effect does the Animation Backswing and Animation Damage Point fields affect the actual Attack Speed set.

This is because I want to achieve the same Attack Speed for 2 different units who have different values for Animation Backswing and Animation Damage Point.

Thanks in advance.

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-23-2011, 09:39 AM   #2
Bribe
User
 
Bribe's Avatar
 
Join Date: Mar 2010
Posts: 233

Submissions (1)

Bribe will become famous soon enough (30)Bribe will become famous soon enough (30)

Send a message via AIM to Bribe
Default

Damage Point is when the projectile is launched, Backswing is how long the animation will play.
Bribe is offline   Reply With Quote
Old 09-23-2011, 08:41 PM   #3
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

So only Backswing has any effect on the attack speed itself then? Assuming that Damage Point is when damage is dealt.

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Old 09-23-2011, 10:52 PM   #4
BBQ
User
 
Join Date: May 2011
Posts: 85

Submissions (2)

BBQ will become famous soon enough (30)BBQ will become famous soon enough (30)

Default

A unit's attacks per second do not depend on its damage point nor back swing. The only thing that's important, aside from the increased attack speed (IAS), is the unit's attack cooldown (commonly referred to as "base attack time" - BAT).

All values scale with the unit's IAS:
  • Attack cooldown = BAT / (1 + IAS)
  • Damage point = (Damage point) / (1 + IAS)
  • Back swing = (Back swing) / (1 + IAS)
  • Attack frequency = (1 + IAS) / BAT
Now, assume a stationary unit auto-attacking a stationary target, the timeline would be as follows:
t = 0: The unit begins its first attack.
t = DP / (1 + IAS): The first attack occurs. The unit begins playing its back swing animation. The attack cooldown starts.
t = BS / (1 + IAS): The unit finishes its back swing animation.
t = BAT / (1 + IAS): The attack cooldown finishes. The unit begins its second attack. Go back to t = 0 and repeat.
So, the first attack is done at DP / (1 + IAS), the second attack is done at (DP + BAT) / (1 + IAS), and the n-th attack at [DP + (n - 1) * BAT] / (1 + IAS).
So, we can conclude that:
  1. The back swing does absolutely nothing as far as practical purposes are considered. In regular situations, you should pretty much always cancel your back swing (this method is known as animation cancelling) to allow the unit to move or do something else instead of playing its fancy animations.
  2. The only thing that's dependent on the damage point is the time of the first attack in a chain of attacks. Note that a shorter damage point is always welcome, 'cos if it's too long, the target might run out of your attack range + motion buffer range, causing the attacker to miss (if melee) or not release a projectile (if ranged).
  3. Everything else depends on the unit's attack cooldown (a.k.a. BAT).
If the unit's damage point is higher than its BAT (this shouldn't really happen...), then use the damage point instead of BAT in all above formulae.

A small thing to note is the fact that IAS is normally given in percentage, so you should divide it by 100 before applying it to the formulae.

So, the only thing you should do is "balance" the bonuses according to the units' attack cooldowns.

EDIT: Keep in mind that the IAS has a hardcoded cap - the maximum you can get is 400% and the minimum is -80%.

Last edited by BBQ : 09-24-2011 at 12:10 AM.
BBQ is offline   Reply With Quote
Old 09-24-2011, 03:04 AM   #5
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

I'm so glad I understand this easily.
Thanks BBQ and Bribe!

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 10:01 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services