WalkieSpamExplode
[v73] Violently punishes players who spam the walkie or remote! Fully networked and configurable!Walkie Spam Explode
Sick of players who like to spam the "speaking" into walkie button, often causing nobody to want to have one? What about players that spam the Remote? Or want a new unconventional way to suicide bomb enemies/friends? Then this mod is for you!
What it does
- With default settings, this mod will punish players who spam their Walkie/Remote by filling up an invisible "anger" meter, which decays over time. If it gets too high, the player will be given a HUD warning, and if they keep going, they will explode! Whilst this is intended to punish players who spam these items, it can also potentially be used to troll friends or suicide bomb enemies, Hector Salamanca style!
- Alternatively, you can change the explosion chance to be lower, where if it fails then a far less dramatic (and more balanced) punishment is given, where the Walkie/Remote can just be deleted, or for the Walkie the Battery can be drained.
- The size and power of the explosion is also configurable, along with whether the Walkie/Remote itself should be destroyed when an explosion occurs. You can also configure how much anger is needed to trigger a punishment, how faster the anger decays etc.
- All configs are synced with the host!
Known Issues
- The explode option doesn't seem to work in orbit?
Planned Features
- Maybe a custom Coroner cause of death?
Disclaimers
- Note that when a player is exploded, their anger meter resets. However, if their battery is just drained, it will not reset. Anger can also be "stored" by spamming the Walkie/Remote when in orbit, meaning the player will then explode the second they use it once the ship is landing on the moon. If you want to see how the anger meter behaves in realtime, enable the debug setting and check the logs!
- This mod might behave weirdly with stuff like keybind mods for letting you use the items without it being selected, but it SHOULD work!
- This mod is my first time doing networkey stuff, but from testing it seems to all work fine without any desyncs!
- This mod was built and compiled for v73, i cannot guarantee that it will work fine on v80. It might! In the future i will update it for v80.
Credits
- SelfDestruct, which i used for my basis of understanding how to use LethalNetworkAPI and spawn an explosive
- LethalNetworkAPI, for simplifying the process of doing networky stuff
- CSync, for syncing the configs to prevent clientsided cheating
