View Single Post
  #1  
Old 04-23-2002, 02:22 PM
Malevolent
Hill Giant
 
Join Date: Mar 2002
Posts: 171
Default A Kick implementation

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...
Code:
				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;
Reply With Quote