Skip to content

CPMA, but you get shocked when you die ingame.

Notifications You must be signed in to change notification settings

PancakeTAS/pishock-cpma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pishock CPMA

Bunny hopping in CPMA, but with a twist.

I don't even know what CPMA is, my friend told me to download it and we played a few matches. Afaik it's a Quake 3 mod (??) which implements multiplayer shooting mechanics. It's fun you should try it.

Pishock CPMA hosts a private (but still publicly joinable) server, where every time a specific user, the server owner gets shocked... Preferably the one hosting is also the user specified.

Warning

I'm not responsible for any damages done by this project (AI wrote most of this anyways, do I look like I know how to write bash scripts). Please be careful.

Important

For legal reasons, this tool was not designed to be used on animals or humans. You can probably get away with using it on aliens, if you find any. I'm not sure how this rule extends to catgirls and other hybrids.. ask your lawyer

Note

The code of this repository is basically identical to Pishock Roulette.. If I keep writing these, I'll have to make shared code for them.

How do I use it?

Well, first of all you're going to need a shock collar. Then you're going to need to install CPMA. I'm guessing you already know how to do that, so let's skip to the server installation. Which you can find here. Move the server into a folder called CPMA and ensure that ./CPMA/cnq-server-x64 is executable.

Now, create a file called shockenv.sh and enter your secrets:

#!/bin/bash
export PISHOCK_USER="Username"
export PISHOCK_API_KEY="xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
export PISHOCK_CODE="FFFFFFFFFFF"

Then, open start.sh and adjust the intensity and duration to what you can handle. I also added a timeout to prevent spawnkilling. Make sure to also change your username here to your CPMA username.

...

# Configure shock (can only be the same as on the web interface)
MIN_INTENSITY=20
MAX_INTENSITY=30
DURATION=0.3
TIMEOUT=15
USERNAME="Pancake"

...

Finally, run ./start.sh and enjoy the game! Well, almost. Depending on how you setup the server you might have to manually loads a map and execute some configs.

How does it work?

CPMA logs a unique message into the console every time a player dies. ./start.sh simply launches the server and reads through stdout. When it finds the message, it sends a shock to the PiShock api and sets a timeout to ensure you don't get spawnkilled (or shockkilled? (github copilot came up with this joke)).

How do I know it works?

Launch the server, select a map, log onto the server, start the match... and die! If you're shocked, it works! If you're not, you might have to check the logs on the website. It doesn't seem to work while the game is in prep-phase, but I have no clue how CPMA works so I can't help you there.

Is it tested?

In two astonishing 30:1 and 10:6 10-minute matches, I can confirm, it does indeed work.

About

CPMA, but you get shocked when you die ingame.

Topics

Resources

Stars

Watchers

Forks

Languages