how make +25 dmg to weapon ?
pistol : normal dmg 15 +25
mp44 ; normal dmg 32 +25
Printable View
how make +25 dmg to weapon ?
pistol : normal dmg 15 +25
mp44 ; normal dmg 32 +25
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
not this , i need +30 dmg not = 30
PHP Code:
iDamage = int(iDamage + 30);
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;
}
I use this myself to increase damage for weapons.
So if the dmg is 40 and scr_wep_dmg_mp44_mp is 2. Your damage will be 80. Or when scr_wep_dmg_mp44_mp_head is 4 your damage will be 160.PHP Code:
if(GetCvarFloat("scr_wep_dmg_" + sWeapon + "_" + sHitLoc) > 0)
iDamage = int(iDamage * GetCvarFloat("scr_wep_dmg_" + sWeapon + "_" + sHitLoc));
else if(GetCvarFloat("scr_wep_dmg_" + sWeapon) > 0)
iDamage = int(iDamage * GetCvarFloat("scr_wep_dmg_" + sWeapon));