Difference between revisions of "Talk:Weapon"

866 bytes added ,  18:25, 30 May 2009
no edit summary
imported>Sirstab
m
imported>Ronyn
Line 20: Line 20:


hey i am making a sword its model is a slauterfish and i have damage range ect. set but when i load the data file and play the weapon cant be picked up can some one tell me how to make it so i can pick it up -sirstab
hey i am making a sword its model is a slauterfish and i have damage range ect. set but when i load the data file and play the weapon cant be picked up can some one tell me how to make it so i can pick it up -sirstab
== 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.
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.
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)
Anonymous user