Results 1 to 8 of 8
  1. #1
    ImLikeJesusButBetter's Avatar
    Join Date
    Nov 2010
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0

    Set weapon damage Vs Players only

    Hey, I want to weaken, but not completely remove tubing, and RPG/AT. The problem is, if I nerf the AT damage, it sucks at killing air support.


    Code:
    if(isSubStr(sWeapon, "_gl"))
    iDamage = 70;
    	
    if(isSubStr(sWeapon, "at4_mp"))
    iDamage = 70;
    
    if(isSubStr(sWeapon, "m79"))
    iDamage = 70;
    	
    if(isSubStr(sWeapon, "rpg_mp"))
    iDamage = 70;

    How do I make them do normal damage to air support, but reduced damage to players?

    Edit: Using "_gl" seems to make the weapon the grenade launcher is attached to deal the same damage as the launcher it's self. How do I fix that?

    How do I make them do like... 100 damage if shot right next to a player, and decrease it by radius? Current setting makes it so that it deals 70 damage at all ranges.
    Last edited by ImLikeJesusButBetter; 05-29-2012 at 03:27 PM.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by ImLikeJesusButBetter View Post
    Hey, I want to weaken, but not completely remove tubing, and RPG/AT. The problem is, if I nerf the AT damage, it sucks at killing air support.


    Code:
    if(isSubStr(sWeapon, "_gl"))
    iDamage = 70;
    	
    if(isSubStr(sWeapon, "at4_mp"))
    iDamage = 70;
    
    if(isSubStr(sWeapon, "m79"))
    iDamage = 70;
    	
    if(isSubStr(sWeapon, "rpg_mp"))
    iDamage = 70;

    How do I make them do normal damage to air support, but reduced damage to players?

    Edit: Using "_gl" seems to make the weapon the grenade launcher is attached to deal the same damage as the launcher it's self. How do I fix that?

    How do I make them do like... 100 damage if shot right next to a player, and decrease it by radius? Current setting makes it so that it deals 70 damage at all ranges.
    Look here:
    http://www.mpgh.net/forum/323-call-d...on-damage.html

    And look at:
    Code:
    victim
    Try to make a code that checks if the victim is a air like thing :P

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

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

    Larity2056 (05-30-2012)

  4. #3
    ImLikeJesusButBetter's Avatar
    Join Date
    Nov 2010
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Jorndel View Post
    Look here:
    http://www.mpgh.net/forum/323-call-d...on-damage.html

    And look at:
    Code:
    victim
    Try to make a code that checks if the victim is a air like thing :P

    While I appreciate the idea, it doesn't help me much as I have no idea how to go about implementing something like that. Are you able to provide any examples of code that would work for what I'm after?


    And how can I make it do 100 damage if shot right on the player, but only say... 30 damage if next to them? Adjust the blast radius basically.
    Last edited by ImLikeJesusButBetter; 06-03-2012 at 12:02 AM.

  5. #4
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    What about just lower the health of the verhicles?

  6. #5
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,498
    Reputation
    188
    Thanks
    672
    My Mood
    Dead
    Quote Originally Posted by mathieutje12 View Post
    What about just lower the health of the verhicles?
    Way more work dude

  7. #6
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Just edit 5 numbers.. but ok.

  8. #7
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,498
    Reputation
    188
    Thanks
    672
    My Mood
    Dead
    Quote Originally Posted by mathieutje12 View Post
    Just edit 5 numbers.. but ok.
    Also that will deactivate that infects the EMP, cause it's not possible to take down Harriers with a health count of 9999999

  9. #8
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Since when u want harriers with an health count of 9999999? He wants to reduce the damage from missiles so the health from an harrier should be reduced aswell.
    Read plz.

Similar Threads

  1. Warrocks Nice Skilled Players Only
    By Carlos11312 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 04-07-2009, 10:42 PM
  2. I HAS A IDEA. CA PLAYERS ONLY!!
    By Stealez4ever in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 01-25-2009, 06:40 PM
  3. weapon damage
    By UsukIown in forum Combat Arms Hacks & Cheats
    Replies: 29
    Last Post: 08-29-2008, 12:01 PM
  4. [TUTORIAL]Get Real Weapon Damage (please dont remove, may shut up some people)
    By scimmyboy in forum WarRock - International Hacks
    Replies: 26
    Last Post: 05-29-2008, 09:23 AM
  5. Weapon damage
    By allard123 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 02-20-2007, 07:57 AM