Skip to content

(v0.96.8) Add optional arsenal whitelist by role#988

Closed
PiG13BR wants to merge 23 commits intoKillahPotatoes:v0.96.8from
PiG13BR:v0.96.8-role_whitelist_arsenal
Closed

(v0.96.8) Add optional arsenal whitelist by role#988
PiG13BR wants to merge 23 commits intoKillahPotatoes:v0.96.8from
PiG13BR:v0.96.8-role_whitelist_arsenal

Conversation

@PiG13BR
Copy link
Copy Markdown

@PiG13BR PiG13BR commented Jul 15, 2025

Q A
Bug fix? no
New feature? yes
Needs wipe? no

Description:

  • Add the option to make an arsenal whitelist by role.
  • Configurable, like a normal preset.
  • You will need to enable it in mission parameters. When enabled, it'll ignore the preset arsenal files set by config.
  • The roles_arsenal_config.sqf file is divided in two categories: equipments and roles. In the first category, put all the items you want in different variables/arrays, in other words, in different classes of items that you want the roles to have it. The second category is responsible for classname matching of the player's entity. As default, it uses the vanilla classnames, obviously you can change that. In the last lines of the file, is where the magic takes place, the switch command match the classname of the entity and fill all the KPLIB arsenal original arrays with the items that you added in the variables in the first category. If you edit/delete or make new variables, make sure to configure those last switch lines as well.
  • No inconvenient found so far.

Content:

  • [ x] roles_arsenal_config.sqf (new file added)

Successfully tested on:

  • [ x] Local MP
  • [ x] Dedicated MP

@PiG13BR PiG13BR closed this by deleting the head repository Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant