- Supports Different Roles
- Auto Assigns Roles based on Traits.
- Supports personalized Gear based on Steam64 IDs
A Kit is a collection of items made available in the Arsenal. Optional requirements can be attached to a kit. For example: Roles, Addon dependency or a condition code. These requirements will be evaluated every time a player opens the CVO Arsenal.
Roles are defined by the mission makers. Some roles will be automatically assigned, based on a units trait.
- ACE Medic / ACE Doctor
- ACE Engineer / ACE Advanced Engineer
- Explosives Specialist
- Load CVO Aux Mod
- Create
cvo_arsenal_kits.hppand include into mission'sdescription.ext - Define Units Roles:
[ this, "someRole" ] call cvo_arsenal_fnc_addUnitRoles;[ this, ["someRole"] ] call cvo_arsenal_fnc_addUnitRoles;[ this, ["someRole", "anotherRole"] ] call cvo_arsenal_fnc_addUnitRoles;- More Infos here
The following kits can be referenced as examples on how to format a kit.
Further, those kits are hardcoded through the mod itself. They can be disabled through CBA Settings when needed.
- Base Kits - Available vor Everyone
- Role Kits - Available for certain Roles
- Personal Kits - Available for individual Players
| Attribute Name | DataType | Description |
|---|---|---|
| editor_layer_name | Provide an Eden Editor layer name. All Objects inside this Layer will be made into CVO Arsenal Objects. |
|
| object_variable_names | Provide the variable names of individual objects to make them into CVO Arsenal Objects. |
| Attribute Name | DataType | Description | Default |
|---|---|---|---|
| addon_dependency | Name of an Addon - Will Check if the Addon is currently loaded. | "" Skip check. |
|
| roles | Name/Identifyer of the Role. case-unsensitive. | "" Applied to all. |
|
| id64 | steamID64 - getPlayerUID | "" Applied to all. |
|
| condition | Code as String - needs to return boolean. | "" Skip check. |
|
| code | Code as String - needs to return array of classnames. | "" Skipped. |
|
| items | subclasses will get added as item classnames. |
Regex to update old style Unit Role Definition to the new Function call. Only needed when updating an old mission to the new system.
this setVariable \[""CVO_A_ROLES"",\[(.*)\]\];
[this, [$1]] call cvo_arsenal_fnc_addUnitRoles;