Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a3r0id/grom-restricted-arsenals
Arma 3 mod that allows creators to initialize an infinite amount of ACE arsenals restricted by player role and other attributes.
https://github.com/a3r0id/grom-restricted-arsenals
arma arma3 arsenal bohemiainteractive mod steam
Last synced: 9 days ago
JSON representation
Arma 3 mod that allows creators to initialize an infinite amount of ACE arsenals restricted by player role and other attributes.
- Host: GitHub
- URL: https://github.com/a3r0id/grom-restricted-arsenals
- Owner: a3r0id
- Created: 2023-01-25T07:56:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T06:45:16.000Z (7 months ago)
- Last Synced: 2024-04-28T03:19:47.232Z (7 months ago)
- Topics: arma, arma3, arsenal, bohemiainteractive, mod, steam
- Language: SQF
- Homepage:
- Size: 237 KB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grom Restricted Arsenals (Alpha)
A useful Arma 3 mod that allows mission-makers to initialize an infinite amount of whitelisted arsenals, both ACE and vanilla, and restricted by player role and other attributes.[View on Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=2925570747)
![](https://steamuserimages-a.akamaihd.net/ugc/2013706124474735514/AF4EB4D2A638312DCAD98004F7BC15E969EDEAA0/?imw=637&imh=358&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true)
### __Modules__
To use a module, simply drop the module anywhere in your mission's map in 3den editor and double-click on it to configure. Modules can be found under the "Systems" category in 3den editor.
![](https://steamuserimages-a.akamaihd.net/ugc/2013706759566266819/D3728CD87EFA72EC6F1B99386BDA5C6C4D71B8B2/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=#000000&letterbox=false)
--------
#### [1] Base Arsenal
A basic, whitelisted arsenal that everyone can access. This module can also be restricted to a specific side, ie: `BLUFOR`. You can make make as many as needed, ie: one for each "side" (or team in a pvp gamemode etc).
#### [2] Restricted Arsenal
A whitelisted arsenal in which only certain players with a specific role can access, ie: `Machinegunner@anything` as well as a specific side, ie: `BLUFOR`.
--------
### __Utilities__
#### [1] Force Vanilla Arsenal
Dropping this module into your mission will automatically convert all restricted arsenals into an Arma 3 virtual arsenal (vanilla arsenal). Amount has no effect, 1 is enough.
--------
### __Module attributes & settings__
- `Side`: The side that can access this arsenal. Select "ANY" to allow all sides to access the arsenal.
- `Owner`: The object/classname of objects that own/s this whitelisted arsenal. This can be the object's classname or a variable name. If the object is destroyed, the arsenal will be destroyed as well. *Keep in mind* that you may encounter issues if you try to combine an arsenal that is owned by a classname with an arsenal that is owned by a variable name. Otherwise, you can use the same variable name/classname for multiple arsenals which will combine them into one arsenal specific to the player's side/role. *It is recommended* that you use a variable name if you only want one specific object to own the arsenal. Otherwise, if you want multiple objects of the same type to host an arsenal, use a classname.
- `Role (Restricted arsenal only)`: The role that can access this arsenal. For non-CBA configured role descriptions, you can enter something like `Alpha` or `Alpha 1` or `Alpha 1-1` into the role field. For CBA configured roles, let's say your targeted role is `Rifleman@Diablo 1`, you can enter `Rifleman` into the role field and any player with the role `Rifleman@ANYTHING` will be able to access the arsenal. Essentially, anything after the `@` symbol is ignored, in terms of CBA usage.
- `Items`: The items that will be available in the arsenal. This can be an array of classnames in any of the formats below:
```sqf
["Item1", "Item2", "Item3"]"Item1", "Item2", "Item3"
Item1, Item2, Item3
```
Per update 0.1.3, you can now pass in a file path or even multiple files paths.
This enables better organization of arsenal items and allows mission scripters to chain multiple arsenal files together.
Single file syntax is as follows:
```sqf
file://path\to\file1.sqf
```
Multiple file syntax is as follows:
```sqf
file://path\to\file1.sqf//path\to\file2.sqf//path\to\file3.sqf
```
Since we're parsing the file AS CODE, AND NOT A STRING, your file format should look like this:
```sqf
[
"Item1",
"Item2",
"Item3"
]
```
This is because we're using SQF's [compile](https://community.bistudio.com/wiki/compile) syntax to parse the file as code, and not using my proprietary parser to parse the file contents as a string.--------
### __Arsenal Formatter (3den editor plugin)__
Using the formatting tool, you can easily create your arsenals and export them in a format that can be pasted directly into the `Items` attribute field in 3den.- To open the formatting tool, simply open the 3den editor and navigate to the `Tools` tab then click `Arsenal Formatter`.
- Keep in mind that the formatting tool is still in development and may improve in the future.
- IMPORT option is not available in multiplayer scenarios as Bohemia Int. has disabled accessing the clipboard in multiplayer.
- The formatting tool can also be opened in-game by locally calling `[] call GRRA_fnc_formatter;`.
![](https://steamuserimages-a.akamaihd.net/ugc/2013706759567545713/45EAA2FA615EA58637D040CDF6EF54A7168F12B8/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=#000000&letterbox=false)
--------
### __FAQ__
- __Q:__ Will multiple arsenals be combined if they apply to the same player?
- __A:__ Yes. If you have multiple arsenals that apply to the same player, they will be combined into one arsenal, with the exception of arsenals that are owned by a classname and arsenals that are owned by a variable name will not merge properly.
- __Q:__ How do I add a weapon to the arsenal?
- __A:__ You can add a weapon to the arsenal by simply adding the weapon's classname to the `Items` attribute. For example, if you wanted to add the `arifle_MX_Black_F` weapon to the arsenal, you would add `arifle_MX_Black_F` to your list of items like so: `Item1, Item2, arifle_MX_Black_F`.
- __Q:__ Will the mod automatically add compatible ammo to the arsenal?
- __A:__ Not yet, but this is a feature that will be added in the future.
- __Q:__ Does the mod need to be installed on the server as well?
- __A:__ No, the mod only needs to be installed on the client but the key must be present in the server's keys directory.
--------
### __Todos__
- Combine player's arsenals where both classname and variable name are used.
- ~~Add button to open formatter in pause menu.~~
- Add a feature that makes it easier to find compatible ammo for a specific weapon (similar to ace's single mag icon option).