Repository navigation
Pi-Shock CS2 Integration
Enhance your gaming experience with Pi-Shock for Counter-Strike 2 (CS2)! This integration enables real-time feedback via electric shocks using the PiShock device, aligning in-game hits with immediate physical sensations through seamless serial communication.
Features
- Customizable Configuration: Modify settings directly through the configuration file to suit your gameplay.
- User-Friendly: Straightforward installation and operation.
- Minimal Latency: Experience no delay between in-game actions and corresponding shocks.
Configuration
- Currently allowed Distrubutions:
FIRST, LAST, RANDOM, RANDOM_ALL, ALL
Information
- Currently tested only on Windows 11.
- Still in development and may contain bugs.
- Not affiliated with PiShock or Counter-Strike 2.
- Provided as-is and may not be suitable for all users.
- Use at your own risk.
- Open-source and free to use.
- Not designed for commercial purposes.
- Not recommended for individuals with:
- Pacemakers
- Epilepsy
- Heart conditions
- Other medical conditions
- Not suitable for individuals with disabilities or sensitivities.
To-Do
- Add more features such as methods triggered when you kill someone, get killed by a taser, or get knifed.
- Expand configuration options.
- Improve the functionality, for example, random device.
- Implement additional shortcuts.
- Control GUI
Installation
Follow these steps to set up the Pi-Shock integration with CS2:
- Download the latest release.
- Move
gamestate_integration_cs2shock.cfgto your CS2 configuration directory at\Counter-Strike Global Offensive\game\csgo\cfg\. - Install Java 21 from the official site.
- Extract and run
PiShock.jarfrom the downloaded ZIP file. - Launch CS2.
- Execute
startup.bat(Windows) orstartup.sh(Linux/Mac). - Enjoy!
Shortcuts
- CTRL + M: Emergency exit.
Special Thanks
- Thanks to @VellusFox for assisting with testing since i dont have a own PiShock device.
♥️
Used Dependencies
- Lombok - Simplifies Java development by reducing boilerplate code.
- Spark - A micro framework for creating web applications in Kotlin and Java with minimal effort.
- Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back.
- jSerialComm - A platform-independent serial communication library for Java.
- JNativeHook - Provides global keyboard and mouse listeners for Java.
Credits
- PiShock integration is based on the work by ScoreUnder available on GitHub: PiShock Zap Fabric.