Four Weapon Slots
Four main weapons instead of two, assigned in the game's own equipment menu, with four HUD diamonds and D-pad or F1-F4 keys. A PBZModLoader mod.
What it does
Four main weapons instead of two.
- Equipment menu: the game's own menu shows four main weapon cells. Assign a weapon to each; picking one that is already in another cell swaps the two.
- HUD: four diamonds (up, right, down, left) with each weapon's icon. The weapon in hand is highlighted, a weapon on cooldown is red with its own cooldown ring.
- Controller: D-pad up, right, down, left picks weapons 1 to 4. The game's own D-pad actions move to L1/LB + D-pad: up and down use the two healing items, left and right switch the secondary weapon. The quick slot shows "L1 + ↑" and "L1 + ↓".
- Keyboard: F1 to F4 pick weapons 1 to 4 (you can choose other keys). The game's own keys stay.
- Hold a weapon key or D-pad direction (0.6 s) to put your weapon away.
The game still has two weapon slots: when you pick a weapon that is not equipped, the mod puts it into the other slot through the game's own functions, and the game's normal switch follows, with its cooldowns and animations. No weapon is granted or unlocked.
It is a PBZModLoader mod: a script in the game's own script engine. It replaces no game file and writes nothing into the save itself; which two weapons are equipped goes into your save as usual.
Screenshots
How to install
- Install PBZModLoader 2.1.0 or later.
- Download the zip of the latest release on GitHub (
phantombladezero_fourweaponslots_<version>.zip). - Unpack it into the game folder (the folder that holds
ProjectPBZ). It adds the folderProjectPBZ\PBZModLoader\mods\phantombladezero_fourweaponslots\withmain.jsand the settings file. - Start the game.
To check that it runs: ProjectPBZ\PBZModLoader\loader.log has the line
[PBZMOD] [Four Weapon Slots] <version> started; settings: ....
To update the mod, replace main.js with the one of the new release; keep your settings file (a setting that it does
not have keeps its default) and loadout.txt (your four weapons). To remove the mod, delete the folder ProjectPBZ\PBZModLoader\mods\phantombladezero_fourweaponslots\.
How to use
- Load a game. The mod fills the four slots with your weapons (the equipped ones first).
- Open the equipment menu to change them: select one of the four main weapon cells and pick a weapon.
- In play, pick a weapon with the D-pad or F1 to F4. Hold L1/LB + D-pad for the healing items and the secondary weapon.
The controls work in play only, not in menus, cutscenes or tutorial prompts.
Settings
The settings are in ProjectPBZ\PBZModLoader\mods\phantombladezero_fourweaponslots\phantombladezero_fourweaponslots.txt. Open it with a text editor,
change a value and save: the mod reads the file every 2 seconds, so the game uses it without a restart. Without the
file the mod writes it with the defaults below. Keys are not case-sensitive; ; or # starts a comment.
With Mods Menu (0.9.0 or later) in the game, the mod adds its page to Mods Menu's tab in the game's settings, and
the page's settings are the ones that count: Mods Menu keeps them in its own file in the game's Saved folder, and
the file in the mod's folder is not read then.
| Setting | Default | What it does |
|---|---|---|
Enable |
On |
Off: the game's own two weapons, controls and screens |
Controller |
On |
On: D-pad up/right/down/left = weapons 1 to 4, and L1/LB + D-pad = the game's own D-pad actions. Off: the D-pad works as in the game |
Keyboard |
On |
On: Key1 to Key4 pick weapons 1 to 4. The game's own keys stay |
Key1 to Key4 |
F1 to F4 |
Four different Unreal key names, for example F5 or NumPadOne |
HoldToSheathe |
0.6 |
Seconds (0.2 to 2) to hold a weapon key or D-pad direction to put your weapon away |
Messages |
On |
On: a short note on screen when you pick an empty slot |
Compatibility
- Game version: Steam build 26367565 (
CL-302256_JKS-17280). - Needs PBZModLoader 2.1.0 or later. Mods Menu is optional.
- The earlier "Phantom Arsenal" (UE4SS and a pak): remove it first; both together give two sets of controls.
- Auto Sheathe (a separate mod) works with it: this mod has no automatic sheathe of its own.
- Another mod that changes the equipment menu, the weapon HUD, the quick slot or the D-pad: test them together. Mods that replace those game scripts in a pak load before this mod; it wraps whatever is there.
- A key in Key1 to Key4 that another mod also uses: both react.
Known issues
- Not checked in game yet: how the D-pad feels after the mod gives it back (when you turn the mod off), and the tip for an empty slot. Weapon switching, the equipment menu, the HUD, deaths, loading screens and Alt+F5 reloads are tested.
How to build
There is nothing to build: src\phantombladezero_fourweaponslots\ is the mod folder (main.js and the settings file).
tests\test_mod.js runs the script outside the game with Node.js and stand-ins for the game: node tests\test_mod.js.
README.md has the details.
Credits
Made by Kintaro. MIT license: you may use, change and share this mod. PBZModLoader is made by LKF, its fork by KintaroModding. Phantom Blade Zero and its files belong to their makers.
