https://github.com/c9glax/opencs2hock
Shocking Counter-Strike Innovation
https://github.com/c9glax/opencs2hock
counter-strike counter-strike-2 electrostim electrostimulation estim game gamestate-integration openshock pishock shock shock-collars
Last synced: 4 months ago
JSON representation
Shocking Counter-Strike Innovation
- Host: GitHub
- URL: https://github.com/c9glax/opencs2hock
- Owner: C9Glax
- License: gpl-3.0
- Created: 2024-01-14T01:39:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T21:48:55.000Z (over 1 year ago)
- Last Synced: 2025-04-11T12:24:45.148Z (about 1 year ago)
- Topics: counter-strike, counter-strike-2, electrostim, electrostimulation, estim, game, gamestate-integration, openshock, pishock, shock, shock-collars
- Language: C#
- Homepage:
- Size: 63.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenCS2hock


Electrifying your Counter-Strike experience. With [OpenShock](https://openshock.org/) and [PiShock](https://pishock.com/#/)! (Not Associated)
## How to use
Download [latest Release](https://github.com/C9Glax/OpenCS2hock/releases/latest) and execute.
Example `config.json`. Place next to executable. Will also be generated on first start.
```json
{
"LogLevel": 2,
"Shockers": [
{
"ShockerIds": [
"ID HERE"
],
"IntensityRange": {
"Min": 30,
"Max": 50
},
"DurationRange": {
"Min": 1000,
"Max": 1000
},
"ApiType": 0,
"Endpoint": "https://api.shocklink.app",
"ApiKey": "API KEY HERE"
}
],
"ShockerActions": [
{
"TriggerEvent": 2,
"ShockerIds": [
"SAME ID HERE"
],
"Action": 2,
"ValueFromInput": false
}
]
}
```
## LogLevel
[Levels](https://learn.microsoft.com/de-de/dotnet/api/microsoft.extensions.logging.loglevel?view=dotnet-plat-ext-8.0)
## Shockers
### ApiKey
- For OpenShock (HTTP) get token [here](https://shocklink.net/#/dashboard/tokens)
- For PiShock (HTTP) get information [here](https://apidocs.pishock.com/#header-authenticating)
### ApiType
CShocker [](https://github.com/C9Glax/cshocker) [here](https://github.com/C9Glax/CShocker/blob/master/CShocker/Shockers/Abstract/ShockerApi.cs)
### ShockerIds
List of Shocker-Ids, comma seperated.
`[ "ID-1-asdasd", "ID-2-fghfgh" ]`
### Intensity Range
in percent
`0-100`
### Duration Range
in ms
- `0-30000` OpenShock
- `0-15000` PiShock
### Username (PiShockHttp only)
For PiShock (HTTP) get information [here](https://apidocs.pishock.com/#header-authenticating)
### Sharecode (PiShockHttp only)
For PiShock (HTTP) get information [here](https://apidocs.pishock.com/#header-authenticating)
## ShockerActions
### TriggerEvent IDs
From CS2GSI [](https://github.com/C9Glax/CS2GSI) [here](https://github.com/C9Glax/CS2GSI/blob/master/CS2GSI/CS2Event.cs)
### ShockerIds
List of Shocker-Ids, comma seperated. (Same as in configured Shocker)
`[ "ID-1", "ID-2" ]`
### Actions
From CShocker [](https://github.com/C9Glax/cshocker) [here](https://github.com/C9Glax/CShocker/blob/master/CShocker/Shockers/ControlAction.cs)
### ValueFromInput
Use CS2GSI EventArgs value to determine Intensity (within configured IntensityRange)
# Using
### CS2GSI
[](https://img.shields.io/github/license/c9glax/CS2GSI/LICENSE)
[](https://www.nuget.org/packages/CS2GSI/)
[](https://github.com/C9Glax/CS2GSI)
[](https://github.com/C9Glax/CS2GSI/releases/latest)
### CShocker
[](https://github.com/C9Glax/CShocker)
[](https://github.com/C9Glax/cshocker)
[](https://shields.io/badges/nu-get-version)