You are viewing a potentially older version of this package. View all versions.
Hamm3rhart-GamblingMachineAtTheCompanyForkV2-1.4.5 icon

GamblingMachineAtTheCompanyForkV2

Adds a gambling machine to gamble your scraps at The Company moon. A great last ditch effort to not get ejected... or maybe you're just a gambling addict. Clients automatically sync with hosts gambling configuration when they join. Good luck!

Date uploaded 2 weeks ago
Version 1.4.5
Download link Hamm3rhart-GamblingMachineAtTheCompanyForkV2-1.4.5.zip
Downloads 2726
Dependency string Hamm3rhart-GamblingMachineAtTheCompanyForkV2-1.4.5

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Gambling Is the Only Way

This is a fork of a fork. First fork: GamblingMachineAtTheCompanyFork Original: GamblingMachineAtTheCompany

I wanted to add more customization to the mod and had some feature/quality-of-life ideas.

All credit goes to the original creator and the first fork’s author for updating it to the current version.

Description

"To make your ambitions come true, you have to take risks."

Adds gambling machines at "The Company" moon. You'll see them right in front of you when you land.

The gamble roll can have 6 results (all configurable):

  • Jackpot = 10x
  • Triple = 3x
  • Double = 2x
  • Halve = 0.5x (scrap reduced by half)
  • Zero = 0x (scrap is worthless)
  • Explode = 0x (what do you think will happen?)

The default gambling chances (these are configurable):

  • Jackpot = 3%
  • Triple = 11%
  • Double = 27%
  • Halve = 49%
  • Zero = 9%
  • Explode = 1%

How to use the gambling machine

While holding a scrap, walk up to the machine and press "E" (or your interaction key). Gambling machine

Features

  • Gambling
  • Configurable gambling chances
  • Configurable gambling scrap multipliers
  • Configurable machine layout (grid size, spacing, rotation, spawn mode, offsets)
  • Configurable number of uses for each gambling machine
  • Optional max value cap to prevent runaway scrap values
  • Client configuration automatically syncs with the host
  • Centralized music emitter with per-machine music toggle and volume control

Configurable Fields

  • General Settings

    • Cooldown Time (reducing this may desync the drumroll and can increase latency)
    • Number of uses per machine
    • Max value limit (cap scrap value after gambling; 0 disables the cap)
  • Machine Layout

    • Machine spawn mode: AUTO (up to player count) or MAX (fill the grid capacity)
    • Number of rows (along X)
    • Machines per row (along Z)
    • Row spacing (distance between rows; decimals allowed; 0 defaults to 5)
    • Column spacing (distance between machines; decimals allowed; 0 defaults to 5)
    • Machine rotation (yaw 0-359; invalid values fall back to 90)
    • Layout offsets X/Y/Z (shift the whole grid anchor)
  • Gambling Chances (make sure all values add up to 100 for sensible odds)

    • Jackpot Chance
    • Triple Chance
    • Double Chance
    • Halve Chance
    • Zero Chance
    • Explode Chance
  • Gambling Multipliers

    • Jackpot Multiplier
    • Triple Multiplier
    • Double Multiplier
    • Halve Multiplier
    • Zero Multiplier
    • Explode Multiplier
  • Audio (Client side)

    • Enable machine music
    • Machine music volume

Bugs

Please report any bugs here: https://github.com/Hamm3rhart/GamblingModLethalCompany/issues

Click on the Green button that says "New Issue" and type in the details of your bug!

CHANGELOG

CHANGELOG

1.4.5

  • Fix fork config namespace (Hamm3rhart)
  • Centralize machine music to a single emitter at the grid midpoint
  • Reduce debug logging noise (now gated by Debug Logging config)

1.4.4

  • Fix multiplayer gambling sync: clients now see countdown, jingle, and scrap updates reliably
  • Known issue: explosions are still buggy and currently only work for the host
  • Config renamed (new config namespace for the fork)

1.4.3

  • Fix client interaction: ensure machines set InteractableObject layer/scale on OnNetworkSpawn, so clients (including MoreCompany) can raycast/interact

1.4.2

  • Fix machines only appearing for the host: register the gambling machine network prefab before host/client start so all peers (including MoreCompany clients) know the prefab and receive spawns

1.4.1

  • Fix default chances totaling 101% by setting Halve to 49% (Explode stays 1%); delete/regenerate existing BepInEx config to pick up the new defaults

1.4.0

  • Add explode outcome with configurable chance/multiplier; plays an "REDACTED" stinger, then explodes after a short delay
  • Rebuild asset bundle to include the new stinger audio and updated machine music handling
  • Centralize machine music with a shared emitter at the machine cluster midpoint; pause per-machine sources while honoring the client music toggle/volume to avoid overlapping/phasey music when several machines are nearby
  • Expand machine layout controls in detail:
    • Machine spawn mode: AUTO spawns up to player count; MAX fills the grid capacity
    • Grid sizing: rows (X) and machines per row (Z) define the total grid; negatives in spacing let you flip directions
    • Spacing: row/column spacing support decimals; zero falls back to 5 to avoid overlap
    • Rotation: yaw per machine (0-359); invalid values fallback to 90
    • Offsets: X/Y/Z offsets shift the entire grid anchor
  • Add max value limit option to cap scrap value after gambling (0 or negative disables the cap) so extreme multipliers can't blow past intended scrap values or hit integer limits
  • Keep multiple-machine support while respecting cooldown and use-count settings

1.3.4

  • Add configuration to add up to 3 gambling machines!
  • Add configuration to limit the number of uses on a gambling machine
  • Add a fix to prevent machines from getting triggered multiple times when everyone is trying to interact with one machine
  • Fix gambling machine showing while in orbit
  • Font size changes

1.2.3

  • Updated the interaction text and font

1.1.3

  • Updated the configurable multiplier fields to allow decimal numbers (previously only allowed whole numbers)
  • Changing the machine's cooldown is now available in the configuration file! (Thanks Adam759 for working on this!)

1.1.2

  • Fix gambling result audio not playing for other players

1.1.1

  • Maybe fixed bug that allowed multiple people to constantly spam the machine (gambling addicts...) which caused strange gambling outcomes!
  • Maybe helped alleviate some desync for scrap value
  • For the default configuration, increase halve chance by 3% and decrease double by 3%

1.1.0

  • Update readme

1.0.9

  • For the default configuration, increase double chance by 3% and decrease zero chance by 3%

1.0.8

  • Fix gambling machine activating multiple times in one interaction

1.0.7

  • Fix interaction key showing up incorrectly

1.0.6

  • Changed scrap value currency dollar icon to match the ingame currency icon
  • Update interaction key displayed on screen to be the user's set interaction key

1.0.5

  • Updated readme for feature request

1.0.4

  • Updated readme

1.0.3

  • Configurable fields to enable music and to set music volume

1.0.2

  • Update readme format

1.0.1

  • Update readme

1.0.0

  • Release