Set weapon damage Vs Players only

Posts 1–8 of 8 · Page 1 of 1
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.
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
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.
What about just lower the health of the verhicles?
Quote Originally Posted by mathieutje12 View Post
What about just lower the health of the verhicles?
Way more work dude
Just edit 5 numbers.. but ok.
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
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.
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us