Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

C9Glax/OpenCS2hock

Repository files navigation

OpenCS2hock

GitHub License GitHub Release

Electrifying your Counter-Strike experience. With OpenShock and PiShock! (Not Associated)

How to use

Download latest Release and execute.

Example config.json. Place next to executable. Will also be generated on first start.

{
  "LogLevel": 2,
  "Shockers": [
    {
      "ShockerIds": [
        "ID HERE"
      ],
      "IntensityRange": {
        "Min": 30,
        "Max": 50
      },
      "DurationRange": {
        "Min": 1000,
        "Max": 1000
      },
      "ApiType": 0,
      "Endpoint": "https://api.shocklink.net",
      "ApiKey": "API KEY HERE"
    }
  ],
  "ShockerActions": [
    {
      "TriggerEvent": 2,
      "ShockerIds": [
        "SAME ID HERE"
      ],
      "Action": 2,
      "ValueFromInput": false
    }
  ]
}

LogLevel

Levels

Shockers

ApiKey

  • For OpenShock (HTTP) get token here
  • For PiShock (HTTP) get information here

ApiType

CShocker Github here

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

Sharecode (PiShockHttp only)

For PiShock (HTTP) get information here

ShockerActions

TriggerEvent IDs

From CS2GSI Github here

ShockerIds

List of Shocker-Ids, comma seperated. (Same as in configured Shocker)

[ "ID-1", "ID-2" ]

Actions

From CShocker Github here

ValueFromInput

Use CS2GSI EventArgs value to determine Intensity (within configured IntensityRange)

Using

CS2GSI

GitHub License NuGet Version Github GitHub Release

CShocker

GitHub License Github NuGet Version