File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/upload-artifact@v5.0.0
31+ with :
32+ path : DamageMod/
33+ # The desired behavior if no files are found using the provided path.
34+
35+
36+
37+
38+
Original file line number Diff line number Diff line change 11# CS2 DamageMod
22Modify 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+
414Config 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.
You can’t perform that action at this time.
0 commit comments