Gamble PvP
Turns the co-op survival run into a 3-day free-for-all. Take loans, wager head-to-head, hire goons, snitch on rivals, haunt the living after you die. The mob still wants their cut.
What it does
- 3-day match. No infinite quota loop. Hard stop after day 3, then a podium screen.
- Per-player ledger. Every bet's win or loss is attributed via
MoneyManager.OnBalanceChanged. Your wealth is your starting stake + your cumulative gambling delta.
- Daily bankroll boost. Day 2 adds 2x starting cash, day 3 adds 4x. Bets scale up; comebacks stay possible.
- House clawback ending. Reading C of the design: at end of day 3, outstanding debt comes off the top, then the survivor with the most cash wins. 50/30/20 weighted payout for top 3.
- Death cutscene routing. When the game ends, the host transitions everyone to the base game's
LoseStateScene so the mob-death sequence plays under the standings overlay.
The booths
A row of three glowing kiosks spawns near the nearest casino game when you enter the casino floor:
Loan Shark (gold)
- Day-scaling principal cap ($500 day 1, $1000 day 2, $2000 day 3)
- Stacking loans, escalating interest: 1st = 1.5x → 2nd = 2.5x → 3rd = 5x → 4th attempt = instant death
- Good-customer discount: pay back a loan and your next same-day loan is 1.25x
- Default at day-end = wounded (red vignette). Default on final day = death.
Wager Booth (blue)
- Head-to-head coin flip vs. another living player
- $50 / $100 / $250 / $500 stakes
- 60s cooldown per challenger
- 50/50 RNG, winner takes the pot
Mob Favors (red/black)
- Snitch (free): 50/50 RNG. Win → target loses 25% wealth, you get 10% finder's fee. Lose → you pay a 10% false-accusation fine. 30s cooldown.
- Hire Goons ($500): Pay $500, target loses $750. 90s cooldown.
During play
- Happy Hour: Random 30s windows every 60–120s where all casino payouts are +50%. Toast notifications announce.
- Stats panel (Tab): Per-day per-player ledger snapshots.
- HUD: Top-left shows your wealth, current day, active loan. Below: live ranking of all other players.
- Lobby UI: Host adjusts
Days per game in HomeScene (1–10).
Ghost Mode
When you die, a panel appears bottom-right with a target cycler and a HAUNT button. Once per minute you can curse a living player for 30 seconds — their casino payouts are halved while haunted. Losing isn't the end of the game.
Installation
Install via r2modman — just click Install. All friends must install the same version for multiplayer to work properly. Manual installation: drop GambleWithYourFriendsPvP.dll into BepInEx/plugins/.
Config
BepInEx/config/com.chals.gamblepvp.cfg exposes:
InterestMultiplier — first-loan interest (default 1.5)
InterestMultiplierAfterPayback — good-customer discount (default 1.25)
StartingMoneyPerPlayer — day 1 starting cash (default 1000)
DaysPerGame — match length (default 3)
StripQuotaCheck — disable mob-kills-you-on-miss-quota (default true)
Known limitations
- No sound effects. Unity 6's runtime audio API is broken for procedural clips; both SetData and PCMReaderCallback paths produce empty clips. Will revisit if Unity fixes the API.
- Booth visuals are primitive geometry. Functional, not pretty.
- Mixed-version multiplayer is unsupported. Update everyone at the same time.
Credits
Designed and tested b