Difference between revisions of "Talk:Weapon"

Jump to navigation Jump to search
167 bytes added ,  18:28, 30 May 2009
no edit summary
imported>Ronyn
imported>Ronyn
Line 23: Line 23:
== Weapon Speed ==
== Weapon Speed ==
I've done some testing to see exactly how actual attack speed is determined. From my testing, it seems to be somewhere between 2.3 and 2.5 seconds subtracted by the speed of the weapon, and slightly altered by the specific attack animation used.
I've done some testing to see exactly how actual attack speed is determined. From my testing, it seems to be somewhere between 2.3 and 2.5 seconds subtracted by the speed of the weapon, and slightly altered by the specific attack animation used.
While I don't have the exact numbers, it seems that you can assume a weapon with a speed of 1.5 will have a 1 second shorter attack animation than a weapon with 0.5 speed.
While I don't have the exact numbers, it seems that you can assume a weapon with a speed of 1.5 will have a 1 second shorter attack animation than a weapon with 0.5 speed. This is supported by the fact that setting a weapon's speed too far above 2, actually somewhere around 2.3-2.5, will cause it to freak out and return negative values.
Also, in a script I'm using in a mod I managed to determine pretty accurately the time an attack should hit by using (2.4 - Weapon Speed) / 3. If you count the duration of the attack animation with GetSecondsPassed from the frame it starts, by the time it reaches the number generated by the formula the attack should have hit.
Also, in a script I'm using in a mod I managed to determine pretty accurately the time an attack should hit by using (2.4 - Weapon Speed) / 3. If you count the duration of the attack animation with GetSecondsPassed from the frame it starts, by the time it reaches the number generated by the formula the attack should have hit.
This is good for simulating attacks with PlayGroup. --[[User:Ronyn|Ronyn]] 19:25, 30 May 2009 (EDT)
This is good for simulating attacks with PlayGroup. --[[User:Ronyn|Ronyn]] 19:25, 30 May 2009 (EDT)
Anonymous user

Navigation menu