You are viewing a potentially older version of this package. View all versions.
Kaitorque-TPVoting-1.5.0 icon

TPVoting

Fork of Mordrog's TPVoting. Stops players leaving the stage by accident: pressing a charged teleporter or any portal starts a vote instead. The boss event starts freely. Host-only.

Date uploaded a day ago
Version 1.5.0
Download link Kaitorque-TPVoting-1.5.0.zip
Downloads 61
Dependency string Kaitorque-TPVoting-1.5.0

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2121 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2121
RiskofThunder-R2API_Prefab-1.1.1 icon
RiskofThunder-R2API_Prefab

API for Prefab creation, networking and duplication

Preferred version: 1.1.1

README

TPVoting (Kaitorque fork)

Stops players from accidentally leaving the stage while others are still picking up boss items.

This is a fork of TPVoting by Mordrog, used under the MIT license (see LICENSE). All credit for the original mod goes to Mordrog.

This fork works differently from the original. The original locks the teleporter at the start of every stage until players vote. This fork leaves the teleporter boss event alone and only protects the moment you leave the stage: the charged teleporter, and every portal. Do not install both; the fork refuses to load alongside the original.

Only the host needs this mod.

How it works

  1. Starting the boss event is free. Anyone can activate the teleporter as in vanilla.
  2. Pressing a stage exit starts a vote. When someone presses the charged teleporter or a portal, nobody teleports. Instead, a vote starts for that exit, and the press counts as their vote.
  3. Join or leave the vote. Write r in chat, or press the same exit, to ready up. Write f to take your vote back. Dead players count as ready.
  4. Half or more ready → countdown. A countdown starts (30 seconds by default). If votes drop below half, the countdown is cancelled. If nobody is ready any more, the vote ends.
  5. Everyone ready → leave immediately. The exit runs at once, with no extra press.
  6. Countdown finished → exit unlocked. Nobody is teleported; someone still has to press the exit to leave. The exit stays unlocked for the rest of the stage.

While a vote is running, pressing a different exit only shows a reminder that a vote is already running. Votes reset on every new stage.

Protected exits: the charged teleporter and every portal (shop, gold, celestial, void, green, Colossus, DLC portals, and anything else that leads to a new stage). Voting is skipped in single player, on final/special stages (Commencement, the Void Fields, A Moment, Whole, the Planetarium, the ending), and in Simulacrum.

Config (kaitorque.TPVoting.cfg)

Setting Default Description
PlayerIsReadyMessages r,rdy,ready Chat messages that ready you up (comma-separated)
PlayerCancelMessages f Chat messages that take your vote back (comma-separated)
MajorityVotesCountdownTime 30 Seconds until the exit unlocks once half or more are ready
UserAutoVoteOnDeath true Dead players count as ready
IgnoredGameModes InfiniteTowerRun Game modes where voting is off

Credits

  • Original mod: Mordrog (source)
  • Fork: Kaitorque (source)
  • Icon: the in-game teleporter icon from Risk of Rain 2

See CHANGELOG.md for changes.

CHANGELOG

Changelog

1.5.0 (Kaitorque fork)

First release of the fork. Behaviour is different from the original mod.

  • Voting now protects leaving the stage instead of starting the teleporter. The teleporter boss event can be started freely.
  • Pressing the charged teleporter or any portal starts a vote for that exit instead of teleporting. Void portals are now included.
  • Exits are detected by the game's stage-exit component, so every portal type is covered, not only objects named "portal".
  • New f chat command (PlayerCancelMessages) to take your vote back. The countdown is cancelled if votes drop below half, and the vote ends if nobody is ready.
  • When everyone is ready, the stage is left immediately. When the countdown finishes, the exit only unlocks, so someone has to be at the exit to leave.
  • Players who are already dead when a vote starts count as ready.
  • Fixed buttons and other non-portal interactions counting as votes, or running twice.
  • Removed the VoteAfterTPEvent setting and the automatic vote at the start of every stage.
  • New plugin ID kaitorque.TPVoting (config file kaitorque.TPVoting.cfg). Will not load if Mordrog's TPVoting is installed.
  • Updated for Risk of Rain 2 1.5.0.

Original mod (Mordrog)

1.4.0

  • Fix for Alloyed Collective changes

1.3.0

  • Fix for Seekers of the Storm changes
  • Added option for TP voting after TP event ended

1.2.3

  • Update manifest + rebuild on new patch

1.2.2

  • Fix for Survivors of the Void changes
  • Added option to turn off voting on selected game modes

1.2.1

  • Fixed issue where players would be auto kicked from dedicated servers if they do not have mod
  • Added "outro" stage to ignored Stages for voting
  • Added new config to let admin decide whenever players should auto vote on death

1.2.0

  • Fix for Anniversary Patch changes
  • Make portals interaction work same as teleporter interaction
  • Players can now vote when they interact with a portal or teleporter for the first time
  • Added new Moon stage to ignored Stages for voting

1.1.0

  • Now works on portals only maps
  • Chat messages should not appear for 1 player only

1.0.2

  • Included all stages without TP to ignored map list
  • Fixed activating on interaction items when trying to start locked TP, which made fireworks and squids an actually usefull items. No more.
  • Fixed players voting on death on disabled stages

1.0.1

  • Fixed checking for majority of players