2024-01-16 01:35:25 +01:00
|
|
|
# OpenCS2hock
|
2024-01-16 04:43:07 +01:00
|
|
|
![GitHub License](https://img.shields.io/github/license/c9glax/OpenCS2hock)
|
|
|
|
![GitHub Release](https://img.shields.io/github/v/release/c9glax/OpenCS2hock)
|
|
|
|
|
2024-01-16 01:35:25 +01:00
|
|
|
Electrifying your Counter-Strike experience. With [OpenShock](https://openshock.org/)!
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
2024-01-16 01:36:06 +01:00
|
|
|
Download [latest Release](https://github.com/C9Glax/OpenCS2hock/releases/latest) and execute.
|
2024-01-16 01:35:25 +01:00
|
|
|
|
|
|
|
Example `config.json`. Place next to executable. Will also be generated on first start.
|
2024-01-16 01:22:53 +01:00
|
|
|
```json
|
2024-01-14 02:41:33 +01:00
|
|
|
{
|
2024-01-16 01:22:53 +01:00
|
|
|
"LogLevel": 2,
|
2024-01-14 02:41:33 +01:00
|
|
|
"OpenShockSettings": {
|
|
|
|
"Endpoint": "https://api.shocklink.net",
|
|
|
|
"ApiKey": "<Your Shocklink API Key>",
|
|
|
|
"Shockers": [ "<Shocker Id> comma seperated" ]
|
|
|
|
},
|
|
|
|
"IntensityRange": {
|
|
|
|
"Min": 30,
|
|
|
|
"Max": 60
|
|
|
|
},
|
|
|
|
"DurationRange": {
|
|
|
|
"Min": 1000,
|
|
|
|
"Max": 1000
|
|
|
|
},
|
|
|
|
"Actions": {
|
2024-01-16 01:22:53 +01:00
|
|
|
"OnKill": "Nothing",
|
2024-01-14 02:41:33 +01:00
|
|
|
"OnDeath": "Shock",
|
|
|
|
"OnRoundStart": "Nothing",
|
|
|
|
"OnRoundEnd": "Vibrate",
|
|
|
|
"OnRoundWin": "Nothing",
|
2024-01-16 01:22:53 +01:00
|
|
|
"OnRoundLoss": "Shock",
|
|
|
|
"OnDamageTaken": "Vibrate"
|
2024-01-14 02:41:33 +01:00
|
|
|
}
|
|
|
|
}
|
2024-01-14 02:52:39 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
### ApiKey
|
|
|
|
For OpenShock get token [here](https://shocklink.net/#/dashboard/tokens)
|
|
|
|
|
|
|
|
### Shockers
|
|
|
|
List of Shocker-Ids, comma seperated. Get Id [here](https://shocklink.net/#/dashboard/shockers/own). Press the three dots -> Edit
|
|
|
|
|
|
|
|
Example `[ "ID-1", "ID-2" ]`
|
|
|
|
|
|
|
|
### Intensity Range
|
2024-01-16 01:35:25 +01:00
|
|
|
`0-100`%
|
2024-01-14 02:52:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
### Duration Range
|
|
|
|
in ms
|
|
|
|
|
|
|
|
### Values for `Actions`
|
|
|
|
- Beep
|
|
|
|
- Shock
|
|
|
|
- Vibrate
|
2024-01-16 01:35:25 +01:00
|
|
|
|
|
|
|
# Using [CS2GSI](https://github.com/C9Glax/CS2GSI)
|