PDA

View Full Version : A Kick implementation


Malevolent
04-23-2002, 02:22 PM
Better than nothing at all :-)

I have no idea what the actual kick formula is. I'm sure someone knows it. I don't. I just made up something that looked good. :P

This is the formula it uses:

client_process.cpp...

case WARRIOR:
case RANGER:
case PALADIN:
case SHADOWKNIGHT:
if (target!=this) {
if (target->IsNPC()){
sint32 dmg=(sint32) ((level/10) * 3 * (GetSkill(KICK) + GetSTR() + level) / (700-GetSkill(KICK)));
cout << "Dmg:"<<dmg;
target->CastToNPC()->Damage(this, dmg, 0xffff, 0x1e);
DoAnim(1);
}
}
break;

Baron Sprite
04-23-2002, 02:42 PM
cool, you should add something for warriors to kick/stun after 55, shouldn't be too hard, if I had a syn checker at work would do it myself, but I'm a lazy mofo and you're so cool ;)

Merkur
04-23-2002, 07:44 PM
cool, if it works im sure we will merge this (for NPCs too :) )