

Trick or Treat
Adds pumpkins randomly to all levels. Open them to get a Trick or a Treat! Have a Happy Halloween!Details
Trick_or_Treat 🎃 v1.0.3 - Have a Happy Halloween!
Adds pumpkins randomly to all levels. Open them and get a Trick or a Treat!
Host synchronizes 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 toStatsManager.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