You are viewing a potentially older version of this package. View all versions.
Omniscye-Trick_or_Treat-1.0.0 icon

Trick or Treat

Adds pumpkins randomly to all levels. Open them to get a Trick or a Treat!

Date uploaded 8 months ago
Version 1.0.0
Download link Omniscye-Trick_or_Treat-1.0.0.zip
Downloads 807
Dependency string Omniscye-Trick_or_Treat-1.0.0

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

Trick_or_Treat 🎃 v1.0.0

Adds pumpkins randomly to all levels. Open them and get a Trick or a Treat!
Host spawns them, everyone enjoys the chaos. Walk up to a pumpkin and press E.


What it does

  • Pumpkin spawns: A random handful of pumpkins appear around the map each run.
  • Press E: Interact to crack it open.
  • Treats: Showers of loot pop out (items come from the shop pools or the global catalog).
  • Tricks: Kaboom.
  • Multiplayer: Host synchronizes spawns and results to all clients.

Configuration

A config file is generated on first run. Keys you can tweak:

[Gameplay]
ExplosionChance = 0.5   ; 0.0–1.0 — chance an opened pumpkin is a "trick"
MinSpawnItems   = 1      ; minimum items on a treat
MaxSpawnItems   = 6      ; maximum items on a treat

[Spawning]
MinPumpkins     = 1      ; minimum pumpkins per level
MaxPumpkins     = 3      ; maximum pumpkins per level
SkipStartRoom   = true   ; if true, avoids points nearest the truck

Technical details (for modders)

  • Networking: Photon RaiseEvent with PUN-native payloads; host-only spawn. Clients rebuild pumpkins from events.
  • Scope: No traffic in main menu or lobby. Spawning only begins after the level is generated.
  • FX: Local FX helpers for Treat/Explode, synced as transient events.
  • Items: Pulls from ShopManager pools; falls back to StatsManager.itemDictionary if empty.
  • Safety: Kinematic rigidbodies, ground-snap with raycast, trigger collider for interaction.
  • Controls: Uses the game’s Interact input (E by default).

Credits

Created by Omniscye
Stay Forever