[PROBLEM]CounterKill/ScapeGoat!

06/19/2010 04:25 Sp!!ke#1
Idk why my counter-kill not working good ! when I use it not work CounterKill Swich ON/OFF !


Look on that Photo ! Who can help make reply what is wrong here !


[Only registered and activated users can see links. Click Here To Register...]
06/20/2010 04:46 pro4never#2
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
06/20/2010 09:24 Sp!!ke#3
Quote:
Originally Posted by pro4never View Post
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

counter-kill is codded in source but I don't know which is good configuration for it

Look on my thread at photo !