Garry's Mod

Garry's Mod

43 ratings
Headshot system
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
3.747 KB
21 Sep, 2024 @ 3:34pm
21 Sep, 2024 @ 4:10pm
3 Change Notes ( view )

Subscribe to download
Headshot system

In 1 collection by Hazardooo
HazRP
25 items
Description
This addon adds a Headshot system. Thanks to this system, you can set up death by hitting players or NPCs in the head.
You can also determine if the armor will save you from death when hit in the head

Configuration:
The addon can be customized by adding the following ConVars to your server's garrysmod\cfg\server.cfg file:

Enables headshot by NPC or not. 1 = enabled, 0 = disabled
npc_headshot_mode 1

The chance of killing an NPC in the head. The range of the number is specified 0-100
npc_headshot_chance 100

Enables headshot for players. 1 = enabled, 0 = disabled
player_headshot_mode 1

Does the armor save you from headshot. 1 = enabled, 0 = disabled
player_armor_save_live 1

Includes a chance to pierce armor to death with a headshot if the damage done to the head was greater than the player's armor. The chance is 50/50
player_armor_penetration 1

Armor damage multiplier when hit in the head. The range of the number is specified. Any positive number is a number
player_headshot_armor_dmg_multiplier 3

All of the above ConVar have default values

The source code[github.com]

Uploaded with gmpublisher[github.com]
4 Comments
alexthedog10 11 Dec, 2024 @ 2:16am 
Can you add Nextbot support? Cause they are immune to this.
Grilled Cheese 28 Sep, 2024 @ 7:27pm 
.
max 28 Sep, 2024 @ 6:39am 
.
Mr.Puzzles 25 Sep, 2024 @ 6:26am 
i would do Same....
Because why not......