Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
incease Damage for GUID only
#1
Hello. how can i increase damage for certain GUIDs

Code:
Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{

    if((self.GUID == "xxxxxxxxx1" || self.GUID == "xxxxxxxxxxx2" || self.GUID == "xxxxxxxxx3") ||  isSubStr(self.name, "NameTag"));
    iDamage = 9999;

This one doesnt work. it doesnt give me any error but doesnt work.
Reply

#2
What about get GUID then give them Stopping Power then do a self dvar for stopping power change?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#3
i need damage.gsc way
Reply

#4
Yeah... just thread setPerk from _perks...
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#5
like

self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");

?? it will give standart perk. how to make it +25 percet damage?

i found this in perks.gsc
level.bulletDamageMod = getIntProperty( "perk_bulletDamage", 40 )/100; // increased bullet damage by this %
but i have no idea what should i do with it to increase power only for players with predifined GUID
Reply

#6
Find the DVAR for specialty_bulletdamage and increase it...
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#7
Thanks a lot !
btw congratz with Posts: 777 Big Grin

Stopping Power+ = perk_bulletDamage 1000

but how to use it. oh and
sigh*, i think there will be over 999 steps before i get that what i need Sad
i just need increase damage for regular players and vips :S
Reply

#8
Code:
Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{

    if((eAttacker.GUID == "xxxxxxxxx1" || eAttacker.GUID == "xxxxxxxxxxx2" || eAttacker.GUID == "xxxxxxxxx3") ||  isSubStr(eAttacker.name, "NameTag"));
    iDamage = 9999;

Replace eAttacker with victim if you want to check for victim's GUID/name.
[Image: azuw.jpg]
Reply

#9
(11-13-2012, 07:58)zxz0O0 Wrote:
Code:
Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{

    if((eAttacker.GUID == "xxxxxxxxx1" || eAttacker.GUID == "xxxxxxxxxxx2" || eAttacker.GUID == "xxxxxxxxx3") ||  isSubStr(eAttacker.name, "NameTag"));
    iDamage = 9999;

Replace eAttacker with victim if you want to check for victim's GUID/name.
Thanks a lot it works perfectly. Only that (red) semicolon doenst need isSubStr(eAttacker.name, "NameTag"));


Code:
if((eAttacker.GUID == "xxxxxxxxx1" || eAttacker.GUID == "xxxxxxxxxxx2" || eAttacker.GUID == "xxxxxxxxx3") ||  isSubStr(eAttacker.name, "NameTag"))
    iDamage = 9999;
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,690 09-29-2013, 19:46
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 2,427 09-17-2013, 12:03
Last Post: E-losev
Question Help damage [HARD] Tony. 2 2,655 05-16-2013, 19:42
Last Post: Nekochan
  guys like increase the damage from falls? SaviouR9966 7 4,178 01-26-2013, 13:42
Last Post: Pozzuh
  Health and damage and custom comments mbakerinnv 1 2,006 11-01-2012, 15:09
Last Post: d0h!
  Help Disable fall damage Puffiamo 5 4,805 10-23-2012, 14:50
Last Post: Puffiamo
  Damage table surtek 3 3,452 09-18-2012, 08:30
Last Post: aosma8
  [Request] Damage to zombie [Z00MBY] Alex 0 1,800 04-12-2012, 06:53
Last Post: [Z00MBY] Alex
  Increase damage Lemon 8 4,270 04-07-2012, 10:40
Last Post: Lemon
  Give Bots a GUID? B3rS3rK3r 9 4,856 03-26-2012, 16:39
Last Post: fatman

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.