Author: Champ-1
Author Website:

Requirements: No addons required

Version: 0.94

Short description: This script allows you to create specializations for Arsenal, configure available items and number of slots for every class.

Date: 2015-03-13 22:53


Comments: (0)
Rating:



 







CH Specialized Arsenal

by
Champ-1


Description:
This script allows you to create specializations for Arsenal, configure available items and number of slots for every class.


Installation / Usage:
1. Copy "CHSA" folder to your mission folder.
2. Add following code to "description.ext" file in your mission folder:
#include "CHSA\dialog.hpp"
class CfgFunctions
{
    #include "CHSA\CfgFunctions.hpp"
}; 
3. Adjust config file(s) in "CHSA" folder (for more information see –°onfiguration section below).
4. Put any object in editor and add following code into Init line:
null = [this] execVM "CHSA\yourConfigFileName.sqf";

Configuration:
You can configure your classes, loadouts and slots through editing "config.sqf" in "CHSA" folder. Feel free to copy, rename and edit to your liking but be sure to keep main variables as well as the last line in the file.

Main variables:
_target:
Object - Arsenal will be available only for the given object
Group - Arsenal will be available for any member of the given group
Side - Arsenal will be available for any member of the given side
missionNamespace - Arsenal will be available for everyone in the mission

_restrictionDistance: Scalar - distance from Arsenal object where access to inventory will be limited (can't pick up items, dropped items instantly removed)

_specNames: Array of Strings - the names of predefined specializations that will be available in game

_specSlots: Array of Scalar - number of slots available for corresponding specializations (Tip: if you want to make slot unlimited set it to 1000000000000000000000000000000000000000, if you want to make slot inaccessible set it to 0)

_specTypes: Array of Arrays of Strings - class names of units that will be assigned automatically to corresponding specialization, if no matching class names found first specialization will be assigned. Keep in mind, that automatically assigned units create a slot for themselfs. For example: if you have 0 slots for Sniper and some unit automatically assigned as a Sniper, he will create 1 Sniper slot and instantly occupy it. Slot will be available for everyone when person changes specialization or leaves the game.

_specItems: Array of Arrays of Strings - class names of items available in Arsenal for corresponding specialization. Items that listed in different specializations will be removed upon selecting class that doesn't include such items. Items that not listed in any specialization will not be removed. (Tip: if you want to restrict some specific items, you can create "dummy class" with 0 slots and list all restricted items in it's loadout)


Media:



Armaholic.com has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Armaholic.com Youtube channel


Notes:
This build is mostly ment for testing and still may have serious bugs.


Changelog:
v0.94
- added: ability to have several Specialized Arsenals attached to the same object (as long as they have different "target")
- added: ability to reload/load another Specialized Arsenal during the mission (can be useful if "target" is a group)
- added: icons for action menu

v0.93
- added: any gear that picked up through rearm action removed from inventory instantly
- changed: access to any containers in restricted zone is completely forbidden now
- changed: reworked dialogs

v0.92
- changed: method how inventory restriction handled (hopefully it's more reliable)

v0.91
- added: Russian localization
- changed: color of current specialization name for greater visibility
- fixed: method how occupied slots are handled (position could be occupied by auto-assigned units only if it has free slots or set to -1)

v0.9
- first release


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Arsenal,   Class,   Items,   Slots