The Randomiser¶
port/builtin_mods/randomiser is a built-in gamemode shipped with OpenBlood that plays any of the eleven main missions (A Vintage Year to Amendment XXV) with randomised targets, kill conditions, complications, start point, exit, loadout, items and guards' guns. Everything comes from a deterministic seed, and a short code such as BM-M05-7F3A9C-P reproduces a contract exactly so players can share and race the same one.
It draws on what players of other randomisers value: the Hitman community's Roulette (a kill method and disguise per target, plus complications), Hitman 3's Freelancer (random starts, suspects, live clue inspection and lookouts), the Deus Ex Randomizer (graded presets, items and goals moved around) and the Zelda randomisers (contracts that can always be finished, shareable seeds). Unlike Roulette, the mod checks every rule it sets: it offers only what the game can detect and what the reachable level can provide.
Playing¶
Choose RANDOMISER in the Gamemode selector on Quick Play (or Active gamemode on MODS) and start any main mission. The game pauses on the briefing:
- Preset switcher (Remix, Contract, Mystery, Professional, Chaos, Custom) and an expandable Custom settings panel to tune contracts live without returning to the launcher;
- the shareable seed code with Copy, Bookmark, a field to paste another code, and a Bookmarks & recent codes browser;
- the Target markers selector (
Map and markers,Map only,None); - the targets (described by outfit, area and weapon, with kill conditions), complications, start point, exit, loadout, item changes and your career stats (completed contracts, Silent Assassin count and streak);
- START (
Enter) and REROLL (R).
During the mission:
- The dossier (top left;
Tab/RANDOMISER DOSSIERtoggles it) tracks live target areas and distances, kill conditions, complications (with live countdowns and shot limits) and key hints. - Pressing
F7(RANDOMISER BRIEFING, rebindable on Settings -> Buttons) pauses and opens the contract briefing mid-mission so you can review full rules, copy or bookmark the code, switch markers, restart the same seed or roll a new contract. - With target markers on, targets within 45 m are marked with Reprisal-style chips showing distance and floor arrows (
▲/▼). In Mystery mode, aiming at or approaching a suspect inspects their traits against the clues and automatically marks contradicted suspects as CLEARED. - Once every target is eliminated, the chosen exit is marked (with an off-screen edge guide when out of view) and LEAVE (
E) completes the contract. Walking into a different vanilla exit when One exit is active is blocked with a warning. - The results window grades the run (
S+toDorFAILED), breaks down every target, condition and complication, tracks personal bests per code, and offers FINISH, REPLAY SEED / RETRY CONTRACT, and NEW CONTRACT.
A restart replays the same contract; a completed one is replaced by a new seed next time. The gamemode keeps its own saves (separate_save -> mod_saves/randomiser/), so the campaign's saves are untouched.
Presets¶
| Preset | Targets | Kill conditions | Complications | Start, exit, loadout | Items | Guards' guns |
|---|---|---|---|---|---|---|
| Remix | The story's targets and 2 more | Off | 0 | Stock | Shuffled | Stock |
| Contract | 3 new targets | Bonus | 1 | One exit | Shuffled, extra tools | Stock |
| Mystery | 1 target among suspects | Bonus | 1 | Random start, one exit | Shuffled, extra tools | Stock |
| Professional | 3 new targets | Required | 2 | Random start, one exit, random loadout | Shuffled, extra tools | Stock |
| Chaos | 4 new targets | Required | 3 | Random start, one exit, random loadout | Shuffled, extra tools | Shuffled |
| Custom | The mod's settings |
Required conditions make every complication a hard rule as well: missing a condition or breaking a complication fails the contract immediately. Bonus conditions only affect score and grade.
What changes, and how it is checked¶
| Layer | What the mod does | What the game reports |
|---|---|---|
| Targets | Picks living reachable people from the pause map's icons, spread over rooms, 8 m apart and in different outfits where possible; story targets step back to ordinary people unless kept | actor_killed |
| Mystery | One target and up to three suspects alike in outfit, role, weapon or area; at least two clues are chosen where possible until only the target fits, and observing a suspect checks their traits live and clears mismatches | actor_killed, obm.player.aim_target |
| Kill method | Fiber wire, poison, accident, any firearm, pistol, headshot, melee, explosive, plus shotgun, SMG, assault rifle and sniper rifle when already present in the reachable level or loadout | actor_killed's cause and headshot |
| Disguise | 47's suit, or an outfit worn by a reachable non-target actor in the level | actor_killed's disguise |
| Complications | No pacifications, targets only, no witnesses, bodies stay hidden, camera shy (levels with online cameras only), suit only, one disguise, clean cover, no alarms, silent hands, three rounds (max 3 shots), against the clock, Silent Assassin, lookouts (line-of-sight and same-floor checked), plus handicaps: paranoid guards, sharp ears, deadly guards, armored targets and wounded (45 % health) | Live rating statistics, actor_killed, weapon_fired, actor sedated flag, lookouts' suspicion meters |
| Start | One of the level's curated start spots away from targets and security cameras | |
| Exit | One of the level's exits: 47's own start and the pause map's exits (wrong vanilla exits blocked when One exit is on) | The LEAVE action at the exit |
| Loadout | Replaces 47's weapons and tools with what the conditions need plus one or two extras (pairing a detonator with remote mines, and avoiding firearms with Silent hands) | |
| Items | Shuffles loose weapons and tools (never keys, food, containers or story items) and places extra tools near loose items and start spots on the floor (pairing a detonator when placing a remote mine without one in inventory) | |
| Guards' guns | Gives most armed guards and police another non-sniper gun the level already has |
Contradictory or redundant complications and conditions are never paired (for example no firearms with Silent hands, no outfit with Suit only, no Camera shy on levels without cameras).
Codes¶
BM-<mission>-<seed>-<preset>: BM-M05-7F3A9C-P is Professional on A New Life with seed 0x7F3A9C. A Custom contract spells its settings out after U: targets (1 to 5), mode (C new targets, E story targets and extra, M mystery), conditions (0 off, 1 bonus, 2 required), complications (0 to 3), then start, exit and loadout (0 or 1), items (0 off, 1 shuffle, 2 with extras) and guards' guns (0 or 1). Each layer draws from its own random stream (scripts/rng.lua), so a code gives the same contract on every machine.
Level data¶
scripts/levels.lua holds the curated part of each mission: its title, the base of the time limit, human-readable names for every exit and start room (such as Seaplane Hangar, Rooftop Helipad, Stern Escape Boat, Underground Parking Garage), people never to pick (exclude: those in a vehicle, locked cell or moving float), and story items the shuffle leaves alone (protect). scripts/levels_generated.lua holds 47's start, the map's exits and the start spots.
The Randomiser tab of the F10 or Shift+F1 overlay makes that data:
- DUMP LEVEL stores the scene's people, items, item templates, outfits and map icons.
- CHECK SPOTS dumps the level too, then teleports 47 (in god mode and invisible) to the map's exits and to up to 24 spread-out places where people stand, and stores which of those are not trespassing in his suit.
- RECORD SPOT adds where 47 stands.
They write to mod_saves/openblood.randomiser/ in the user directory, and tools/port/randomiser_levels.py <that folder> writes port/builtin_mods/randomiser/scripts/levels_generated.lua from them.
Testing¶
Start directly into Randomiser with OPENBLOOD_GAMEMODE=randomiser (or --gamemode randomiser). With OPENBLOOD_HUD_PREVIEW=1 (the port's switch for test captures) the briefing starts on its own after 90 frames, the results window closes after 90, and 47 leaves when he stands at the exit, so a scripted run plays a contract from start to end. The seed code setting picks a fixed contract (mods.configs["openblood.randomiser"] in obm.config.json: {"seed": "BM-M01-00ABCD-P"}, or --set mods.configs.openblood.randomiser.seed=BM-M01-00ABCD-P).
A mission started directly with DefaultScene=M01/M01_Main has no campaign profile, so the game cannot work out the next scene when the mission ends and stops with a debug break after the results; missions started from the launcher go on to the debriefing.