How to turn off NPC sneak attack kills in GMod
Type gmod_sneak_attack 0 in the server console so a headshot on an NPC that has not seen you no longer kills it instantly.
gmod_sneak_attack
Toggles the Half-Life 2 sneak attack, where headshotting an NPC that has not seen you kills it instantly.
gmod_sneak_attack <0|1> Examples
gmod_sneak_attack 0 No instant headshot kills on unaware NPCs.
Values
| Value | What it does |
|---|---|
| 0 | Off |
| 1Default | On |
Arguments
0|1Required- 1 keeps sneak attack kills.
What it does
Set it to 0 if you want NPCs to always take normal damage, for example in NPC wave gamemodes.
The game's own description: If set to zero, disables Half-Life 2's Sneak Attack feature, where headshotting NPCs who have not seen the player would result in an instant kill.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.
Your own
GMod server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.