Garry's Mod

Garry's Mod

134 ratings
NPC Damage Scale
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
1.276 KB
Jan 2, 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.
20 Comments
Favkis Nexerade Mar 11, 2024 @ 5:22am 
still doesn't work
Vuthakral Jan 13, 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ø Jan 13, 2024 @ 3:00pm 
In addition to this mod, depending on the case?
Khaiø Jan 13, 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 Jan 7, 2024 @ 2:21pm 
thanks for this
That_Guy Jan 7, 2024 @ 1:46pm 
Is there still a way to edit damage dealt to players on our end or are the values hard-coded?
Vuthakral Jan 5, 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 Jan 5, 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 Jan 4, 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?
krozbot Jan 4, 2024 @ 10:58am 
is it possible to edit the new values in the console?