Skip to content

Commit 36c7f73

Browse files
committed
2 parents 4a7dfe1 + f9594ca commit 36c7f73

File tree

2 files changed

+74
-3
lines changed

2 files changed

+74
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 8.0.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build --no-restore
27+
- name: Test
28+
run: dotnet test --no-build --verbosity normal
29+
- name: Upload a Build Artifact
30+
uses: actions/[email protected]
31+
with:
32+
path: DamageMod/
33+
# The desired behavior if no files are found using the provided path.
34+
35+
36+
37+
38+

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
11
# CS2 DamageMod
22
Modify hitgroups to be enabled/disabled.
33

4+
## Requirements
5+
A [CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp) & [MetaMod:Source](https://www.sourcemm.net/) installation on your server.
6+
7+
## Installation
8+
1. Download from Releases/Artifacts or compile yourself.
9+
2. Open root of CS2 installation on server.
10+
3. Copy DamageMod folder from the zip into `game/csgo/addons/counterstrikesharp/plugins` on server.
11+
12+
## Configuration
13+
414
Config allows you to enable/disable and change damage multiplier on individual hitgroups.
15+
```json
16+
"HITGROUP_HEAD": {
17+
"Enabled": true,
18+
"DamageMultiplier": 0.25
19+
},
20+
"HITGROUP_CHEST": {
21+
"Enabled": false,
22+
"DamageMultiplier": 1
23+
},
524
```
6-
"HITGROUP_HEAD" = [true, 2]
7-
```
8-
This modifies allows damage to the head hitgroup & multipies all damage to the head hitgroup by 2.
25+
This modifies allows damage to the head hitgroup & multipies all damage to the head hitgroup by 0.25 (divided by 4).\
26+
It also disables the chest hitgroup, disabling all damage to the chest even though the multiplier is 1.
27+
28+
## Hitgroup Meanings
29+
30+
| Hitgroup | Meaning |
31+
| --- | --- |
32+
| HITGROUP_GENERIC | Knife Damage (Also triggers when shooting a wall or prop like glass) |
33+
| HITGROUP_INVALID | Fall Damage (Potentially hazards too) |
34+
| HITGROUP_HEAD & HITGROUP_NECK | Headshot Damage |
35+
| HITGROUP_CHEST | Upper Chest Damage |
36+
| HITGROUP_STOMACH | Lower Chest Damage |
37+
| HITGROUP_RIGHTARM & HITGROUP_LEFTARM | Right/Left Arm Damage |
38+
| HITGROUP_RIGHTLEG & HITGROUP_LEFTLEG | Right/Left Leg Damage |
39+
| HITGROUP_GEAR, HITGROUP_COUNT, HITGROUP_SPECIAL, & HITGROUP_UNUSED | Unknown/Unused(?) |
40+
41+
If you find anything wrong with these descriptions or the plugin feel free to open a pull request or issue.

0 commit comments

Comments
 (0)