Results 1 to 5 of 5
  1. #1
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely

    [SOLVED] Possible To Change Throwing Knife Damage?

    I give up.. can't find anything, I am trying to change throwing knife damage, but I fail by now, don't have any ideas.

    _damage.gsc
    Code:
    if(isSubStr(sWeapon, "throwingknife_")) 
    	{
    		return getWepDamageThrowingKnife(sHitLoc, iDamage);
    	}
    to detect throwing knife

    Code:
    getWepDamageThrowingKnife(sHitLoc, iDamage) {
    	switch( sHitLoc )
    	{
    		case "helmet":
    		case "head":
    		case "neck":
    		case "torso_upper":
    		case "torso_lower":
    		case "right_arm_upper":
    		case "left_arm_upper":
    		case "right_arm_lower":
    		case "left_arm_lower":
    		case "right_hand":
    		case "left_hand":
    		case "gun":
    		case "right_leg_upper":
    		case "left_leg_upper":
    		case "right_leg_lower":
    		case "left_leg_lower":
    		case "right_foot":
    		case "left_foot":
    			return 20;
    	}
    	return iDamage;
    }
    fails?

    I know it doesn't fail when I change the tactical knife damage

    Made me think the model is wrong, but no chances. just impossible?
    Last edited by Insane; 09-30-2010 at 07:07 AM.

  2. #2
    ch40s's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    6
    i modify damage this way:
    go in damage.gsc, find the function
    Code:
    Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
    and search for (at about line 1358)
    Code:
    else// not hitting teammate
    		{
    			prof_begin( "PlayerDamage world" );
    add what you want after this line, in your case
    Code:
    if(isSubStr(sWeapon, "throwingknife_")) 
    	{
    		iDamage = 1337;
    	}
    works like a charm for me

  3. The Following User Says Thank You to ch40s For This Useful Post:

    [WhA]4FunPlayin (09-29-2010)

  4. #3
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Lol that works thanks. solved!

  5. #4
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    or even easier

    if(sWeapon == "throwingknife_mp")
    iDamage = 20,2779521154;
    www.YouTube.com/MpKiller100

  6. The Following User Says Thank You to AZUMIKKEL For This Useful Post:

    [MPGH]Insane (09-30-2010)

  7. #5
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [Solved]iSnipe unlimited throwing knife- PLZ HELP
    By RAZUBA in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 04-05-2011, 07:40 AM
  2. [Solved]decrease knife damage
    By sammysfat in forum Call of Duty Black Ops GSC Modding Help & Discussion
    Replies: 1
    Last Post: 01-19-2011, 09:51 PM
  3. [SOLVED]Possible to change nick in-game?
    By gruez in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 11-10-2010, 08:52 AM
  4. how can i change the knife damage?
    By foasdgg in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 10-27-2010, 12:51 PM
  5. [SOLVED]Throwing Knife
    By aagibcheat in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 10-08-2010, 12:07 PM