DIAMOND
Source code · License · Reload Maker
DIAMOND is a Fallout 4 VR plugin for physical weapon reloads: take the magazine out, draw a fresh one from the pouch on your chest, push it into the weapon and work the action with your own hands. It builds on ROCK and PAPER.
DIAMOND has no download. Its repository is the mod: you build it yourself. It is source-available under the DIAMOND Personal Use License, not open source. You may build, use and change it for yourself. You may not release it or anything made from it, on Nexus Mods or anywhere else, and you may not use it commercially, without the author's explicit written permission.
How it works
ROCK makes your weapon a physical object held by physical hands, and PAPER plays the game's reload animations on it. DIAMOND replaces the animation with the reload itself: the magazine, the rounds in it and the weapon's action become things you handle.
DIAMOND is the runtime. What it knows about a weapon comes from a reload pack, authored in Reload Maker: where the magazine sits and how it slides out, how each hand holds it, how far the slide or bolt travels and where a hand grabs it, and which sounds each step makes. A weapon without a pack keeps PAPER's reload.
- Magazines you handle. The release sends the magazine out of the weapon, and it falls as a physical object. A new one is caught along its path into the magazine well, slides in and seats. A magazine keeps its own rounds: a half-empty one you drop is still half empty when you pick it up.
- An ammo pouch on your chest. Reach into it with a free hand and grab to draw a magazine for the weapon you are reloading, filled from your loose rounds. A panel beside it says what to do and how many magazines or rounds are left, and your hand vibrates while a magazine is ready.
- The action. Pull the slide, bolt or charging handle by hand. The slide locks open on the last shot, and closes on a new magazine when you pull it or press the reload button. A full pull on an empty weapon latches it open.
- The chambered round. Taking the magazine out leaves the round in the chamber, so a full magazine gives its capacity plus one, and the weapon can fire at once.
- Other feeds. Packs describe revolvers with speedloaders, break actions loaded shell by shell, pump and lever actions with tube magazines, bolt actions with fixed magazines, and energy weapons with cells.
- Counters. A number over a held magazine shows its rounds, and ROCK's weapon counter shows the seated magazine with a cartridge for the chambered round,
NO MAGwhile the magazine is out, and the reserve in rounds or in full magazines.
DIAMOND works on the weapon in ROCK's first weapon slot. With a weapon in each hand, holster one and the other becomes the one DIAMOND reloads.
Requirements
- Fallout 4 VR 1.2.72.0 and F4SEVR.
- ROCK 1.0.4 or newer with its requirements.
- PAPER 2.0.2 or newer.
- RPS UI Framework 2.0.2 or newer, which draws the pouch panel, its pickup outline and the magazine counter.
- Recommended: Mods Config FO4 VR, the in-game menu with DIAMOND's settings page; without it, edit
DIAMOND.tomlby hand. - A reload pack for each weapon mod you want to reload by hand, and an ESL loader for Fallout 4 VR, because the packs' plugins are ESL-flagged.
All three mods are required: when one is missing, or older than the one your build was made for, DIAMOND stays off and the game keeps running.
Getting it
Build it from the repository; its README has the prerequisites and the steps (Visual Studio 2022, CMake, vcpkg, and checkouts of CommonLibF4VR, ROCK, PAPER, RPS UI Framework and RPS Framework). The build puts F4SE/Plugins/DIAMOND.dll and its Mods Config page into the mod folder you configure.
Reload packs are exported by Reload Maker and install beside it as their own mod: one DIAMOND_<source plugin>.esp per weapon mod, with the pack files under F4SE/Plugins/DIAMOND/ and the magazine meshes. Enable only the ones whose weapon mod you use. No packs are distributed here: a pack holds magazine meshes made from its weapon mod's own assets.
Reloading
For a pistol or rifle with a detachable magazine:
- Press the reload button of the hand that holds the weapon. The magazine comes out and falls.
- Reach into the pouch on your chest with a free hand and grab. A full magazine is in your hand.
- Bring it to the magazine well. It catches along its path and slides in; let go once it seats.
- If the slide is locked open, pull it back and let go, or press the reload button again.
A magazine you let go of falls and stays in the world; pick it up later with its rounds in it.
Configuration
Documents/My Games/Fallout4VR/Mods_Config/DIAMOND/DIAMOND.toml
DIAMOND creates the file with every option at its default the first time it starts. In game, open Mods Config FO4 VR (hold both thumbsticks pressed in) and pick DIAMOND. Each change shows in the game as you make it; Save writes it to the file and Discard undoes it. While the Ammo Pouch or Pouch Indicator page is shown, the pouch's pickup area and its panel show on your chest, so you can see where you place them. Edits made in the file by hand apply at the next start.
| Mods Config page | Table | What it sets |
|---|---|---|
| Ammo Pouch | [Pouch] | Whether the pouch shows, and its place, turn and size on your chest |
| Ammo Pouch | [Pouch.Pickup] | The centre and size of the area your hand reaches into, and when its outline is drawn |
| Ammo Pouch | [Pouch.Feedback] | The vibration while a magazine is ready, its strength and interval |
| Pouch Indicator | [Pouch.Indicator] | The panel beside the pouch: when it shows, what it counts, its colours, size and place |
| Magazine Counter | [MagazineCounter] | The number over a magazine: on held or also aimed-at magazines, its style, colours, size and height |
| Weapon Counter | [WeaponCounter] | What DIAMOND shows on ROCK's weapon counter: the chamber cartridge, NO MAG, the reserve unit and the low-ammunition colours |
The log is Documents/My Games/Fallout4VR/F4SE/DIAMOND.log. A pack DIAMOND refuses is named there with the reason.
For mod authors
DIAMOND publishes no interface for other mods. To add reloads for a weapon, author a pack in Reload Maker; DIAMOND needs no change for a new weapon.
DIAMOND itself is the largest consumer of the provider APIs and a worked example of them: ROCK's WeaponParts part targets, drives and grab points, Weapon setCounterPresentation, Grab, Input and Storage, and PAPER's PhysicalReload lease. Reading its source is allowed by its license; publishing anything made from it is not.