Quote:
Originally Posted by GantzRoyalOddesy
Em actually I don't understand how it work :P Can you please explain or show me another example ? I'm new to this kind of skills hihi :P How do you make a skill to have 9 hit ? I mean, Is that possible ? To make a skill that can chain hit ?
|
well ok lets see.
Skills are made from movements and effects.
Boths are client sided.
How ever the server tell them what move and what effect to play.
The server also defines how many times the skill hits a target.
But the server doesn't know how long a movement takes so you need to tell the server to wait X amount of time between 2 moves. This is stated in cq_track.
When this is properly set the damage will be done when the movement is done(when not you will see all the damage very fast then the motion will follow and it look kinda lame then.)
So lets see Track.ini
Code:
These represent the motion of a skill.
you can see that the track id is nicely following and there are no effects or anything else.
423001042 780 0 0 33 0 NULL sound\5213.wav
423011043 781 0 0 33 0 NULL NULL
423021044 782 0 0 33 0 NULL NULL
423031045 783 0 0 33 0 NULL NULL
423041046 784 0 0 33 0 NULL NULL
423051047 785 0 0 33 0 NULL NULL
423061048 786 0 0 33 0 NULL NULL
423071049 787 0 0 33 0 NULL NULL
423081050 788 0 0 33 0 NULL NULL
423091051 789 0 0 33 0 NULL NULL
These represent the effects of a skill as you see the type is all 321 and the ids have are nicely going up by 1000
402310321 321 5 0 33 0 dragoncombo1_hit NULL
402311321 321 5 0 33 0 dragoncombo2_hit NULL
402312321 321 5 0 33 0 dragoncombo3_hit NULL
402313321 321 5 0 33 0 dragoncombo1_hit NULL
402314321 321 5 0 33 0 dragoncombo2_hit NULL
402315321 321 5 0 33 0 dragoncombo3_hit NULL
402316321 321 5 0 33 0 dragoncombo1_hit NULL
402317321 321 5 0 33 0 dragoncombo2_hit NULL
402318321 321 5 0 33 0 dragoncombo3_hit NULL
402319321 321 5 0 33 0 dragoncombo4_hit NULL
as you see there are 10 lines of motion and 10 lines for effect for these skills.
this is all client based and this is all just visual stuff. nothing to do with damage or timing or what so ever.
so the server tell the client what motion and what effect to play.
this is stated in cq_track like i said before.
so let add motion to cq_track
Code:
423001042 423011043 0 1 0 423001042 33300 300
423011043 423021044 0 0 0 423011043 33300 300
423021044 423031045 0 1 0 423021044 33300 300
423031045 423041046 0 0 0 423031045 33300 300
423041046 423051047 0 1 0 423041046 33300 300
423051047 423061048 0 0 0 423051047 33300 300
423061048 423071049 0 1 0 423061048 33300 300
423071049 423081050 0 0 0 423071049 33300 300
423081050 423091051 0 1 0 423081050 33300 300
423091051 0 0 0 0 423091051 33300 300
As you can see the step colum is set also. This defines if you push the target away with this motion. like knock back
Also the power of each motion is set. (damage)
and then the apply_ms or "delay" here you say how long the server needs to wait to give the command for the next track.
this is different for each movement you can have 4 very fast hits followed with some slow.
Add the effects to cq_track.
Code:
402310321 402311321 0 1 0 402310321 0 0
402311321 402312321 0 0 0 402311321 0 0
402312321 402313321 0 1 0 402312321 0 0
402313321 402314321 0 0 0 402313321 0 0
402314321 402315321 0 1 0 402314321 0 0
402315321 402316321 0 0 0 402315321 0 0
402316321 402317321 0 1 0 402316321 0 0
402317321 402318321 0 0 0 402317321 0 0
402318321 402319321 0 1 0 402318321 0 0
402319321 0 0 0 0 402319321 0 0
Notice we don't set delay or power here as this is not needed.
now we want the server to play the motion track and the effect track at the same time
so what we want to do is play this motion
==> 423001042 780 0 0 33 0 NULL sound\5213.wav
togetther with this effect
==> 402310321 321 5 0 33 0 dragoncombo1_hit NULL
So add to cq_magictype the cq_track value of the skill to 423001042
and cq_track2 to 402310321
now the server know these 2 tracks belong togetther and will play both at the same time with the same delay.
hope this explains its.
if its doesn't add me to skype(sweetcandy273) so i can help you specificly with your skil.
Regards SweetCandy