Garry's Mod

Garry's Mod

136 ratings
NPC Damage Scale
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
1.276 KB
2 Jan, 2024 @ 7:35am
1 Change Note ( view )

Subscribe to download
NPC Damage Scale

Description
A dead-simple addon that patches GM:ScaleNPCDamage to follow the sk_npc_ convars that ship with source to enable on-the-fly editing.

If you've ever wondered why the HL2 weapons feel weak, this might be why.

This changes the default damage scales for NPC's as follows:
  • Headshot damage: 2x -> 3x
  • Arm damage: 0.25x -> 1x
  • Leg damage: 0.25x -> 1x

Custom gamemodes that use their own version of ScaleNPCDamage and hooks shouldn't be affected.

Because of how skill.cfg is configured changes won't persist unless you edit skill.cfg or set up your own values in autoexec.cfg, though it's still an improvement over having values hardcoded into the base gamemode.
21 Comments
Lieutenant Kara Thrace 15 Jun @ 7:30pm 
I'm not sure if this is what I need. It seems to me that my character dies too quickly, to HL2 NPCs, in comp. to how long it takes for Gordon to give up in HL2. I'll try playing with the HEV Suit on & fuly-charged to see if it makes a difference...
Favkis Nexerade 11 Mar, 2024 @ 5:22am 
still doesn't work
Vuthakral 13 Jan, 2024 @ 4:36pm 
"skill" persists between sessions, I don't know what weapon bases if any besides my own have difficulty-aware damage scaling. Setting the difficulty higher may only result in Half-Life 2 NPC weapons dealing more damage.
Khaiø 13 Jan, 2024 @ 3:00pm 
In addition to this mod, depending on the case?
Khaiø 13 Jan, 2024 @ 2:59pm 
@TankNut; @Vuthakral

So, to fix NPC's being "weaker" with weapons, I can fix that using the "skill 2" command, or put in in autoexec?
Levuh 7 Jan, 2024 @ 2:21pm 
thanks for this
That_Guy 7 Jan, 2024 @ 1:46pm 
Is there still a way to edit damage dealt to players on our end or are the values hard-coded?
Vuthakral 5 Jan, 2024 @ 7:03am 
To expand on that better, "Skill" is the HL2 difficulty command. It defaults to 1 (Easy), 2 is medium, and 3 is hard. On medium the damage scaling is 1:1
Vuthakral 5 Jan, 2024 @ 7:02am 
@Jamesinator Set the console command "skill" to 2, this makes players & NPCs do the same damage values with zero skill mitigation or bonus.
Jamesinator 4 Jan, 2024 @ 12:46pm 
can you make a mod like this that makes damage consistent between players and npc's? so the HL2 SMG can do more than 7 damage to players?