![]() |
|
incease Damage for GUID only - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: incease Damage for GUID only (/Thread-incease-Damage-for-GUID-only.html) |
incease Damage for GUID only - islamsaab - 11-13-2012 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. RE: incease Damage for GUID only - DidUknowiPwn - 11-13-2012 What about get GUID then give them Stopping Power then do a self dvar for stopping power change? RE: incease Damage for GUID only - islamsaab - 11-13-2012 i need damage.gsc way RE: incease Damage for GUID only - DidUknowiPwn - 11-13-2012 Yeah... just thread setPerk from _perks... RE: incease Damage for GUID only - islamsaab - 11-13-2012 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 RE: incease Damage for GUID only - DidUknowiPwn - 11-13-2012 Find the DVAR for specialty_bulletdamage and increase it... RE: incease Damage for GUID only - islamsaab - 11-13-2012 Thanks a lot ! btw congratz with Posts: 777 ![]() 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 ![]() i just need increase damage for regular players and vips :S RE: incease Damage for GUID only - zxz0O0 - 11-13-2012 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. RE: incease Damage for GUID only - islamsaab - 11-13-2012 (11-13-2012, 07:58)zxz0O0 Wrote: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; |