|
I really don't use lotf but it's not all that hard to code... make some values for your character. Personally what I did was...
int to control percentage activation rate
bool to control on/off
datetime to control last activated.
Then in your attack handling find the attack type for counter kill, link it off to a function (or your own cs file if that's easiest) and run your checks (if stamina is enough, if it's on already, etc)
Then send the client the correct attack packet (0 dmg being off, any other dmg being on.) and update the variables (rate, last activated, on/off).
then in your attack code simply check if it's on (if GC.MyChar.CounterKill) and if it is then run your counter kill attack code...
It's SHOCKINGLY easy to code... not sure why people have such problems with it.
If you want an example, you can see my super basic version I released for CoEmu (in my link list) and if you want to find the actual attack types for it (if lotf for some reason doesn't have them saved) then use my "figuring out packet subtypes for your self" thread... that's how I got my attack types sorted out for this stuff.
Best of luck.
P4N
|