First Response Base Addon is a WIP mod that is intended to serve as a dependency for other mods to use.
It will help players by:
- Providing centralized tools (breathalyzer, radar gun, ALPR, court system) that any mod can hook into. This is to try and prevent duplicate features being present in your game.
- Provide an easy to use settings menu, allowing keybinds and mod settings to be changed on the fly, instead of with a text editor and ini files.
It will help developers by:
- Providing a simple to use Keybinds API
- Providing a simple to use Settings API
- Checking for Updates to your mod
- Adding the ability to add documentation in-game
It is still very much WIP, and the first release won't contain all the tools listed above. I am focusing first on the Keybinds and Settings APIs.
Getting a basic keybind setup with FRBA is simple
Keybind yell = new Keybind(Keys.X);
yell.location = KeybindLocation.OnFoot;
yell.SinglePress += Yell;
yell.HeldPress += YellLoud;
mod.Keybinds.Register("YELL", "Yell", yell);
That small amount of code will call the `Yell` function on a short press or `YellLoud` on a long press. The player can open up this menu and change the keybind, and it gets applied instantly. No reloading needed.
I have attached two images showing the current very WIP interface. This project will be made open source on GitHub once the first release is ready, and development will continue from there.
Let me know any thoughts, comments, ideas or anything else related to this WIP project.