Originally Posted by
Ni3ls
in Callback_Playerdamage()
if(sWeapon == "colt_mp")
iDamage = 40;
only problem is it doesnt do hitLocs anymore. So damage on head is same as damage on the foot
do a table of sHitLoc damage and adjust the damage according to where the hit location is. This is the one from COD4:
PHP Code:
getHitLocDamage( sHitLoc )
{
switch( sHitLoc )
{
case "helmet":
case "head":
case "neck":
return 60;
case "torso_upper":
case "right_arm_upper":
case "left_arm_upper":
case "right_arm_lower":
case "left_arm_lower":
case "right_hand":
case "left_hand":
case "gun":
return 48;
case "torso_lower":
return 40;
case "right_leg_upper":
case "left_leg_upper":
return 32;
case "right_leg_lower":
case "left_leg_lower":
return 10;
case "right_foot":
case "left_foot":
return 5;
}
return 48;
}