Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hazardooo/gm-headshot-system
https://github.com/hazardooo/gm-headshot-system
addon gmod gmod-lua
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hazardooo/gm-headshot-system
- Owner: Hazardooo
- License: apache-2.0
- Created: 2024-09-21T23:01:05.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T00:14:29.000Z (18 days ago)
- Last Synced: 2024-10-27T01:26:54.781Z (18 days ago)
- Topics: addon, gmod, gmod-lua
- Language: Lua
- Homepage: https://steamcommunity.com/sharedfiles/filedetails/?id=3335374181
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Headshot System Addon
This addon introduces a **Headshot System** that allows for instant death by headshots on both players and NPCs. Additionally, you can configure whether armor can save the player from a lethal headshot.
## Configuration
The addon can be fully customized by adding the following ConVars to your server's `garrysmod/cfg/server.cfg` file:
- **Enable headshots for NPCs**
Controls whether NPCs can be killed by headshots.
`1 = enabled, 0 = disabled`
```lua
npc_headshot_mode 1
```- **NPC headshot kill chance**
The chance (0-100) for NPCs to die from a headshot.
```lua
npc_headshot_chance 100
```- **Enable headshots for players**
Controls whether players can be killed by headshots.
`1 = enabled, 0 = disabled`
```lua
player_headshot_mode 1
```- **Armor saves from headshot**
Determines if armor can prevent death from a headshot.
`1 = enabled, 0 = disabled`
```lua
player_armor_save_live 1
```- **Armor penetration**
Adds a 50/50 chance to pierce armor if the headshot damage exceeds the player's armor.
`1 = enabled, 0 = disabled`
```lua
player_armor_penetration 1
```- **Armor damage multiplier**
Specifies the damage multiplier to armor when hit in the head.
Accepts any positive number.
```lua
player_headshot_armor_dmg_multiplier 3
```**All of the above ConVars have default values.**
---
Uploaded with [gmpublisher](https://github.com/WilliamVenner/gmpublisher)