Summary
Zombies-style Mystery Box for Arma Reforger. Spin it for a random weapon, but if the teddy bear turns up, the box moves on. Place it from Game Master or set spawn points in JSON.
Description
HSM MYSTERY BOX
The zombies-style Mystery Box, brought to Arma Reforger. Walk up, spin it, and watch the weapons flick past until one is picked. Take it before it sinks back into the box. Spin too often and the teddy bear turns up, and the box packs up and moves somewhere else.
HOW IT PLAYS
- Spinning is free (since reforger doesnt have currency yet). Each player has a cooldown between spins (5 minutes by default, across every box).
- The lid swings open, the box lights up and the jingle plays while weapons flick past, slowing down until one is chosen.
- The chosen weapon floats over the box and slowly sinks back in. Take it before it's gone.
- Taking it puts it in your inventory with spare magazines. No room? It lands on the ground in front of the box.
- Every few spins (4 to 10 by default) the teddy bear comes up instead. "Bye bye!" The box moves to another spawn point and everyone is told it has moved.
GAME MASTER
- The Mystery Box is in the Game Master entity browser under Objects. Search "Mystery" to find it.
- Place as many as you like. A Game Master box works the same as a spawned one.
SERVER SETTINGS
Everything is in one file, written with defaults on first start:
$profile:HousoMods/MysteryBox/settings.json
The file is read again before every spin, so most changes apply without a restart.
- enabled: turn the box on or off
- cooldownSeconds: wait between spins per player (default 300)
- rollSeconds: how long the weapons flick past (default 6.5, matches the jingle)
- offerSeconds: how long the prize stays up before it's gone (default 12)
- bearAfterLeast / bearAfterMost: the teddy bear turns up after a random number of spins in this range (default 4 to 10)
- boxesAtStart: how many boxes the mod puts out by itself at mission start, picked from the spawn points
- weapons: the prize list. Each entry has a prefab, a weight (10 is twice as likely as 5) and how many spare magazines come with it
- spawnPoints: x, y, z and yaw for each place a box may appear and where the teddy bear can send it. With none set, boxes only come from Game Master
- bearText, movedText, fullText: the messages players see
WEAPONS
The default list is vanilla only, so it works on any server: AK-74, AK-74N, M16A2, the GP-25 and M203 variants, PKM, M249, M60, SVD, M21, RPG-7, M72 LAW, PM and M9. Add modded weapons by putting their prefab in the list. If the server runs that mod, it just works.
FOR SERVER OWNERS
- Server-side logic. Clients can't pick their own prize or skip the cooldown.
- No dependencies.
- Built and tested on a dedicated server.
CREDITS
- Box model: "#11 Mystery Box" by Canary Games (Sketchfab), CC-BY-4.0.
- Teddy bear model: "Teddy bear" by Helsingr (Sketchfab), CC-BY-4.0.
- Sounds by quicksounds.com
- Mod by ozzie (HousoMods). Support and bug reports: https://housomods.com
License
Arma Public License No Derivatives (APL-ND)