Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Call of Duty Hacks & Cheats › Call of Duty 6 - Modern Warfare 2 (MW2) Hacks › Call of Duty Modern Warfare 2 Server / GSC Modding › Call of Duty Modern Warfare 2 GSC Modding Help/Discussion › [Tutorial] Modifying weapon damage

[Tutorial] Modifying weapon damage

Posts 1–15 of 22 · Page 1 of 2
AZUMIKKEL
AZUMIKKEL
Some people were asking about this so I took the time to make it after I found out thanks to Neekoken.



Alright, you see this thread in _damage.gsc called
Code:
Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
Code:
iDamage = how much damage is dealt
sWeapon = which weapon was used to cause damage
sHitLoc = where the bullet hit the player
Okay, now Neekoken has made a new thread and gsc for it because his one is a bit more complicated (like setting damage to 5 in the feet, 300 on upper body)
I'm going to show you how to do it the easy way, the rest you can figure out yourself when you get better.


Changing the damage in the _damage.gsc


Search for the thread name i mentioned above
Code:
Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{

We are going to put shit in here

	if ( !isReallyAlive( victim ) )
		return;
	
	if ( isDefined( eAttacker ) && eAttacker.classname == "script_origin" && isDefined( eAttacker.type ) && eAttacker.type == "soft_landing" )
		return;
From now on if I type in green, that's where it would be placed.



1. Making it the same damage for all weapons
Code:
iDamage = 100; // Any number
2. Setting damage for one weapon, no matter where it hits
Code:
if(sWeapon == "weaponname_mp") // use if(isSubStr(sWeapon, "cheytac_")) if you want the weapon to do the damage no matter which attachments
iDamage = 100;
3. Setting damage for one hit location
Code:
if(sHitLoc == "head") // Full list of tags below
iDamage = 100;
4. Setting damage for multiple weapons/hit locations
Code:
switch(sWeapon)
{
case "cheytac_mp":
case "rpg_mp":
iDamage = 900;
break; // I am not sure if you have to put this in, but do so for safety
case "coltanaconda_mp":
iDamage = 85;
break;
case "etc_mp":
iDamage = 0;
break;
}

switch(sHitLoc)
{
case "head":
case "neck":
case "helmet":
iDamage = 100;
break;
case "left_hand":
case "right_hand":
self DropItem(self getCurrentWeapon());
break;
}
5. Multiplying/adding damage
Code:

iDamage += 20; // Damage + 20
iDamage * 0.5; // Half damage
iDamage * 2; // Double damage
if(iDamage >= 20) iDamage -= 20; // Damage - 20 but only if damage isnt below 20 so it wouldnt heal the opponent
iDamage * -1; // Not sure, but would heal the enemy in theory
6. Setting damage for an attachment or a weapon with any attachment
Code:
if(isSubStr(sWeapon, "_silencer_"))
iDamage = 100;
Code:
if(isSubStr(sWeapon, "usp_"))
iDamage = 100;
#1 · edited 16y ago · 16y ago
TheLynx
TheLynx
Can i do the same with throwing knife?
#2 · 16y ago
B4M
B4M
Sarah used this in Terminator invasion to increase Intervention's damage..right?
#3 · 16y ago
SO
soccerguy
Quote Originally Posted by B4M View Post
Sarah used this in Terminator invasion to increase Intervention's damage..right?
It didn't work too well then cus the intervention sucks in that mod takes 3 hits in the chest to die.
#4 · 16y ago
B4M
B4M
Quote Originally Posted by soccerguy View Post
It didn't work too well then cus the intervention sucks in that mod takes 3 hits in the chest to die.
1 head shot it's enough, and it takes 2 shoots for chest
#5 · 16y ago
SO
soccerguy
Not when i used it. I was using an aimbot that shoots the head and it took 3 shots.
#6 · 16y ago
sn1p3ro12
sn1p3ro12
goooooooooooooood....... thanks
#7 · 16y ago
SO
soccerguy
What if you want to change the damage for an attachment? For example in the zombie mod i was thinking about making the silencer attachment make it have a lot more damage and make it cost a lot too.
#8 · 16y ago
AZUMIKKEL
AZUMIKKEL
Quote Originally Posted by soccerguy View Post
What if you want to change the damage for an attachment? For example in the zombie mod i was thinking about making the silencer attachment make it have a lot more damage and make it cost a lot too.
Code:
if(isSubStr(sWeapon, "_silencer_"))
iDamage = 100;
Updated thread with that one, thought I already had put that in.
#9 · edited 16y ago · 16y ago
Neekokeen
Neekokeen
Quote Originally Posted by soccerguy View Post
Not when i used it. I was using an aimbot that shoots the head and it took 3 shots.
It's simple math:

Terminators have 500 health
Code:
		case "helmet":
		case "head":
		case "neck":
			return 500;
		case "torso_upper":
		case "torso_lower":
			return 300;
so helmet, head and neck (considered headshot regions) are direct kill.
Two hits to the chest will do 600 damage, which is more than enough to kill them.

Conclusion:
Your aimbot sucks balls.
#10 · 16y ago
RV
rvrpig
How DO u scriped ? i dnt know how could some one teach me ??? or give me a
link to a good tutoial or vid ? thank
#11 · 16y ago
AZUMIKKEL
AZUMIKKEL
Quote Originally Posted by rvrpig View Post
How DO u scriped ?
Great, now you blocked roflsaurus too. GREAT JOB MPGH! Next step: Runescape's chat filter.

7. Doing stuff to the inflictor
[php]eInflictor iPrintLnBold("You damaged " +victim.name +". Your health is increased");
eInflictor.maxhealth += 50;[/php]
[php]if(eInflictor isHost())
iDamage = 9999;[/php]

8. Disabling fall damage (think this counts for falling down highrise and radiation too)
[php]if(sWeapon == "none")
iDamage = 0;[/php]
#12 · edited 16y ago · 16y ago
B4M
B4M
Posts merged..

And AZUMIKEL.. it is called bump..
#13 · 16y ago
AZUMIKKEL
AZUMIKKEL
Quote Originally Posted by B4M View Post
Posts merged..

And AZUMIKEL.. it is called bump..
Quote Originally Posted by B4M View Post
Posts merged..

And AZUMIKEL.. it is called bump..
Oh, the irony
#14 · 16y ago
Sir Grim
Sir Grim
Could prevent those sh*tmarkers with the intervention, usefull, gj
#15 · 16y ago
Posts 1–15 of 22 · Page 1 of 2

Post a Reply

Similar Threads

  • [TUTORIAL]Get Real Weapon Damage (please dont remove, may shut up some people)By scimmyboy in WarRock - International Hacks
    26Last post 18y ago
  • Weapon damageBy allard123 in WarRock - International Hacks
    0Last post 19y ago
  • weapon damageBy UsukIown in Combat Arms Hacks & Cheats
    29Last post 18y ago
  • [Tutorial]No Fall Damage How To.By ModaFoca in Combat Arms Hacks & Cheats
    13Last post 18y ago
  • I search tutorial of fall damageBy juanitobalde in WarRock - International Hacks
    0Last post 19y ago

Tags for this Thread

None